• 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 12:51:39 -0800

Apologies for my sloppy copy and paste.

The second script was supposed to read:

tell application "System Events"
	path to (library folder of the user domain)
end tell

I've verified that indeed what you and Michelle Steiner wrote ("path to library folder from the user domain") works exactly as expected, so thanks very much for that.

Two questions linger, though:

1) Why did my original script not work properly when asking for the path, but work properly when just identifying the folder?

2) You've both noted that this only works on Leopard. Sadly, I need this script to work on Tiger as well. Is there a similar way to do this on Tiger? Is it acceptable to just use "~/Library/ PreferencePanes/<my file>"?

Thanks,
--Mike

On Jan 10, 2008, at 11:09 AM, Mike Kobb wrote:

Hi,

I'm trying to write a little script to install a preference pane in the user's PreferencePanes folder (~/Library/PreferencePanes).

If I run this script in ScriptEditor, the result is "folder "Macintosh HD:Users:mjkobb:Library:" of application "System Events":

tell application "System Events"
	library folder of the user domain
end tell

If, however, I say:

tell application "System Events"
	library folder of the user domain
end tell

...the result is: "alias "Macintosh HD:Library:"


In other words, although the first script properly returns (my) user's library folder, trying to get its path for some reason results in the path to the System library folder.


What am I doing wrong, or is this a bug?

Thanks!
--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
  • Follow-Ups:
    • Re: Path to the user's Library folder: bug or a scripter error?
      • From: deivy petrescu <email@hidden>
    • Re: Path to the user's Library folder: bug or a scripter error?
      • From: "J. Stewart" <email@hidden>
    • Re: Path to the user's Library folder: bug or a scripter error?
      • From: Michelle Steiner <email@hidden>
References: 
 >Path to the user's Library folder: bug or a scripter error? (From: Mike Kobb <email@hidden>)

  • Prev by Date: Accessing a file in a bundle
  • 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