是否可以将变量从applescript传递到可执行bash文件?如果是这样,我该如何编写可执行的bash文件来接受参数?我将传入一个动态文件名,该文件名将被附加到可执行文件中的文件路径中。将变量从applescript传递到可执行bash文件
AppleScript的...
global A
set A to "test123.pdf"
do shell script "/Users/matt/firstscript " & A
猛砸文件...
#!/bin/bash
b64test=$(base64 /Users/matt/Documents/$1)
echo $b64test | pbcopy
echo $b64test > Users/matt/Base64
你是从一个AppleScript内调用bash脚本? – beroe
是的,看上面的评论。 –