• 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: alias from Finder file object
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: alias from Finder file object


  • Subject: Re: alias from Finder file object
  • From: Michelle Steiner <email@hidden>
  • Date: Wed, 17 Nov 2004 17:47:30 -0700

On Nov 17, 2004, at 4:28 PM, David Durkee wrote:

This seems like it should be easy, but I can't find it. If you have a Finder file object, like:

file "foo" of folder "bar" of disk "foobar"

is there an easy way to get the alias to that file? I thought it would just be a property. I want to use it with the open for access scripting addition.

tell application "Finder" file "foo" of folder "bar" of disk "foobar" as alias end tell

One caution: If the file has an extension, and the extension is not hidden, you have to include the extension in the script, or the script will not work. If the extension is hidden, you don't have to include the extension, but the script will still work if you do.

--
Color is just a pigment of your imagination.

_______________________________________________
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: references, InDesign text ranges, and sloooow scripts
  • Next by Date: Re: ScriptDB
  • Previous by thread: Re: alias from Finder file object
  • Next by thread: how to make/move a new window underneath the other windows
  • Index(es):
    • Date
    • Thread