Using Property List Tools and Variables
Using Property List Tools and Variables
- Subject: Using Property List Tools and Variables
- From: SK <email@hidden>
- Date: Tue, 20 Jul 2004 15:15:17 -0700
I am using the List & Record Tools and Property Tools from Late Night
software to read the PowerManagement plist file and get the value of
"System Sleep Timer" for the "AC Power" profile. I have it almost
working but it seems that I am unable to use the vEnergyProfile
variable in the last line of code in this example. If I replace the
variable name with the actual string, everything works fine. Does
anyone have any suggestions on what I am doing wrong, or how I can work
around this?
set vEnergyProfile to "AC Power"
set vPlistFile to (path to startup disk as string) &
"Library:Preferences:SystemConfiguration:
com.apple.PowerManagement.plist"
set vPlist to read property list file (vPlistFile)
set vSystemValue to |System Sleep Timer| of |vEnergyProfile| of vPlist
Thanks,
Sean
------------------------------------------------------------------------
-----------------------
spk email@hidden
------------------------------------------------------------------------
-----------------------
"When we destroy something man has created we call it vandalism......
When we destroy something that Gaia has created we call it progress."
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.