• 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: get properties treating variable as literal - lightbulb moment
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: get properties treating variable as literal - lightbulb moment
      • From: Christopher Nebel <email@hidden>
References: 
 >get properties treating variable as literal (From: Jaime Magiera <email@hidden>)
 >Re: get properties treating variable as literal (From: Christopher Nebel <email@hidden>)
 >Re: get properties treating variable as literal (From: Jaime Magiera <email@hidden>)
 >Re: get properties treating variable as literal (From: Christopher Nebel <email@hidden>)
 >Re: get properties treating variable as literal (From: Jaime Magiera <email@hidden>)

  • Prev by Date: Re: Can't turn off screen savers in System Preferences
  • Next by Date: Re: get properties treating variable as literal
  • Previous by thread: Re: get properties treating variable as literal
  • Next by thread: Re: get properties treating variable as literal - lightbulb moment
  • Index(es):
    • Date
    • Thread