|
|
Prevent CD and DVD disks from becoming stuck
More problems. The StartInterval is an integer not a real so that key/value pair should be: <key>StartInterval</key> <integer>60</integer> Note that this is every minute not every nine minutes as stated in the hint. The next problem is that the ProgramArguments appear to be wrong. It looks like there is an attempt to redirect stdout to a device called nil:. This is just weird and not Unix. As far as I can tell this just doesn't work. The way you are supposed to redirect stdout in a launchd.plist is by using another argument: StandardOutPath <string> So here is my plist file that appears to be working though I won't really know until I have a chance to use the burner for real: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Label</key> <string>com.lucdesign.drivesleepfixer.plist</string> <key>ProgramArguments</key> <array> <string>/usr/bin/drutil</string> <string>list</string> </array> <key>RunAtLoad</key> <false/> <key>StandardOutPath</key> <string>/dev/null</string> <key>StartInterval</key> <integer>60</integer> </dict> </plist>
Prevent CD and DVD disks from becoming stuck
Thanks for the fixes -- I corrected the typo and fixed the real/integer bit in the script (as well as set 540 seconds).
Prevent CD and DVD disks from becoming stuck
The other important thing to fix is the ProgramArguments. Remove the last two entries in the array then add a new child off the root element:
Prevent CD and DVD disks from becoming stuck
thanks jdb8167, your enhancements and corrections are very welcome!
Prevent CD and DVD disks from becoming stuck
Thanks for posting the corrected version... it works as advertised on my G4 733 DI that's been driving me nuts on occasion with stuck CDs and DVDs if I happen to leave them loaded for extended periods of time. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|