Re: How to access a file on a remote computer

2015-01-20 Thread Bob Sneidar
hostAddressToName() returns an error if there is no internet connection. Not empty. Unless the dictionary is wrong. Bob S On Jan 18, 2015, at 20:15 , Brahmanathaswami mailto:bra...@hindu.org>> wrote: put hostAddressToName(tIP) into tServer if tServer is Empty then set the dialogData

Re: How to access a file on a remote computer

2015-01-20 Thread Bob Sneidar
what is showStatus? There is no such command in the dictionary. Bob S On Jan 18, 2015, at 20:15 , Brahmanathaswami mailto:bra...@hindu.org>> wrote: put hostAddressToName(tIP) into tServer if tServer is Empty then set the dialogData to "Sorry, there is a connection problem. Turn on ai

Re: How to access a file on a remote computer

2015-01-20 Thread Bob Sneidar
This is pretty standard for POSIX permissions. Even though a containing folder can have the appropriate permissions, the owner of the file is still the one who created it. In order to properly ensure your cohorts can read and write to every file in a share, you need to create a user with the sam

Re: How to access a file on a remote computer

2015-01-20 Thread Scott Rossi
You may be running into the audio-only player bug already mentioned here: http://runtime-revolution.278305.n4.nabble.com/new-player-AV-Foundation-and-MP3-td4687743.html Try using the playRate workaround and see if that makes things work for you (for now). Regards, Scott Rossi Creative Director

Re: How to access a file on a remote computer

2015-01-20 Thread Peter Haworth
Hi Kay, Sorry for the delayed reply, been too busy getting the filename thing working. I'm using LC 6.6.2 and the controller works fine there (except see my comments below). I just tried exactly the same stack with 7.0.1 and confirm what you experienced, nothing plays. I'm using mp3 files. Filen

Re: How to access a file on a remote computer

2015-01-19 Thread Peter Haworth
Hi Jacque, I read the link and I think whey talk about "iTunes controllers", they mean apps that communicate directly with iTunes, not sure what happens if you run an Applescript to do that. The program I've written doesn't communicate with iTunes at all. It gets all the music information by pars

Re: How to access a file on a remote computer

2015-01-19 Thread J. Landman Gay
If it works then my answer doesn't apply. But I got curious and did some research on the OS X sandbox. Most of what I found was old info but there's a reasonably readable explanation here:

Re: How to access a file on a remote computer

2015-01-19 Thread Peter Haworth
Hi Jacque, Using the "/Volumes" way of opening the file worked! I ran into one issue - some of the filenames have unicode characters in them. I searched the list and found this solution from Bjornke: put unidecode(uniencode(tVar,"UTF8")) into tFilename That makes things work whether the file n

Re: How to access a file on a remote computer

2015-01-19 Thread J. Landman Gay
On 1/19/2015 1:50 PM, Peter Haworth wrote: Right, yes I did try that and all works fine using the contents of the it variable that comes back. It uses the "/Volumes" format for the mounted folder/file. Problem is though that I already have the location of the file I want to play (but in"file://"

Re: How to access a file on a remote computer

2015-01-19 Thread Peter Haworth
Right, yes I did try that and all works fine using the contents of the it variable that comes back. It uses the "/Volumes" format for the mounted folder/file. Problem is though that I already have the location of the file I want to play (but in "file://" URL format so don't want to prompt for it.

Re: How to access a file on a remote computer

2015-01-19 Thread J. Landman Gay
On January 19, 2015 1:14:04 PM CST, Peter Haworth wrote: >Thanks for all the suggestions. Still trying to get this working. I can't remember if you tried this yet but what happens if you do an "answer file" dialog and use the file path that comes back? -- Jacqueline Landman Gay |

Re: How to access a file on a remote computer

2015-01-19 Thread Peter Haworth
Thanks for all the suggestions. Still trying to get this working. The last thing I tried was to replace "localhost" in the "file://" statement with the name of the remote Mac as shown in the Sharing Preferences. In this case that is "Petes-imac.local" so I end up with: "file://Petes-Imac.local/

Re: How to access a file on a remote computer

2015-01-18 Thread Brahmanathaswami
I have a number of apps that talk to a server over the LAN I used to always keep this appleScript in a customProp tell application "Finder" mount volume "afp://192.142.103.8/Varuna" as user name "MyName" with password "MyPassword" end tell and either hardwire my user name and password to the

Re: How to access a file on a remote computer

2015-01-18 Thread Kay C Lan
On Mon, Jan 19, 2015 at 11:16 AM, Peter Haworth wrote: > I'm not > using LC 7 yet but I managed to get around that one. > > Pete, thanks for the shell 'mount' pointer. I didn't get it to work first try but I'm sure it will be the solution. What version of LC are you using. I've not done anything

Re: How to access a file on a remote computer

2015-01-18 Thread Peter Haworth
Hi Scott, Thanks for the tip. That's actually where I started with all this. Please bear with me on this somewhat lengthy explanation. I made this player as kind of an iTunes lite so I could just play tracks from my iTunes library without the extra bloat of iTunes. First time it runs, it asks f

Re: How to access a file on a remote computer

2015-01-18 Thread Scott Rossi
Hi Pete: Many years ago I ran into path issues with players and (from my notes) wound up with a workaround that involved using the “full” file path like this: set fileName of player 1 to \ "file:///volumes/primary/users/dude/really_long_filename_here.mp3” I also had in my notes to specificall

Re: How to access a file on a remote computer

2015-01-18 Thread Peter Haworth
I'm almost there. The reason I'm looking into this is because I'm setting the filename of a player control to the name of a mp3 file on a remote computer. I thought I had it all working but the player control does not like filenames with an ampersand in them. I tried escaping the ampersand with

Re: How to access a file on a remote computer

2015-01-18 Thread Peter Haworth
Thanks Kay and Kee, your suggestions put me on the right track. Kay: there is a mount command available though Terminal but I've never used it so don;t know if it would do what you're suggesting. Pete lcSQL Software Home of lcStackBrowser

Re: How to access a file on a remote computer

2015-01-18 Thread Kay C Lan
Kee, that had me confused and I looked a little deeper. It appears that I've just been lucky in the simple URL way I've been accessing files across my LAN - this is as tested on OS X 10.9.5. The URL method I posted earlier, and the open file for read methods do NOT seem to work unless the actual

Re: How to access a file on a remote computer

2015-01-17 Thread kee nethery
If the client machine can see the file in the Finder while it sits on the server machine, an easy way to get it’s path is to open Terminal and drag it’s icon into Terminal. Terminal will write out the path. You can copy the path and use it as long as the client can see the server in the Finder.

Re: How to access a file on a remote computer

2015-01-17 Thread Kay C Lan
On Sun, Jan 18, 2015 at 12:19 PM, Dr. Hawkins wrote: > I still end up > with files created by my assistant on my machine being unwritable by me, > and vice versa. > Where on the machine is the file being stored so that it's accessable by both of you? Shared?, Public? One problem can be, if you h

Re: How to access a file on a remote computer

2015-01-17 Thread Dr. Hawkins
On Sat, Jan 17, 2015 at 7:37 PM, Kay C Lan wrote: > Secondly, rather than using localhost you should be using Volumes. > Also, OSX can be downright schizophrenic about the permissions, with conflicting ways of doig things. My macs got added to unix networks, with preexisting groups & users. On

Re: How to access a file on a remote computer

2015-01-17 Thread Kay C Lan
Pete two things I notice. Firstly as the file path is enclosed in quotes there is no need to %20 the spaces. Secondly, rather than using localhost you should be using Volumes. So for me, using my hometheatre iMac as a test bed, with a 'a SHARED test file.txt' sitting in the Shared folder of the

How to access a file on a remote computer

2015-01-17 Thread Peter Haworth
Looking for some advice on how to access a file on a remote computer. Both computers in question are on OSX. I'm getting file locations out of a text file on the local computer that look like URLs, e.g. "file://localhost/" with spaces replaced by %20, etc. Although the URL incl