I am aware of the terminal commands used to make an Apple laptop remain awake when closed, as well as how to reverse it.
I'd like to create two programs to stick in my dock, one for each function. I have used AppleScript for similar tasks before, but my question is whether terminal commands will work in AppleScript.
If not, how can I create these programs? They need not have a GUI - just run like a script.
Additionally, does anyone know how to bind an icon to an AppleScript that is compiled as an app via the AppleScript editor?
I'd like to create two programs to stick in my dock, one for each function. I have used AppleScript for similar tasks before, but my question is whether terminal commands will work in AppleScript.
If not, how can I create these programs? They need not have a GUI - just run like a script.
Additionally, does anyone know how to bind an icon to an AppleScript that is compiled as an app via the AppleScript editor?