Re: (newbie) script to open filemaker files
Re: (newbie) script to open filemaker files
- Subject: Re: (newbie) script to open filemaker files
- From: Simon Topliss <email@hidden>
- Date: Fri, 16 Feb 2001 10:24:57 +0000
Hi Graham,
Try:
tell application "FileMaker Pro"
activate
open file "Clients & Prospects"
open file "Enquiry Log"
open file "Guy's Leads"
open file "Invoices"
open file "Job Analysis"
open file "Lead Tracking"
open file "WIP sheet"
end tell
There are examples of Filemaker's syntax in the folder "FileMaker and Apple
Events" which is installed by default inside the same folder as the
Filemaker application.
Cheers,
Simon Topliss
On 16/2/01 10:00 am, "Graham, Total Coverage Limited"
<email@hidden> wrote:
>
I'm new to Applescript so please be gentle with em.
>
I'm trying to set up a script that launches Filemaker on our server and opens
>
the databse files to be shared. I will use iDo Script Scheduler to set the
>
script to run at a given time on weekday mornings.
>
>
The script looks like this:
>
>
tell application "FileMaker Pro"
>
open "Clients & Prospects"
>
open "Enquiry Log"
>
open "Guy's Leads"
>
open "Invoices"
>
open "Job Analysis"
>
open "Lead Tracking"
>
open "WIP sheet"
>
end tell
>
>
It all works fine inso far as the script runs on time and launches the
>
application, but will not open the files. What happens is: Filemaker launches,
>
and appears to sit in the background doing nothing. When I select it manually
>
from the Applications menu, it immediately opens all the files. Do I need to
>
include a command in the script to bring Filemaker to the front?
>
Any advice gratefully received.
>
>
Regards
>
Graham