How does the system and applications use symlinks to relocate items that usually appear in the user's home folder?
For example: Safari stores files, such as bookmarks, in the folder ~/Library/Safari/ This folder can be moved to another location, perhaps an external disk, and replaced by a symlink file which points to the new location. (At least I have encountered information indication that this can be done. I haven't experimented, yet.)
For the past couple of weeks, I have looked for documentation on this and have found nothing. If my script discovers that ~/Library/Safari/ exists, but is a symlink instead of a folder, how does AppleScript identify the "original item" of the symlink. Are there any rules for naming the symlink file?
I know of one user of my software who has replaced ~/Library/Mail/ with a symlink. My script ...
((path to library folder from user domain) as text) & "Mail:Mailboxes:" tell application "Finder" try set mailPath to the result as alias on error error "Unable to find your ~/Library/Mail/Mailboxes/ folder. Have you installed Mail?" end try
errors when it encounters the symlink.
Does anyone know of any documentation on the use of symlinks this way?
|