• 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: How to quit an applet?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to quit an applet?


  • Subject: Re: How to quit an applet?
  • From: Brian Johnson <email@hidden>
  • Date: Tue, 7 Jun 2005 18:50:09 -0700 (PDT)


On Tue, 7 Jun 2005, Neil Lee wrote:

I created a very basic applescript application that only has to run a shell command and then quit. Here's the code:

on run
do shell script "/Volumes/lester/Development/Webkit/WebKitTools/ Scripts/run-safari &"
quit
end run


The problem is that after Safari launches, the script applet doesn't quit. It hangs and I have to force quit it.

I think this is it... Look at this line from one of my scripts

   set x to "/scripts/stopmysql > /dev/null 2>&1&"

The stuff at the end insures that the "do shell script" that comes next returns immediately, so my script can quit (or, in this case, poll the mysql process to see if it's quit yet).

This is explained in "TN2065-do shell script.pdf" on the apple dev web site (sorry, I downloaded my copy ages ago).


_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: How to quit an applet?
      • From: Peter Clarke <email@hidden>
References: 
 >How to quit an applet? (From: Neil Lee <email@hidden>)

  • Prev by Date: Re: How to connect to another Mac on the same network?
  • Next by Date: Re: How to connect to another Mac on the same network?
  • Previous by thread: How to quit an applet?
  • Next by thread: Re: How to quit an applet?
  • Index(es):
    • Date
    • Thread