triggering applescripts inside MAX.

fhill2000's icon

I want to trigger an applescript directly from MAX. Is there an object that achieves this?
Also, is there a way to send a keystroke directly to an application without it having to be focused.
The idea here is to set up my iTunes library as a DJ track browser, I press a button on my midi controller and it loads the corresponding .als file into Ableton.

Rob Ramirez's icon

taptools has an applescript object
http://download.74objects.com/taptools/index.html

and aka.shell can execute applescript:
http://www.iamas.ac.jp/~aka/max/

as well as plane ole "shell" object
https://cycling74.com/tools/bernstein-shell/