get max as front app

Jun 29, 2007 at 8:23pm

get max as front app

#32686
Jun 29, 2007 at 8:49pm

#107974
Jun 29, 2007 at 8:54pm

#107975
Jun 29, 2007 at 9:27pm

#107976
Jun 30, 2007 at 6:59am

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

#107977
Jun 30, 2007 at 7:43am

applescript (—> tap.applescript) :

tell application “MaxMSP”
activate
end tell

so easy ! :-)

http://www.maxobjects.com

http://mathieu.chamagne.free.fr

#107978
Jun 30, 2007 at 7:56am

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

#107979
Jun 30, 2007 at 8:21am

#107980
Jun 30, 2007 at 8:26am

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.

#107981
Jun 30, 2007 at 8:45am

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

#107982
Jun 30, 2007 at 8:48am

#107983
Jun 30, 2007 at 9:08am

#107984

You must be logged in to reply to this topic.