Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Running a Script on Exit

1 view
Skip to first unread message

Jameson

unread,
Aug 13, 2005, 10:28:32 AM8/13/05
to
Hi Everyone,

I have a script that is designed to automatically generate an email and
put it in my outbox. Instead of having this script sent when a button
is pressed, how can I make it run when I close the database? Is this
(or something like it) possible?

Thanks in advance.

ursus.kirk

unread,
Aug 13, 2005, 11:22:52 AM8/13/05
to
You obviously haven't tried the help-file first.

RTFM

Try F1 or the help menu-item

Ursus

"Jameson" <james...@comcast.net> schreef in bericht
news:1123943312.6...@f14g2000cwb.googlegroups.com...

Shadenfroh

unread,
Aug 13, 2005, 4:25:03 PM8/13/05
to
In FM 7, File, File Options.

Before that, Edit, Preferences, Document.

--

Shadenfroh
shade...@yahoo.com

"Jameson" <james...@comcast.net> wrote in message
news:1123943312.6...@f14g2000cwb.googlegroups.com...

Helpful Harry

unread,
Aug 13, 2005, 5:03:33 PM8/13/05
to
In article <zGsLe.7532$ns....@newsread1.news.atl.earthlink.net>,

"Shadenfroh" <shade...@yahoo.com> wrote:
> "Jameson" <james...@comcast.net> wrote in message
> news:1123943312.6...@f14g2000cwb.googlegroups.com...
> >
> > Hi Everyone,
> >
> > I have a script that is designed to automatically generate an email and
> > put it in my outbox. Instead of having this script sent when a button
> > is pressed, how can I make it run when I close the database? Is this
> > (or something like it) possible?
> >
> > Thanks in advance.
>
> In FM 7, File, File Options.
>
> Before that, Edit, Preferences, Document.

Specifically, there's an option to run a script on closing the file -
this is run when the file is closed (by the window gadget, the File
menu command or a script command) and when FileMaker is quit.

This option runs the script EVERY time the file is closed, so if you
only want the script run once per day (for example) you'll need to
program that functionality into the script itself (eg. have a Global
field that is set to today's date when the script has finished and use
an If statement to check that Global field isn't already today at the
start of the script).

Helpful Harry
Hopefully helping harassed humans happily handle handiwork hardships ;o)

42

unread,
Aug 13, 2005, 5:16:03 PM8/13/05
to
In article <140820050903331438%helpfu...@nom.de.plume.com>,
helpfu...@nom.de.plume.com says...

/agree

That doesn't work in multiuser situations though. If you really only the
want the script run once a day and the solution is networked, you'll
need to implement a 1 record preferences table/file with the date last
run as one of its fields.

-cheers,
Dave

0 new messages