Re: Getting Data out of Filemaker Pro
Re: Getting Data out of Filemaker Pro
- Subject: Re: Getting Data out of Filemaker Pro
- From: kai <email@hidden>
- Date: Sun, 3 Oct 2004 19:13:41 +0100
On Sun, 3 Oct 2004 10:09:13 -0300, Bernardo Hoehl / Gessos Rutenium
<email@hidden> wrote:
Thanks Bruce and David for replying...
I am now trying to hide all of the Filemaker Pro windows, and have come
up with this code:
tell application "FileMaker Pro"
set WindowNumber to 1
repeat with i from 1 to the count of windows
set visible of window WindowNumber to false
set WindowNumber to WindowNumber + 1
display dialog "I have hidden window " & WindowNumber --Just
testing...
end repeat
end tell
But this code fails to hide the last window. Why?
There has to be one last window visible?
Isn't there a "every window" option or still "all windows"?
I can't test for that in FileMaker right now, Bernardo - although
"every window" (or even just "windows") would certainly work in some
applications.
I guess you're still ending up with visible windows because, while your
script is counting upwards, FileMaker is actually reducing the number
of windows. You could try something like this instead:
----------------
tell application "FileMaker Pro" to repeat with n from (count windows)
to 1 by -1
set visible of window n to false
end repeat
----------------
or:
----------------
tell application "FileMaker Pro" to repeat while window 1's visible is
true
set window 1's visible to false
end repeat
----------------
You might even consider hiding FileMaker altogether - perhaps with
something like this:
----------------
tell application "System Events" to set process "FileMaker Pro"'s
visible to false
----------------
---
kai
---
kai
_______________________________________________
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