• 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: do shell script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: do shell script


  • Subject: Re: do shell script
  • From: Jon Pugh <email@hidden>
  • Date: Sun, 7 Jul 2002 15:04:11 -0700

At 6:34 AM +1000 7/8/02, Peter Gort wrote:
>Unfortunately, the problem remains. When AppleScript tries to execute either the start or stop commands to fmserverd, AppleScript hangs until fmserverd is no longer running.

OK, we need to attack it at the AE level. The problem is that you can't ignore the response of an AE directed at yourself. You need to ignore one directed at some other process, like the Finder or something.

tell application "Finder"
ignoring application responses
do shell script "-- your shell script here --"
end ignoring
end tell

Now, the interesting part will be whether the Finder hangs until the server quits. ;)

Jon
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: do shell script
      • From: Steven Angier <email@hidden>
References: 
 >Re: do shell script (From: Peter Gort <email@hidden>)

  • Prev by Date: Re: Behavior change in "open for access" from AS 1.6 to 1.8.3?
  • Next by Date: Re: do shell script
  • Previous by thread: Re: do shell script
  • Next by thread: Re: do shell script
  • Index(es):
    • Date
    • Thread