• 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 14:38:45 -0800
  • Thread-topic: Applescript to create an alias to the a file please


> Hi, Im just trying to create an alias to a file, and set the name of the alias
to different to the file,


> set theFile to (POSIX file (get "/Users/paul/Music/AliasTest/test.mp3"))

Don't know why you're using the "get" here.


set theFile to POSIX file "/Users/paul/Music/AliasTest/test.mp3"

May be all you need.  If the file doesn't exist at compile time you may need
to do a bit more.

> set theAlias to make new alias file to theFile

You need to specify where you want the new alias file to appear. AppleScript
doesn't assume the current directory.

This may help get you started

tell application "Finder"
    set theFile to "/Users/edstockly/Documents/2-CoverHighlights"
    set theFile to theFile as POSIX file
    set aliasFile to make new alias file at desktop to theFile
    set the name of aliasFile to "New Alias File"
end tell

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

  • Follow-Ups:
    • Re: Applescript to create an alias to the a file please
      • From: Paul Taylor <email@hidden>
    • Re: Applescript to create an alias to the a file please
      • From: Paul Taylor <email@hidden>
References: 
 >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