XML Feeds

.

[maxmsp] Re: MAX and Applescript

!include mhatsys at gmail.com
Sat Jun 16 05:02:21 MDT 2007


Quote: Philippe Gruchet wrote on Wed, 13 June 2007 22:53
----------------------------------------------------
> Quote: !Include wrote on Thu, 14 June 2007 03:11
> ----------------------------------------------------
> > been trying to write a patch using the shell object to send out
> > applescript commands ( mostly GUI scripting ). Im a bit familiar
> > with applescript but it seems some of the syntax is a bit
> > different when using the shell object in max
> ----------------------------------------------------
> 
> Hi Mike,
> 
> Take a look at this recent topic called "Au~ scripting" and search for 'osascript' inside:  <http://tinyurl.com/24xxzq>
> 
> About the interface elements, I suggest to study the scripting possibilities of [thispatcher] object.
 > 
> Bye,
> Philippe
> 
----------------------------------------------------

   Thanks for your response. So basically the shell object will process anything with proper osascript syntax? Wierd for some reason i cant get any osascript sent key combinations to work. im basically tryin to pass a keycombo ( cmnd + c ) to the shell object with no luck. I can tell system processes to activate Live  the application to receive the key command- that works fine. Ive tried a bunch of different things to get the key combo to work, but nothing yet. I have universal access enabled in system prefs. here is what i have if you dont mind taking a look:

 osascript -e 'tell application ""System Events"" to tell process "Live" to keystroke "c" using {command down}'

ive also tried using the menu as i found in your Au~ script ( your au script works for me in max by the way:

'tell application |System Events| to tell process |Live| to click menu item 4 of menu 3 of menu bar 1' 
 but replacing it with the proper menu numbers. Still no luck.
   
  I tried various combinations of both of the above with no luck. Id be greatful for any help on this matter.

Thanks,
mike



More information about the maxmsp mailing list