FMP question
FMP question
- Subject: FMP question
- From: Paul Berkowitz <email@hidden>
- Date: Sun, 29 Oct 2000 22:50:41 -0800
I'm brand new to FMP - I've just had the 30-day trial version of FMP5 for 2
days and am awaiting a full version in a week or so.
It seems that
do script "NameofFileMakerScript"
only works when the document to which the FileMaker script in question
belongs is in the front. It does no good to put
do script "NameofFileMakerScript" of document "TheOneIWant"
if that doc is in the background: it errors, nor to use the supposedly
unique ID of the script (1.0) since every doc has its own ID 1.0 FM script.
So how do you get an open document to the front? 'show' seems broken,
'select' doesn't exist, 'open' errors, all with either 'document' or
'window'.
The only thing I've found that works is to tell FMP to open the alias
representing the document file itself, even though it's already open. That
puts it into the front, then I can 'do script' one of its scripts. This
seems remarkably circuitous. It will do as a work-around, but surely there
must be some easier way to get the window to the front, or to run a
FileMaker script belonging to a window in the background?
Any help would be appreciated.
--
Paul Berkowitz