Re: symlinks
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