[wxpython-mac] Transparent systray icon in the Mac OS X dock

Christopher Barker Chris.Barker at noaa.gov
Mon Jun 30 09:22:03 PDT 2008


Gros Bedo wrote:

> defaults write com.apple.dock persistent-apps -array-add
> "tile-datafile-data_CFURLString/Applications/Automator.app/_CFURLStringType0";

That looks like a shell command, not AppleScript. "defaults" is a 
command line program that sets various defaults for Apple's GUI 
programs. See "man defaults" for more info.

In that case, you can simple use:

os.system('defaults write com.apple.dock persistent-apps -array-add 
"tile-datafile-data_CFURLString/Applications/Automator.app/_CFURLStringType0";')

os.system('killall "Dock"')

> Now my problem is that I have no idea at all about how to use
> Applescripts within Python. 

If you do indeed need AppleScript, perhaps Appscript can help:

http://appscript.sourceforge.net/

for more info, see the pythonmac list:

http://mail.python.org/mailman/listinfo/pythonmac-sig

-Chris


-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov


More information about the wxpython-mac mailing list