Re: FMP question
Re: FMP question
- Subject: Re: FMP question
- From: Will Gosney <email@hidden>
- Date: Mon, 30 Oct 2000 08:49:09 -0500
Paul
Something that might help you is that you can call applescripts from
within filemaker native scripts that you click with a button from
your layout.
Will
At 10:50 PM -0800 10/29/00, Paul Berkowitz wrote:
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
References: | |
| >FMP question (From: Paul Berkowitz <email@hidden>) |