Forums > MaxMSP

get max as front app

June 29, 2007 | 8:23 pm


June 29, 2007 | 8:49 pm


June 29, 2007 | 8:54 pm


June 29, 2007 | 9:27 pm


June 30, 2007 | 6:59 am

funny, I was about to ask exactly the same question !
…exepted that I’m on Intel mac : so no shell UB yet, as far as I know.
I tried with aka.shell, but it just says in the max window :
"aka.shell: no result"
and… no result.

any idea ?
maybe an applescript ?

thanks

Mathieu

http://www.maxobjects.com

http://mathieu.chamagne.free.fr


June 30, 2007 | 7:43 am

applescript (—> tap.applescript) :

tell application "MaxMSP"
activate
end tell

so easy ! :-)

http://www.maxobjects.com

http://mathieu.chamagne.free.fr


June 30, 2007 | 7:56 am

On 30-jun-2007, at 8:59, mathieu.chamagne@gmail.com wrote:

> funny, I was about to ask exactly the same question !
> …exepted that I’m on Intel mac : so no shell UB yet, as far as I
> know.
> I tried with aka.shell, but it just says in the max window :
> "aka.shell: no result"
> and… no result.
>
> any idea ?
> maybe an applescript ?
>
> thanks
>
> Mathieu

the phrase ‘tell application "MaxMSP" to activate’ is AppleScript
so it will work with tap.applescript from http://www.electrotap.com/
taptoolsmax/
which is UB (and highly recommended)

another approach is to use a shell script that runs outside of max,
for example

#!/bin/sh
while true
do
open "/path/to/your/standalone.app" ;
sleep 10;
done

I use this as a watchdog script, it will open the app if it is
closed, and it will put it
in front if it is already open.
it hardly takes any CPU cycles as the shell script sleeps most of the
time.

HtH
-jennek


June 30, 2007 | 8:21 am


June 30, 2007 | 8:26 am

salut mathieu,

maxobjects.com is not quite up-to-date on this count:
jeremy bernstein ported shell to UB and since Max 4.6.3 it works both
ways.
available here:

http://www.cycling74.com/twiki/bin/view/Share/JeremyBernstein

/*j

> …exepted that I’m on Intel mac : so no shell UB yet, as far as I
> know.


June 30, 2007 | 8:45 am

Salut Jasch !

> maxobjects.com is not quite up-to-date on this count:
> jeremy bernstein ported shell to UB and since Max 4.6.3 it works
> both ways.
> available here:
> http://www.cycling74.com/twiki/bin/view/Share/JeremyBernstein

updated !
thanks for the info !

bests

MathieU

http://www.maxobjects.com

http://mathieu.chamagne.free.fr


June 30, 2007 | 8:48 am


June 30, 2007 | 9:08 am


Viewing 12 posts - 1 through 12 (of 12 total)