Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tiger X11 fails to start from Script - asking again



There are a few apple people on the list. It would be nice to get additional confirmation that others have seen this and it is a repeatable. It does take a long time watching the spinning ball, so maybe people don't have the patience to wait for error. My script is more or less generic.

William
On May 31, 2005, at 3:12 PM, Elwood C. Downey wrote:

Hi William,

Thanks at least for the confirmation. I don't know how to actually report bugs, I just hope Apple reads these lists.

--
Elwood Downey, President/CTO, Clear Sky Institute, Inc.
http://www.clearskyinstitute.com


On Tue, May 31, 2005 3:05 pm, William Julien said:

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) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/x11-users/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.