• 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
Using Property List Tools and Variables
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Using Property List Tools and Variables
      • From: Walter Ian Kaye <email@hidden>
  • Prev by Date: SSL Cert Information
  • Next by Date: Eudora scripting help ...
  • Previous by thread: SSL Cert Information
  • Next by thread: Re: Using Property List Tools and Variables
  • Index(es):
    • Date
    • Thread