Re: Using Property List Tools and Variables
Re: Using Property List Tools and Variables
- Subject: Re: Using Property List Tools and Variables
- From: Walter Ian Kaye <email@hidden>
- Date: Tue, 20 Jul 2004 16:07:04 -0700
At 03:15p -0700 07/20/2004, SK didst inscribe upon an electronic papyrus:
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
Please tell us what values you get. I don't even have any System
Sleep Timer or "AC Profile" in my PowerManagement plist, so I am
unable to test this.
(My PM plist is also loose in the prefs folder, not in a subfolder;
I'm on Jaguar.)
-boo
_______________________________________________
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.