• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to start an apple event
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to start an apple event


  • Subject: Re: How to start an apple event
  • From: Paul Berkowitz <email@hidden>
  • Date: Sun, 31 Dec 2000 10:40:32 -0800

On 12/31/00 10:24 AM, "email@hidden" <email@hidden> wrote:

> Hi,
>
> I am new to AppleScript but love it.
>
> I am trying to find a way to start a script that would be used to start a
> FileMaker Pro script at a certain time of the month.
>
> I am e-mailing reports every day, but at the end of the month I need to
> e-mail a monthly and and sales tax report. I have a script that start the
> daily report every day when the Mac is turned on.
>
> I have to determine if today is the first day of the month, and if so,
> start a FileMaker script for e-mailing the reports for the previous
> month.
>
> I would appreciate any help on writting a script to find out if today is
> the first of the month.
>
> Thank you
>

It would probably be a good idea to guard against restarting the computer
later on the same day on the first of a month and having the report go out a
second time.

property theMonth : ""

set today to (current date)

if day of today is 1 then
if month of today is not theMonth then
set theMonth to month of today
tell application "FileMaker Pro"
--open alias/database with the FMP script
do script FileMaker script "Name Here"
end tell
end if
end if






--
Paul Berkowitz


References: 
 >How to start an apple event (From: "email@hidden" <email@hidden>)

  • Prev by Date: Re: How to start an apple event
  • Next by Date: Re: ODBC (Sybase) Scripting Addition?
  • Previous by thread: How to start an apple event
  • Next by thread: Re: How to start an apple event
  • Index(es):
    • Date
    • Thread