推 xwan227770:你應該是要用terminal進去那個檔案的目錄 08/31 01:52
→ xwan227770:然後打入類似 sh (檔案名) 或是 ./(檔案名) 去執行吧 08/31 01:53
→ ballII:我希望雙擊就可執行 08/31 01:56
推 seedman:我會用automator開新應用程式 工具程式->執行shell 08/31 03:47
推 iPluto:樓上正解 08/31 03:55
推 theory:因為你的 sh 檔沒有"執行"權限,要用 chmod +x 該檔後才行 08/31 23:33
→ cendre:可以打開AppleScript Editor,輸入底下一行: 09/01 10:55
→ cendre:do shell script "sudo pmset -a hibernatemode 0" 09/01 10:55
→ cendre:儲存,對話框中File Format的部份選擇Application 09/01 10:56
→ cendre:會得到一個點兩下執行該指令的.app檔 09/01 10:57
→ ballII:謝謝各位 09/01 11:41