1
我有以下Bash腳本。將AppleScript添加到Bash腳本中
!#/bin/bash
fscanx --pdf /scandata/Trust_Report
if [ "$?" = "0" ]; then
我想運行下面的AppleScript
tell application "FileMaker Pro Advanced"
activate
show window "Trust Reports"
do script "Scan Trust Report"
end tell
else
say 「It did not scan」
fi
什麼是正確的語法來調用這個AppleScript的?
謝謝
有噸的鏈接,如果你搜索「從bash的運行AppleScript」。這是[許多中的一個](http://apple.stackexchange.com/questions/103621/run-applescript-from-bash-script)。 – chrisaycock
[這是在askdifferent.stackexchange上回答](http://apple.stackexchange.com/questions/103621/run-applescript-from-bash-script) – davidcondrey