Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

nplima

macrumors 6502a
Original poster
Apr 26, 2006
606
0
UK
Hi All,

This is probably a simple problem, but I can't find relevant instructions on the documentation...

I used Darwin ports to get Gnumeric onto my Mac. I left it working all night and now I can open a X11 terminal and run Gnumeric by typing its path and name. I imagine there's a way to script these 2 steps: open X11, run /opt/local/bin/gnumeric

How do I do it?

thanks!

Nuno
 

djdawson

macrumors member
Apr 28, 2005
59
0
Minnesota
I was just reading Apple's X11 FAQ and it mentioned the "open-X11" Terminal command. It opens X11 and starts whatever applications you give it as arguments. So, if you have /opt/local/bin in your search path you should be able to just do "open-X11 gnumeric" and it'll start X11 and then gnumeric all in one shot. Pretty nifty!

HTH
 

savar

macrumors 68000
Jun 6, 2003
1,950
0
District of Columbia
I was just reading Apple's X11 FAQ and it mentioned the "open-X11" Terminal command. It opens X11 and starts whatever applications you give it as arguments. So, if you have /opt/local/bin in your search path you should be able to just do "open-X11 gnumeric" and it'll start X11 and then gnumeric all in one shot. Pretty nifty!

HTH

Also, if you save a terminal session there's an option to save the command you ran it, then when you double click on that file it automatically runs that command. So now you're down to a double-click. How's that?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.