Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


it works! | 20 comments | Create New Account
Click here to return to the 'it works!' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
it works!
Authored by: willchernoff on Aug 09, '03 11:33:41AM

the author is right about changing "set" as one line, However, with the posted code, you have to specify the right pathway to your desired application and there is not space between pathway and executable.

tell application "Finder"
launch application "X11"
end tell

set results to do shell script "cd ~; DISPLAY=:0.0;
export DISPLAY; PATH=$PATH:/usr/local/bin; export PATH ;
/opt/local/bin/gimp > /dev/null 2>&1 &"



[ Reply to This | # ]
if you have fink
Authored by: slacker on Aug 16, '03 09:53:00PM

I ran into some problems with my laptop when X11 wasn't loaded where the script was running before X11 was up. Stuck in a "delay #sec" command and it started working. This version of the script uses fink. Replace emacs with your favorite command. All X applications take a -display argument.

--- cut here

tell application "Finder"
launch application "X11"
end tell

delay 1

set results to do shell script "(cd ~; source /sw/bin/init.csh; emacs -display :0.0) > /dev/null 2>&1 &"

--- cut here



[ Reply to This | # ]