Mail script
Mail script
- Subject: Mail script
- From: Michelle Steiner <email@hidden>
- Date: Wed, 27 Oct 2004 22:07:28 -0700
I hope to be able to run the following script every day from November
2nd through Jan 20 of next year. If I can do that, I shall set my
signature to "countdown" and forego, for the time being, random
signatures.
-- Michelle
set InaugDate to "1/20/05"
set InaugDate to date InaugDate
set today to date (date string of (current date))
set time_remaining to InaugDate - today
set days_remaining to time_remaining div days
tell application "Mail"
if not (exists signature "countdown") then
make new signature at after signatures with properties
{name:"countdown"}
end if
set content of signature "countdown" to return & "-- " & return &
(days_remaining as text) & " more days!"
end tell
--
If you don't hit any bumps in the road, you're not moving.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden