View Single Post
  #1  
Old 09-14-2005, 04:25 AM
snoopy67 snoopy67 is offline
Registered User
 
Join Date: Jul 2005
Location: Germany
Posts: 16
applescript help

Could some kind soul fluent in Applescript please translate the following csh-stylish statement for me?

I would like to write something like this in an applescript:

if ( date since this script was run last time is more than a week ago )
then
... do this
else
if ( this script was run today already )
then
... do that
else
... do that other
endif
endif

In addition, i would like to have a persistent counter which i can increment and reset (persistent across different runs of the script).
I suspect that's achieved by using a "property"?


I know it's a bit cheap to just ask here, and yes, i know you might be thinking that i should learn applescript, but i simply don't have the time, and i won't be using it often enough to justiy the time to learn it.

Many thanks in advance,
Gabriel.
Reply With Quote