RE: Defing [sic] a Path correctly
RE: Defing [sic] a Path correctly
- Subject: RE: Defing [sic] a Path correctly
- From: David Marshall <email@hidden>
- Date: Tue, 19 Jul 2005 07:32:49 -0400
On Tue, 19 Jul 2005 14:58:39 +1200, "David O'Connor" wrote:
I made a calculated guess and put the volume name; HERMES instead of
applications, followed by Games but it did not like it.
Not a bad guess, but since the file in question (I gather) is not on
the startup volume, you need to precede that path with "Volumes/", like
so:
do shell script "Volumes/HERMES/Games/Unreal\\ Tournament\\ 2004.app/
Contents/MacOS/Unreal\\ Tournament\\ 2004 -userlogo=../Anomaly/Help/
AnomalyLogo.bmp -mod=Anomaly &"
BTW, since I'm running Panther, which doesn't have the
PathOfSelectionToClipBoard script (in /Library/Scripts/Info Scripts)
that david in maine refers to, I don't know for sure, but I'd guess
that script returns a Macintosh-style colon-delimited path
("Some_Disk:Some_Folder:Some_File") rather than the Unix-style
slash-delimited "POSIX" path required by the do shell script command
("Some_Disk/Some_Folder/Some_File").
A simple non-AppleScript way to find a file's full POSIX path is to
open a window in Terminal and drag the file in question into the
terminal window. (Caution: be sure you haven't typed any commands in
Terminal first, or the file will be regarded as a parameter for that
command, and an inadvertent press of the Return key will execute that
command on that file.)
- - - - -
Dave
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden