Re: Creating a folder in user preferences
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