Re: get properties treating variable as literal - lightbulb moment
Re: get properties treating variable as literal - lightbulb moment
- Subject: Re: get properties treating variable as literal - lightbulb moment
- From: Jaime Magiera <email@hidden>
- Date: Wed, 4 Oct 2006 22:58:15 -0400
Duh. Sorry Chris. It took a second. In my defense, I'm working on 4
different projects in 3 different languages right now =)
New methods...
-- A method for reading from a preferences file.
on read_from_preferences(aFile, aPreference)
try
tell application "System Events"
set returnValue to property list items of property list item
aPreference of contents of property list file aFile
end tell
return returnValue
on error err
return err
end try
end read_from_preferences
-- If there are preference objects defined in the preferences, the
method below creates an array of Unique IDs of those objects.
if (currentPreferencesArray is not equal to {}) then
set currentUniqueKeys to {}
repeat with aPreferenceObject in currentPreferencesArray
tell application "System Events"
set uniqueKeyValue to (value of (get property list item uniqueKey
of aPreferenceObject))
end tell
copy uniqueKeyValue to end of currentUniqueKeys
end repeat
else
set currentUniqueKeys to {}
end if
<sigh>
Jaime Magiera
Sensory Research Network
http://www.sensoryresearch.net
_______________________________________________
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