Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 2324 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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?

This topic is 2324 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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