Martin Costabel wrote:Open the Apple Script Editor, type
do shell script "export DISPLAY=:0; source /sw/bin/init.sh; appname"
save as Application.
This works great if X11.app is already running. How can it be modified to check whether X11 is running, then if it isn't, to start X11 and then run the application in which I'm interested?
Of course, if the answer is, just learn AppleScript, I won't be offended. If there's a way to avoid that, however, I wouldn't mind. :-)
Well learning AS certainly won't hurt =) But these two lines should do the job:
tell application "X11" to activate do shell script "export DISPLAY=:0; source /sw/bin/init.sh; appname"
Bye,
Max
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Fink-beginners mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-beginners
