[Pythonmac-SIG] Using Finder to open app by id

has hengist.podd at virgin.net
Sun Aug 23 10:13:46 CEST 2009


Charles Miller wrote:

> How can you run the following Applescript in py-appscript?  I've  
> tried everything I can think of.
>
> tell application "Finder" to open application file id  
> "com.apple.Preview"


ASTranslate is always your friend...

app(u'Finder').application_files.ID(u'com.apple.Preview').open()

HTH

has
-- 
Control AppleScriptable applications from Python, Ruby and ObjC:
http://appscript.sourceforge.net



More information about the Pythonmac-SIG mailing list