• 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: Sun, 15 Aug 2010 18:37:19 -0500

I've been experimenting with symlinks. I created a test user and relocated the /User/username/Library/Application Support/ folder, replacing it with a symlink.
I couldn't get anything to go wrong.

alias "OS_X:Users:linktest:Library:Application Support:TESTFILE.txt"

worked perfectly, finding TESTFILE.txt. And ...

(path to application support from user domain) --> "OS_X:Users:linktest:Desktop:RELOCATED:Application Support:"

No need to use posix paths. Colon delimited paths work just fine.

The original problem was for

alias ((path to library folder from user domain) as text) & "Mail:Mailboxes:"

 to return the correct path when the "Mail" folder had been replaced by a symlink.
(This didn't fail on my computer, so I can't check on the details. The user is using Portable Mail.)

I created my symlinks with:

do shell script "ln -s " & (quoted form of originalFile) & space & (quoted form of symlinkFile)

What happens if I don't use the -s ?

 _______________________________________________
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

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

  • Prev by Date: Re: How to speed up execution time of this script
  • Next by Date: Re: symlinks
  • Previous by thread: Re: symlinks
  • Next by thread: Re: symlinks
  • Index(es):
    • Date
    • Thread