Tuesday, January 13, 2009

applescript osascript stupidscript freakinscript

If you're trying to test a scpt from the terminal and you get slapped with something like this:

osascript ./myscript.scpt
myscript.scpt: execution error: No user interaction allowed. (-1713)

try to redirect the output to /dev/null like this:

osascript ./myscript.scpt > /dev/null 2> /dev/null

Not sure what the drawbacks are yet but so far it works for me!
[Update] no drawbacks, just make sure you really don't expect any user interaction from that script.


Post a Comment

<< Home