• 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: Applescript to create an alias to the a file please
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Applescript to create an alias to the a file please


  • Subject: Re: Applescript to create an alias to the a file please
  • From: "Stockly, Ed" <email@hidden>
  • Date: Tue, 09 Feb 2010 15:00:12 -0800
  • Thread-topic: Applescript to create an alias to the a file please

> can I simply specify a mutifolder path for the location of the alias i.e.

> set aliasFile to make new alias file at "/Users/edstockly/Documents/" to
theFile


That should work, but my preference is to use the alias class.

(Don't confuse the 'alias' class with 'alias file', they are two different
animals.)

set aliaslocation to "/Users/edstockly/Documents/"
set aliaslocation to POSIX file aliaslocation as alias

Tell application "Finder" to set aliasFile to make new alias file at
aliaslocation  to theFile

Or, if you want it in the same directory as the original file:
Tell application "Finder"
set aliaslocation to container of theFile
set aliasFile to make new alias file at aliaslocation  to theFile
End


ES

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Re: Applescript to create an alias to the a file please (From: Paul Taylor <email@hidden>)

  • Prev by Date: Re: Applescript to create an alias to the a file please
  • Next by Date: Re: Applescript to create an alias to the a file please
  • Previous by thread: Re: Applescript to create an alias to the a file please
  • Next by thread: Re: Applescript to create an alias to the a file please
  • Index(es):
    • Date
    • Thread