• 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: Creating a folder in user preferences
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating a folder in user preferences


  • Subject: Re: Creating a folder in user preferences
  • From: kai <email@hidden>
  • Date: Thu, 24 Feb 2005 04:36:22 +0000


On Wed, 23 Feb 2005 19:16:34 -0800, Paul Berkowitz wrote:

set prefsFolderPath to (path to preferences as Unicode text)

[snip]

It's actually marginally faster to leave 'as Unicode
text' within the the same parentheses as 'path to...' It's an optional
parameter, as an inspection of the Standard Additions will confirm: you
don't need a coercion.

Yeah - I missed that, Paul - thanks. Head to head, the sans parens version is actually about 10 times faster here - so that's one to remember! The difference is also confirmed by the event log:


-------------------------------------

(path to preferences) as Unicode text

-->

tell current application
	path to preferences
		alias "Macintosh HD:Users:kai:Library:Preferences:"
end tell

-------------------------------------

path to preferences as Unicode text

-->

tell current application
	path to preferences as Unicode text
		"Macintosh HD:Users:kai:Library:Preferences:"
end tell

-------------------------------------

---
kai

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Creating a folder in user preferences
  • Next by Date: Ignore a script object or applet or what...?
  • Previous by thread: Re: Creating a folder in user preferences
  • Next by thread: Aaaarrrggghhh XML!
  • Index(es):
    • Date
    • Thread