• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Run X11 apps from Applescript - works no longer in Tiger?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Run X11 apps from Applescript - works no longer in Tiger?


  • Subject: Re: Run X11 apps from Applescript - works no longer in Tiger?
  • From: robert delius royar <email@hidden>
  • Date: Mon, 23 May 2005 09:23:35 -0400 (EDT)
  • Organization: An Apple OS X end user
  • Priority: normal

Mon, 23 May 2005 (14:55 +0200 UTC) Thomas Niederreiter wrote:

Hello all,

I ported my little X11 application from linux to osX a while ago and also
included a short applescript file in order to start it up in a "Mac" way.

That same applescript did run fine with Jaguar and Panther, but fails
completely with Tiger:

Here is the snipplet in question:

        tell application "X11"
            activate
            set results to do shell script "cd ~;
                DISPLAY=:0.0; export DISPLAY; /usr/local/bin/xcdroast -o
/dev/null 2>&1 &"
        end tell

When I run this in the script editor, then at first X11 is getting
started. (Also the initial xterm pops up and works fine.)

But now the script-editor is frozen and will not accept any more input,
until I quit X11. Then it will get applescript timeout eventually.

My program never gets started up - The same commands typed within
Terminal do work fine.

Any idea what changed with Tiger so that method is no longer working?

I use Platypus to wrap my desktop X11 startups, now. But I do have one old one that I tried after reading your post. It still works. However, I keep X11 up all the time, so I only tried it when X11 was running. It is different from yours. If I were to write a bash version, I would just call open on X11.app which would either start the server or raise it if it is already running. I have a number of those on the desktop for drag and drop.


on run
	tell application "Finder"
		--Launch X11 and bring to front
		activate application "X11"
		--String that will be executed by the do shell script command
		--First set the display
		set theCommand to "export DISPLAY=':0.0';/opt/local/bin/scribus > /dev/null 2>&1 &"
		with timeout of 1000000 seconds
			do shell script theCommand
		end timeout
	end tell
end run

_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list      (email@hidden)
This email sent to email@hidden


References: 
 >Run X11 apps from Applescript - works no longer in Tiger? (From: Thomas Niederreiter <email@hidden>)

  • Prev by Date: putting X to sleep
  • Next by Date: Re: Re: Run X11 apps from Applescript - works no longer in Tiger?
  • Previous by thread: Run X11 apps from Applescript - works no longer in Tiger?
  • Next by thread: Re: Re: Run X11 apps from Applescript - works no longer in Tiger?
  • Index(es):
    • Date
    • Thread