bitfocus / companion-module-requests

Repository for tracking module requests
96 stars 10 forks source link

Running AppleScript #86

Open hadphild opened 5 years ago

hadphild commented 5 years ago

Could we get AppleScript running.

Would be great to get iTunes controlled?

willosof commented 5 years ago

I hear you. Someone needs to make a listener software that can execute applescript. Currently I'm using qlab for pure applescript execution, works great. It has no place in core, though. I'll leave the issue open.

josephdadams commented 4 years ago

Moving this to module requests so we can track it there and decide if it is something that we will add/support (generic OS execution).

josephdadams commented 4 years ago

We have generic OS execution through the internal shell script action, so we can close this, yeah? @willosof

quentinmit commented 4 years ago

There's a lot of things that could be done with an AppleScript module that can't be done with shell scripts. Most notably, feedback/variables. For instance, I'd love to be able to use AppleScript to run "get output volume of (get volume settings)" and put the current system volume on a button.

mcelreafilms commented 4 years ago

You can use osascript to trigger applescript from the generic shell. I've used that in a production environment quite reliably. I don't have the files in front of me to check how we did it, but on a show last November one of my guys figured out a feedback mechanism to have the applescript trigger further companion actions as well.

pedanticdan commented 1 month ago

I start my scripts with:

!/usr/bin/osascript

Then everything in the file is interpreted as AppleScript.

Is there some reason that's not adequate?