Page 1 of 1

An easy way to open MXCL on OsX

Posted: Sun Jun 25, 2006 12:12 pm
by beppeg
Hi, finally I've found an easy way to open the MXCL on OsX with only one click :)
Open the terminal and with the default shell opened, choose "Save as" in the File menu.
In the save window choose "Execute this command", drag the mxcl in the wihte fild and write -d.
You should have something like this, if you have installed m~r in the default path:
/Applications/Maxwell/maxwell.app/Contents/MacOS/mxcl -d
Image
Save it where you wont and drag it in the right side of the dock.
Now you can lunch MXCL with one click and play with it :)
You can download an already done copy here:
http://www.beppegullotta.it/render/MXCL_term2.zip
Special thanx to Pietro Spampatti for adding the icon ;)

Posted: Fri Jul 07, 2006 9:12 am
by wimver
Great, Beppeg,

very useful!

tnx
wim

THANKS

Posted: Fri Jul 07, 2006 11:11 pm
by Q2
Makes live much easier! Ciao Q!

Posted: Sat Jul 08, 2006 11:57 am
by beppeg
:D
naturally it's works fine with 1.1 also :)

Posted: Mon Jul 10, 2006 6:00 pm
by dyarza
Very nice beppeg.

Easy way to open server and manager for coop rendering too, just replace "-d" with "-server" and "-manager" for a one click start.

Thanks so much, makes life easier.

D

Posted: Mon Jul 10, 2006 8:37 pm
by beppeg
Exactly :D
You can add also -p:low for the server ;)
It would be nice to have 3 icons for the 3 mxcl states :roll:

Posted: Tue Jul 11, 2006 4:53 pm
by kirkt
You mean like this:

Image

They are just simple AppleScript apps, one for each "state".

------

tell the application "Terminal"
do script "/Applications/Maxwell/maxwell.app/Contents/MacOS/mxcl -d"
end tell

------

as en example of the "Viewer" script. Here is the text from the Terminal dictionary:

do script?v : Run a UNIX shell script or command
do script string : data to be passed to the Terminal application as the command line
[with command string] : data to be passed to the Terminal application as the command line, deprecated, use direct parameter
[in reference] : the window in which to execute the command


As an aside - I am going to try to learn a little bit about XCode and building a simple GUI for AppleScripts. Here is a shot of the concept:

Image

a bit of overkill, but a simple little app to do all the dirty work at once. I will be taking pre-orders for the Release Candidate soon :twisted:

Posted: Tue Jul 11, 2006 7:56 pm
by beppeg
kirkt wrote:You mean like this:
To tell you the truth I was think at 3 differnt icons with 3 differnt objects over the m~r icon, like sunglasses for viewer and so on :roll:

But your Maxwell Launch v0.1 it's amazing :D :D :D
I subscribe the preorder :D :D :D

Posted: Wed Jul 12, 2006 6:49 am
by kirkt
So here's a screenshot of what i came up with -way overkill but a fun way to learn AppleScript Studio:

Image

1. enter the path to your copy of mxcl - the default is shown
2. enter any command line options (e.g., -p:low)
3. click the button for the mxcl app you want to launch.
4. the command line that actually gets executed is echoed here.

Just close the window to quit - the app stays up so if you need to terminate Terminal, you can relaunch as needed.

By making it this way, you can specify different command line options for each app you launch by changing the options before pressing the associated "launch" button.

I stole Greg Montague's image for the icon - i will edit the app tomorrow to put a little credit above the command line echo field in v0.2!

It's rough, but anyone who wants to try it out, email me:

kthibault at biomechanicsinc dot com.

and I will email you a ZIPped version (60 KB). It is a universal binary and should be compatible with OSX 10.2 and higher.

kirk

Posted: Thu Sep 14, 2006 1:26 am
by dyarza
Hi all,

So this is working very nicely now to start MXCL in a terminal window.

Does anybody know how to make this work on a remote computer with ssh?

I can log in to my other computer with ssh but I am back to not being able to run MXCL because it does not find it, even if I type the whole path. I get some strange message that is over my head:

"dy-wrk-002:~ dyarza$ /Applications/Maxwell/maxwell.app/Contents/MacOS/mxcl

Info: path = /Applications/Maxwell/maxwell.app/Contents/MacOS/kCGErrorRangeCheck : Window Server communications from outside of session allowed for root and console user only
INIT_Processeses(), could not establish the default connection to the WindowServer.Abort trap
dy-wrk-002:~ dyarza$ "

dy-wrk-002 is my remote box, so I know I am logged in.

I am no UNIX expert, so if anybody has any ideas please let me know.

Thanks,