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

Re: FileMaker "do script"


  • Subject: Re: FileMaker "do script"
  • From: Bruce Robertson <email@hidden>
  • Date: Sun, 22 Jun 2008 06:42:27 -0700

> It seems to me that FileMaker (8.0v2) will only execute a script in
> the frontmost window. If you say <<tell database "MyDatabase" to do
> script "MyScript">> this will fail unless "MyDatabase" happens to be
> frontmost.
>
> FileMaker's documentation implies this, because their example is:
>
> tell application "FileMaker Pro"
> do script FileMaker script 1    -- the first script
> do script last FileMaker script    -- the last script
> do script FileMaker script ¬
> "Print Sales Report"    -- a script by its name
> do script FileMaker script after ¬
> FileMaker script 1    -- the second script
> do script FileMaker script before ¬
> FileMaker script 3
> -- the second script
> do script (every FileMaker script ¬
> whose name begins with "aName")    -- all scripts meeting a test
> end tell
>
>
> If my intuition is correct, this is really annoying because it makes
> the script very intrusive, unable to truly run in the background.
> Perhaps I can just make the database come to the front of all the
> FileMaker tables without making FileMaker active, but that's still
> intrusive if I'm using FileMaker for something else.
>
> - David

It's not quite that simple.

FileMaker scripts CAN run in the background.

Some script steps will cause the window to come to the front, particularly
record navigation and layout navigation.

tell application "FileMaker Pro Advanced"
    set D to a reference to document "DYMO Addresses"
    set s to a reference to FileMaker script "Sort by Address" of D
    do script s
    -- Filemaker remains in background
    -- called window remains in background
end tell

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: FileMaker "do script"
      • From: Joe <email@hidden>
    • Re: FileMaker "do script"
      • From: David Crowe <email@hidden>
References: 
 >FileMaker "do script" (From: David Crowe <email@hidden>)

  • Prev by Date: Re: Error on make new alias on afp mounted volume
  • Next by Date: Re: FileMaker "do script"
  • Previous by thread: FileMaker "do script"
  • Next by thread: Re: FileMaker "do script"
  • Index(es):
    • Date
    • Thread