Is it possible to shutdown your computer through a button?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Is it possible to shutdown your computer through a button?
Im searching through the Language reference and the user guide but I dont see a command or a way to execute a computer shutdown on a button click. Maybe I am missing something?
Dear Paul,
Windows XP:
get shell("shutdown -s")
Mac OS 9 and X, AppleScript:
tell application "Finder" to shut down
or "embedded" in Transcript:
do "tell application" && quote & "Finder" & quote && "to shut down" as AppleScript
Unix, Linux and Mac OS X:
get shell("shutdown -h")
Best regards,
Mark
Windows XP:
get shell("shutdown -s")
Mac OS 9 and X, AppleScript:
tell application "Finder" to shut down
or "embedded" in Transcript:
do "tell application" && quote & "Finder" & quote && "to shut down" as AppleScript
Unix, Linux and Mac OS X:
get shell("shutdown -h")
Best regards,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode