Re: Tiger X11 fails to start from Script - asking again
Re: Tiger X11 fails to start from Script - asking again
- Subject: Re: Tiger X11 fails to start from Script - asking again
- From: William Julien <email@hidden>
- Date: Tue, 31 May 2005 14:05:29 -0700
All I can say is that I have the same problem. It seems like a timing
issue between the activate and the xterm. I only get the "AppleEvent
timed out" when x11 is not running. The script starts x11, so on the
second try it works.
Here is my script.
ell application "X11"
activate
end tell
do shell script "export DISPLAY=:0 ; cd $HOME; /usr/X11R6/bin/xterm -
title callisto -j -ls -sb -sl 1000 &"
William
On May 5, 2005, at 6:21 PM, Elwood C. Downey wrote:
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)
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/
mailman/options/x11-users/email@hidden
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden