我需要使用对话框来选择要在bash脚本中使用的文件。我相信唯一的办法是在AppleScript。我想从bash中调用一个AppleScript,并让它作为一个变量返回所选文件的位置,以便在shell脚本中使用。default location strPath) as alias end tell现在如何将PDF ( Appl
我使用osascript (当时是这样工作,而不是bash)分割一个字符串,并将结果数组分配给bash变量,然后继续我的bash脚本。我是这样做的: set oldDelimiters to AppleScript's textEOF)
但是,命令行返回它在没有找到匹配的“)”的情况下到达文件末尾的错误。但是,当我不为osascri
我正在使用applescript通过网关登录ssh。alias sshtoxxxx="osascript ~/workspace/script/applescript/fox/ssh_xxxx.applescript root@10.10.1.199下面的applescript也是没有用的 set arg1 to (item 1 of argv)
set arg2 to (item 2 of argv