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

Re: symlinks


  • Subject: Re: symlinks
  • From: Luther Fuller <email@hidden>
  • Date: Tue, 17 Aug 2010 14:41:11 -0500

I created a symlink file in my test user's Library folder which points to a relocated Application Support folder on an image disk. Tried the following script:

try
(path to application support from user domain)
-- If the disk "Relocated" is not mounted, then error -48 Duplicate file name. «class asup»
(the result as text) & "AddressBook:Images:"
alias the result
-- If the file/folder does not exist, then error -43 File alias Relocated:Application Support:AddressBook:garbage: wasn’t found.
on error errText number errNr
log "Error = " & errNr & return & errText
return
end try
tell application "Finder" to open the result

It works properly ... but notice that 'path to ...' will break if the disk is not mounted.
(In my application script that originated this problem, the 'path to ...' was not inside the try block, but the error was generated by the 'alias ...' line.)

The problem is caused by Portable Mail, which I have never used, but is used by a user of my application.
Portable Mail also uses 'ln -s ...' to create the symlink. If anyone has used Portable Mail, perhaps we could discuss this.

As far as I can determine from my tests, my application should find the relocated /Mail/Mailboxes/ folder and function normally.

 _______________________________________________
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: symlinks
      • From: "Mark J. Reed" <email@hidden>
References: 
 >symlinks (From: Luther Fuller <email@hidden>)
 >Re: symlinks (From: Emmanuel LEVY <email@hidden>)
 >Re: symlinks (From: Luther Fuller <email@hidden>)
 >Re: symlinks (From: Luther Fuller <email@hidden>)
 >Re: symlinks (From: "Mark J. Reed" <email@hidden>)
 >Re: symlinks (From: Luther Fuller <email@hidden>)
 >Re: symlinks (From: Luther Fuller <email@hidden>)
 >Re: symlinks (From: "Mark J. Reed" <email@hidden>)
 >Re: symlinks (From: Emmanuel LEVY <email@hidden>)
 >Re: symlinks (From: "Mark J. Reed" <email@hidden>)
 >Re: symlinks (From: KOENIG Yvan <email@hidden>)

  • Prev by Date: Re: XML Error - any insight
  • Next by Date: Re: XML Error - any insight
  • Previous by thread: Re: symlinks
  • Next by thread: Re: symlinks
  • Index(es):
    • Date
    • Thread