In article <20101108123526.ga29...@pinux.info>,
 Carles Pina i Estany <car...@pina.cat> wrote:
> I'm not an advanced Applescript user, but I usually have a problem: how can I
> choose the application version that I want my script to connect to?
> 
> Let's say that I have Microsoft Office 2004, 2008 and 2011. How can I select
> the version in the tell statement?
> 
> The final use case is using Python, I thought that appscript.app() could have
> some argument to specify it, but it seems that it doesn't have any. I also
> tried appscript.app("Disk:Applications:Microsoft Office 2011:Microsoft Word")
> without any luck ("Local applicatoin "Disk:Applications:..." not found)

Use a POSIX path to the application:

    app("/Applications/Microsoft Office 2011/Microsoft Word.app")

http://appscript.sourceforge.net/py-appscript/doc/appscript-manual/07_app
licationobjects.html

-- 
 Ned Deily,
 n...@acm.org

_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG

Reply via email to