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.
|