AppleScript - Silent Running?

Bruce Robertson bfr at nwlink.com
Fri Sep 23 22:36:08 EDT 2005


>>> Er, what's "not true" - that you're forced to see FM Pro do its
>>> stuff when using AppleScript or that you need "activate" at the
>>> start of each script?  I'm happy to believe the latter isn't
>>> required, but I don't think it helps since if this is left out I
>>> still see FM Pro screens flashing away.  However, I'm fairly
>>> convinced of the former!
>> 
>> What happens if you start your script with:
>> 
>> tell application "FileMaker Pro"
>>   hide
> 
> 'hide' is not a supported AppleScript command for FileMaker.  In fact
> I don't think it's an application command at all.  The way I make
> FileMaker hide itself using AppleScript is by using the Finder
> instead as follows:
> 
>   tell application "Finder"
>      set visible of application process "FileMaker" to false
>   end tell

You can control it at the window level also:

tell application "FileMaker Pro"
 set visible of window 1 to false
End tell




More information about the use-livecode mailing list