【发布时间】:2013-10-17 15:15:55
【问题描述】:
我需要用自动机启动和停止一台小型服务器,但我的知识非常有限。我无法设置文件所在的路径,也不知道如何停止服务器。
到目前为止,我有这个:
运行中
set r to display dialog "Start or stop the NINJAM server ?" buttons {"Stop", "Start"}
if button returned of r is "Start" then
#tell application "Terminal"
# activate
do shell script "cd \"/Applications/ MUSIC/ Utilities/Audio IP/NINJAM/NINJAM/NinjamOSXServer ./ninjamsrv Server.cfg\""
#end tell
else
do shell script "Stop"
end if
结束运行
真的很感激任何帮助。提前致谢。
【问题讨论】:
标签: applescript automator