Re: Path to the user's Library folder: bug or a scripter error?
Re: Path to the user's Library folder: bug or a scripter error?
- Subject: Re: Path to the user's Library folder: bug or a scripter error?
- From: Mike Kobb <email@hidden>
- Date: Thu, 10 Jan 2008 13:53:15 -0800
Okay, I figured out a little bit. The following both work:
tell app "System Events"
path to the library folder from the user domain
-- returns an alias to the proper path
end tell
tell app "System Events"
path of the library folder of the user domain
-- returns a string that contains the proper path
end tell
What does **NOT** work is:
tell app "System Events"
path to the library folder of the user domain
-- WRONG! Returns an alias to the system library folder
end tell
Note the one-word difference between the last two. That last script
returns the path to the system library folder, not the user's library
folder, and I think this is a bug in AppleScript.
I would also say that this is all pretty darned confusing -- such
similar terminology yields similar but slightly different results in
the first two examples, and something simply wrong in the third.
Thanks again!
--Mike
_______________________________________________
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