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.

Native Apple Script > Calculated Apple Script

Featured Replies

Hey guys

I have a NAS which I administer by issuing commands via SSH inside of terminal. All that typing has become a little monotonous so I created a small FM solution to do it for me.

This is one of my [native] Apple Scripts that are issued via a button click from inside of FM:

on RunTerminal()
set ScriptCommand to "docker restart 70763e5576a3 85201fbfccc4 935a69d98be1 afb9e027526d"
tell application "Terminal"
activate
do script with command ScriptCommand in window 1
end tell
end RunTerminal

on run
RunTerminal()
end run

It works great, but I want to customize it a little more. The alphanumerical numbers (70763e5576a3, etc.) are individual containers which I've had to hard code into my Apple Script. I would like to have all my containers listed in a portal so it's easy to add or delete what containers I want the script to reference (or even further, have check boxes next to the records/containers I want included in the script). 

I'm not familiar with how to turn apple scripts into customized FM calculations to achieve this. Can anyone help point me in the right direction?

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.