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.
RTFM
Try F1 or the help menu-item
Ursus
"Jameson" <james...@comcast.net> schreef in bericht
news:1123943312.6...@f14g2000cwb.googlegroups.com...
Before that, Edit, Preferences, Document.
--
Shadenfroh
shade...@yahoo.com
"Jameson" <james...@comcast.net> wrote in message
news:1123943312.6...@f14g2000cwb.googlegroups.com...
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)
/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