• 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
Mail script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Mail script
      • From: Malcolm Fitzgerald <email@hidden>
  • Prev by Date: Re: Filemaker changes 04 to 1904
  • Next by Date: Re: Mail script
  • Previous by thread: Re: Inheritance and Loaded Libraries
  • Next by thread: Re: Mail script
  • Index(es):
    • Date
    • Thread