2016-05-12 58 views

回答

1

要運行的sh,你可以這樣做:在這你把一個計時器你想要的時間,每次這個定時器

sh yourscript.sh 

你可以做一個bash腳本(.SH)發生使用:

open -n ./yourapp.app --args -AppCommandLineArg 

要打開你的應用程序

不要忘記把!#/bin/bash在腳本的第一行

末,你會碰到這樣的:

!#/bin/bash 
while sleep 600; do 
open -n ./yourapp.app --args -AppCommandLineArg 
done 
+1

.app文件這是如何讓每10分鐘一班的應用程序/腳本? – trojanfoe

+0

剛剛編輯我的帖子 – EmCode

+0

OP可能正在尋找更多'launchd'類型的解決方案,因此該問題是脫離主題,屬於https://apple.stackexchange.com – trojanfoe