我编写了一个简单的命令行可执行文件,并试图在我打开其封闭文件夹时启动它。我正在使用打开 AppleScript 的文件夹操作。到目前为止,AppleScript 是:
tell application "Finder"
open document file "Feed the Beast Launcher" of folder "Feed The Beast" of folder "Desktop" of folder "Matthew" of folder "Users" of startup disk
end tell
可执行文件是:
export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home
java -jar ~/Desktop/Feed\ The\ Beast/FTB_Launcher.jar
你能帮我吗?