• 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 make AppleScript wait for FileMaker to complete a script?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to make AppleScript wait for FileMaker to complete a script?


  • Subject: Re: How to make AppleScript wait for FileMaker to complete a script?
  • From: Simon Forster <email@hidden>
  • Date: Thu, 31 Mar 2005 22:42:55 +0100


On 31 Mar 2005, at 17:57, Dennis Jones wrote:

In the AppleScript below, I need to make the AS script wait while a
FileMaker script runs.

Wrap the call in a "with timeout" block and then add a trivial call to FileMaker to do something else. As FileMaker is single threaded, the second event will be blocked until the do script step returns. I use "modified" which simply returns a boolean as to whether the database has been changed. So:


tell application "FileMaker Pro 6"
	do script scriptToRun
end tell

becomes:

with timeout of 600 seconds
	tell application "FileMaker Pro 6"
		do script scriptToRun
		modified
	end tell
end timeout

Works for me in about half a dozen scripts.

HTH

Simon Forster
_____________________________________________________
 LDML Ltd, 62 Pall Mall, London, SW1Y 5HZ, UK
 Tel: +44 (0)870 1999 780   Fax: +44 (0)70 9230 5247
_____________________________________________________

_______________________________________________
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


References: 
 >How to make AppleScript wait for FileMaker to complete a script? (From: Dennis Jones <email@hidden>)

  • Prev by Date: Re: Mac vs unix Carriage returns on a text file format
  • Next by Date: Re: How to make AppleScript wait for FileMaker to complete a script? SOLVED
  • Previous by thread: Re: How to make AppleScript wait for FileMaker to complete a script?
  • Next by thread: Re: How to make AppleScript wait for FileMaker to complete a script? SOLVED
  • Index(es):
    • Date
    • Thread