• 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: Path to the user's Library folder: bug or a scripter error?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Path to the user's Library folder: bug or a scripter error? (From: Mike Kobb <email@hidden>)
 >Re: Path to the user's Library folder: bug or a scripter error? (From: Mike Kobb <email@hidden>)
 >Re: Path to the user's Library folder: bug or a scripter error? (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Path to the user's Library folder: bug or a scripter error?
  • Next by Date: Re: Path to the user's Library folder: bug or a scripter error?
  • Previous by thread: Re: Path to the user's Library folder: bug or a scripter error?
  • Next by thread: Re: Path to the user's Library folder: bug or a scripter error?
  • Index(es):
    • Date
    • Thread