July 14, 20187 yr 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