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
_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to