Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Relznuk

macrumors 6502
Original poster
Sep 27, 2009
391
0
UT, USA
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?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.