• 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: deivy petrescu <email@hidden>
  • Date: Thu, 10 Jan 2008 16:56:27 -0500


On Jan 10, 2008, at 15:51, Mike Kobb wrote:

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

Mike,
"path to " is a Standard addition command. So use it out of any tell block as precaution.
In this case "path"is a property of System Events.
Look at the SE dictionary, I believe SE sees "path to library folder" and not the rest, thus the result you got.


Deivy

_______________________________________________
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: Mike Kobb <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>)

  • 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