[Pythonmac-SIG] Augh? Is this possible? Python can not read ~/Library/Preferences/ByHost/com.apple.screensaver.003065980c94.plist

Schollnick, Benjamin Benjamin.Schollnick at xerox.com
Thu Aug 4 16:20:54 CEST 2005


Folks,

This is strange...  But I suspect it is a permissions issue....

1) I can not seemingly read my screensaver preference file.
~/Library/Preferences/ByHost/com.apple.screensaver.003065980c94.plist

	os.path.exists (
r"~/Library/Preferences/ByHost/com.apple.screensaver.003065980c94.plist"
)
	
	returns False...

	The file exists...  I can CAT or GREP it..  But I can not
seemingly read
	it from inside of python.....

	Can anyone duplicate this?  

	I suspect that this maybe that it is -rw------? (Read/writable
by Administrators
	Only)....

	But if I SUDO the python application (ie. sudo python
console4.py) it still
	fails....

	Any ideas? or work arounds?  

	System_profiler does not have this data... I checked the XML
file... It only
	lists the screensaver module name...  (I need the IdleTime, and
if it is password
	protected...)

		- Ben


More information about the Pythonmac-SIG mailing list