MarkSLC Posted December 16, 2005 Share Posted December 16, 2005 I am creating a standalone kiosk application that will run on a Mac mini. I need to create an [Exit] button that will exit the FM app and *also* automatically shut down the computer. Not sure how to go about this. Is there some sort of AppleScript commmand to shut down the computer? I am new to AppleScript, but I note that you can make AppleScript calls from within FM scripts... Link to comment Share on other sites More sharing options...
Fenton Posted December 17, 2005 Share Posted December 17, 2005 Sorry to take so long. But my computer kept shutting down while I was working on an example file :-] You can just use this in a Perform AppleScript step: tell application "System Events" to shutdown Then a FileMaker step: Exit Application The Exit is kind of rundandant, as shutdown would close it anyway. Run that as the File Option, on Close. I think it'll work. You can also use "restart" if you just want to test. Link to comment Share on other sites More sharing options...
Lee Smith Posted December 17, 2005 Share Posted December 17, 2005 Sorry to take so long. But my computer kept shutting down while I was working on an example file --snip-- Thanks for the day maker. ROTFLMAO Lee Link to comment Share on other sites More sharing options...
Lee Smith Posted December 17, 2005 Share Posted December 17, 2005 (edited) Wow, your :-] when included in a quote, affected how the quote read. It took the word "Said" and placed it where the :-] was located instead of where it now appears. Lee Edited December 17, 2005 by Guest Link to comment Share on other sites More sharing options...
MarkSLC Posted December 18, 2005 Author Share Posted December 18, 2005 Perfect. Problem solved with the AppleScript example you wrote. Thanks, Fenton. Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 6698 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now