• 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: Timeouts & FileMaker Scripts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Timeouts & FileMaker Scripts


  • Subject: Re: Timeouts & FileMaker Scripts
  • From: Simon Forster <email@hidden>
  • Date: Sun, 7 Nov 2004 10:07:17 +0000


On 6 Nov 2004, at 00:01, Bruce Robertson wrote:

If you invoke a FileMaker Pro script from
AppleScript, control seems to be returned immediately to the
AppleScript (effectively an "ignoring application responses" block).
Frequently this is not what you want as subsequent actions depend on
the FileMaker Pro script doing its thing. I've got into the habit of
calling "modified" immediately after calling a FileMaker Pro script.

Well the problem with this as I see it is that you ALWAYS get "true" as a
result of this script. Only tested briefly - but I can find no circumstances
under which I get any other answer. So I'm not sure how this gets us
anywhere.

If you don't like my suggestion to Andi, why don't you just drop it?

One last time: Andi was seeing some strange results when scripting FileMaker Pro. As someone who scripts FileMaker Pro (mostly 6) quite extensively, I was passing on the simple observation that an AppleScript call to FileMaker Pro (FMP) to invoke a FMP script tends to return immediately - i.e. before the FMP script has completed (6, I haven't tested this with 7). This can cause problems (1). As a work around, if the same AppleScript issues another request to FMP immediately after invoking the FileMaker script, the AppleScript will wait for FMP to return the result from the second call - with the effect that the AppleScript will now wait for FMP to complete its script step. I happen to use the AppleScript call "modified" as it seems to be a relatively trivial call, hopefully with low overhead. You can replace it with whatever you like - if you want a nice delay after the FMP script has run, why don't you try sorting your entire database on every field or some such.

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

(1) For example, you may use a FileMaker Pro script step to import XML data. It may be a good idea to ensure that the FileMaker Pro script step has completed before using AppleScript to perform further functions on the current data set.

_______________________________________________
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:
    • FileMaker Script Question
      • From: Dana Hill <email@hidden>
References: 
 >Re: Timeouts & FileMaker Scripts (From: Bruce Robertson <email@hidden>)

  • Prev by Date: Re: Fraction Maker Revisited Solved?
  • Next by Date: Re: Alias Forms as Property
  • Previous by thread: Re: Timeouts & FileMaker Scripts
  • Next by thread: FileMaker Script Question
  • Index(es):
    • Date
    • Thread