Comment 2 for bug 1445667

Revision history for this message
RaiMan (raimund-hocke) wrote : Re: [1.1.0] OS X 10.10.3: App.open("Mail") doesn't work anymore --- specific Mac problem

tested some variants - this is the only that worked:

cmd = ['osascript', '/Users/raimundhocke/astest.txt']
print run(cmd)

the file /Users/raimundhocke/astest.txt contains the AppleScript command:
tell application "Mail" to activate

using the direct osascript -e script mode does not work and returns the error -10810 (not documented)
cmd = ['osascript', '-e', 'tell application "Mail" to activate']

BTW: does not work either for any not open (Apple) application (like Safari, Calculator, ...)
... but Google Chrome opens