【发布时间】:2009-12-16 13:33:00
【问题描述】:
我正在尝试编写一个applescript,它将运行任何放置在我网络上特定文件夹中的shell 脚本。
我一直在尝试:
on adding folder items to target_folder after receiving this_script
tell application "Terminal" to open this_script
end adding folder items to
但我没有运气。
对可能出现的问题有任何想法吗?
【问题讨论】:
-
确保 shell 脚本具有扩展名
.command。否则它们不会打开。
标签: terminal applescript