• 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: Property Lists <integer> tags being writing as <real>
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Property Lists <integer> tags being writing as <real>


  • Subject: Re: Property Lists <integer> tags being writing as <real>
  • From: SK <email@hidden>
  • Date: Wed, 28 Jul 2004 13:29:51 -0700

I did notice that the fields that are not being changed to <real> are the ones who's value was already set to 0.

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."

On Jul 28, 2004, at 12:37, SK wrote:

In OS X 10.3.4, I have finally mostly gotten my method to turn off
Energy Saving and then re-enable it with the old values working with
the help form Late Night Software's Property List Tools. I am having
one last issue. When run as a user who has rights to the plist file
listed below this code works "almost" perfectly. If I make a copy of my
PowerManagement plist and do a "diff -u" immediately, there is
obviously no difference. However, when I run this code:

set vPlistFile to (path to startup disk as string) &
"Library:Preferences:SystemConfiguration:
com.apple.PowerManagement.test.plist"
set vPlist to read property list file (vPlistFile)
set vDiskValue to |Disk Sleep Timer| of |AC Power| of vPlist as integer
set |Disk Sleep Timer| of |AC Power| of vPlist to 0 as integer
store property list vPlist in file (vPlistFile)

and then do a "diff -u" I get the following:

--- com.apple.PowerManagement.plist Fri Jul 23 10:22:01 2004
+++ com.apple.PowerManagement.test.plist Wed Jul 28 12:32:26 2004
@@ -7,42 +7,42 @@
<key>Automatic Restart On Power Loss</key>
<integer>0</integer>
<key>Disk Sleep Timer</key>
- <integer>10</integer>
+ <integer>0</integer>
<key>Display Sleep Timer</key>
- <integer>126</integer>
+ <real>126</real>
<key>Dynamic Power Step</key>
<integer>0</integer>
<key>Reduce Processor Speed</key>
<integer>0</integer>
<key>System Sleep Timer</key>
- <integer>180</integer>
+ <real>180</real>
<key>Wake On AC Change</key>
<integer>0</integer>
<key>Wake On Clamshell Open</key>
- <integer>1</integer>
+ <real>1</real>
<key>Wake On LAN</key>
- <integer>1</integer>
+ <real>1</real>
<key>Wake On Modem Ring</key>
- <integer>1</integer>
+ <real>1</real>
</dict>
<key>Battery Power</key>
<dict>
<key>Automatic Restart On Power Loss</key>
<integer>0</integer>
<key>Disk Sleep Timer</key>
- <integer>5</integer>
+ <real>5</real>
<key>Display Sleep Timer</key>
- <integer>20</integer>
+ <real>20</real>
<key>Dynamic Power Step</key>
- <integer>1</integer>
+ <real>1</real>
<key>Reduce Processor Speed</key>
<integer>0</integer>
<key>System Sleep Timer</key>
- <integer>20</integer>
+ <real>20</real>
<key>Wake On AC Change</key>
<integer>0</integer>
<key>Wake On Clamshell Open</key>
- <integer>1</integer>
+ <real>1</real>
<key>Wake On Modem Ring</key>
<integer>0</integer>
</dict>

Does anyone have any idea why some and not all of the <integer> tags
are being changed to real and how I can fix this, so they don't get
changed?

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.
_______________________________________________
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.


References: 
 >Property Lists <integer> tags being writing as <real> (From: SK <email@hidden>)

  • Prev by Date: advanced safari work....
  • Next by Date: Re: advanced safari work....
  • Previous by thread: Property Lists <integer> tags being writing as <real>
  • Next by thread: Re: Property Lists <integer> tags being writing as <real>
  • Index(es):
    • Date
    • Thread