Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

AppleScript to shut down computer?

Featured Replies

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...

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.

Sorry to take so long. But my computer kept shutting down while I was working on an example file

--snip--

:rofl::giggle::cofeebrake:

Thanks for the day maker.

ROTFLMAO

Lee

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 by Guest

  • Author

Perfect. Problem solved with the AppleScript example you wrote. Thanks, Fenton.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.