Re: File IDs -> paths
Re: File IDs -> paths
- Subject: Re: File IDs -> paths
- From: "Marc K. Myers" <email@hidden>
- Date: Sat, 10 Feb 2001 18:49:59 -0500
- Organization: [very little]
>
Date: Sat, 10 Feb 2001 16:37:55 -0500
>
From: Bryan <email@hidden>
>
Reply-To: email@hidden
>
Organization: Apex Radiology
>
To: Nigel Smith <email@hidden>
>
CC: email@hidden
>
Subject: Re: File IDs -> paths
>
>
tell application "Finder"
>
set theApp to name of application file id "TBB6"
>
open application file id "TBB6"
>
end tell
>
>
tell application theApp
>
activate
>
end tell
>
>
set appath to (path to <<constant afdregfp>>)
>
>
tell application "Finder"
>
activate
>
set the clipboard to appath as text
>
end tell
>
>
Bryan Kaufman
>
>
Nigel Smith wrote:
>
>
> Dear All,
>
>
>
> It's trivial to get a file's id if you know the path to the file. Can you
>
> go the other way, and find the path to a file if you know its id?
I may be missing something, but I think it would be easier to say:
tell application "Finder"
set appPath to (application file ID "TBB6") as string
end tell
Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074
[2/10/01 6:48:49 PM]