Applescript fails with error (-600) when launched over ssh on Mavericks

前端 未结 11 1650
孤城傲影
孤城傲影 2020-12-05 14:34

I\'ve tried searching for this, and have seen others with similar problems but don\'t seem to have found an answer anywhere....

I have an AppleScript that I am tryin

11条回答
  •  不思量自难忘°
    2020-12-05 14:56

    Hello from 2k19 :) The approach below has helped to me

    tell app "app_name"
        launch
        delay 2
    end tell
    tell app "app_name"
        do something usefull
    end tell
    

    or

    osascript -e "tell app \"app_name\"" -e "launch" -e "delay 2"-e "end tell" -e "tell app \"app_name\"" -e "do someting usefull" - e "end tell"
    

提交回复
热议问题