Tiger X11 fails to start from Script - asking again
Tiger X11 fails to start from Script - asking again
- Subject: Tiger X11 fails to start from Script - asking again
- From: "Elwood C. Downey" <email@hidden>
- Date: Thu, 5 May 2005 19:21:33 -0600 (MDT)
- Importance: Normal
Sorry to post the same report again, but I got no responses the first time and am really hoping for some help. In
short, I can not seem to start X11 from Apple Script. I am trying to create a Dock icon that, when clicked, will start
X11 then start the X application. This was possible in Panther but the same script no longer works in Tiger. I am
hoping to find a way to make it work again. Note that I sell software products for OSX so this is not just a personal
inconvenience to me, it is an important topic for my many users. Here is the post again for your convenience, I have
tried to include all the helpful info I can think of. Thanks in advance for any help.
=========================
I am having problems scripting X11 after upgrading to Tiger and installing its X11. I have an Apple Script that
contains the following:
tell application "X11"
activate
end tell
do shell script "cd /usr/local/xephem; ../bin/xephem"
Running this from the Script Editor I see X11 appear in the dock and see this in the event log:
tell application "X11"
activate
current application
activate
Nothing else happens on the screen and Script Editor hangs at this point, even clicking the Apple icon in the upper
left corner does nothing. I have tried waiting a few minutes and nothing changes. Then if I Quit X11 via it's dock
icon I simultaneously get two dialogs. One is an Alert from X11 asking if I am sure I want to quit, the other is an
AppleScript Error saying "X11 got an error: AppleEvent timed out".
Sometimes it works a little differently. In the second scenario the only thing in the event log are the two lines up
to the first activate. In this case, X11 does not appear in the dock, and again Script Editor is hung and the Apple
icon does nothing. The only way I have found to get out of this is to start X11 from a terminal, which immediately
results in return of Script Editor and Apple icon functionality and an entry in the Script Editor event log as
follows:
current application
"X11 got an error: Connection is invalid."
I hope this helps, I hope this problem will be corrected very soon.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden