Mac Applescript 脚本

使用 applescript 重新启动机器

tell application "Finder" to restart 

 

在shell 脚本中调用applescript

 

osascript -e 'tell application "Finder" to restart'

 

 

 

 

osascript -e 'tell application "应用名"' -e "quit" -e 'end tell'

 

如:osascript -e 'tell application "Eclipse"' -e "quit" -e 'end tell'

     通知Eclipse 退去

你可能感兴趣的:(eclipse,shell,脚本,application)