• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: Defing [sic] a Path correctly
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Using AppleScript, how to save Quark XPress documents as pdf files under Classic ?
  • Next by Date: Quickcurve graphs
  • Previous by thread: -192 error in scripting Entourage
  • Next by thread: Quickcurve graphs
  • Index(es):
    • Date
    • Thread