• 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: File IDs -> paths
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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]


  • Prev by Date: Re: View of a Finder window
  • Next by Date: Re: A quick one (View of a Finder window)
  • Previous by thread: Re: File IDs -> paths
  • Next by thread: How to make two functions running at the same time
  • Index(es):
    • Date
    • Thread