#2
|
|||
|
|||
Gabriel,
If you haven't found a way yourself yet, you might try something like this: Code:
property lastRunDate : date "1/1/1" property persistentCounter : 0 set currentDate to current date if (currentDate > lastRunDate + 7 * days) then log "do this" else if (short date string of currentDate is short date string of lastRunDate) then log "do that" else log "do that other" end if set lastRunDate to currentDate set persistentCounter to persistentCounter + 1 Ciao, Roeland. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
An (Applescript) hack to automate mounting and unmounting external volumes | kbradnam | General | 12 | 07-30-2007 07:12 AM |
Problems automating backups with applescript and crontab | kbradnam | General | 4 | 01-20-2006 07:40 AM |
Applescript says SuperDuper 1.5.3 not scriptable | BudSimrin | General | 4 | 12-11-2004 07:52 AM |
AppleScript bug? fixed! | pzingg | General | 1 | 11-02-2004 06:37 PM |
New netTunes shortly with AppleScript support! | dnanian | General | 0 | 03-13-2003 07:17 PM |