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

symlinks


  • Subject: symlinks
  • From: Luther Fuller <email@hidden>
  • Date: Thu, 12 Aug 2010 10:53:41 -0500

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?

 _______________________________________________
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: Stan Cleveland <email@hidden>
    • Re: symlinks
      • From: Emmanuel LEVY <email@hidden>
  • Prev by Date: Re: Libraries and effiency
  • Next by Date: Re: symlinks
  • Previous by thread: Re: 'log' command results in AppleScript Editor
  • Next by thread: Re: symlinks
  • Index(es):
    • Date
    • Thread