• 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: "Mark J. Reed" <email@hidden>
  • Date: Tue, 9 Feb 2010 17:39:09 -0500

Why are you using get on a literal string?  That makes no sense.

Try just (POSIX file "blah").

On Tuesday, February 9, 2010, Paul Taylor <email@hidden> wrote:
> Hi, Im just trying to create an alias to a file, and set the name of the alias to different to the file, my filenames are provided in the POSIX notation.
> So far I have:
>
> tell application "Finder"
> set theFile to (POSIX file (get "/Users/paul/Music/AliasTest/test.mp3"))
> set theAlias to make new alias file to theFile
> end tell
>
> but this fails with:
>
> error "Finder got an error: Can’t get POSIX file \"/Users/paul/Music/AliasTest/test.mp3\"." number -1728 from file "Macintosh HD:Users:paul:Music:AliasTest:test.mp3"
>
> even though this file does exist !
>
>
> thanks Paul
>
>
> _______________________________________________
> 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
>

--
Mark J. Reed <email@hidden>
 _______________________________________________
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>
References: 
 >Applescript to create an alias to the a file please (From: Paul Taylor <email@hidden>)

  • Prev by Date: 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: 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