Can mail.app schedule future delivery?

Discussion in 'Mac Help/Tips' started by gizmo, May 19, 2003.

  1. gizmo macrumors newbie

    Joined:
    May 3, 2003
    Location:
    Chicago
    #1
    Does anyone know if there is a way to schedule a message for automatic future delivery rather than having mail.app send it right away? Of course, I can save a draft but then I have to remember to go send it at a later time. One thing I do miss (and there isn't much I miss) about Outlook was this feature.
     
  2. coolbreeze macrumors 65816

    Joined:
    Jan 20, 2003
    Location:
    UT
    #2
    Aaah, I miss that in Outlook too. Set it to send out a work-related message at 6:15PM...all while you tee up on the 10th hole and crack open your 5th beer...

    "Workin' hard" hahaha (I wouldn't know anything about that though)...:cool:
     
  3. Taft macrumors 65816

    Taft

    Joined:
    Jan 31, 2002
    Location:
    Chicago
    #3
    This sounds like a job for APplescript and cron to me....

    Taft
     
  4. patrick0brien macrumors 68040

    patrick0brien

    Joined:
    Oct 24, 2002
    Location:
    The West Loop
    #4
    -Taft

    Do you have one in mind - or even better - know of where we can get a script such as this?

    I'm afraid all Applescript does to me is piss me off. :D
     
  5. Taft macrumors 65816

    Taft

    Joined:
    Jan 31, 2002
    Location:
    Chicago
    #5
    I write scripts like this all the time...but I don't know of any already written. Maybe if I get the motivation I'll write one.

    Applescript can be a difficult language to learn. I find its concept of variables and references to be muddled. Also, it is way too easy to write a command that will syntactically look alright but be utterly incorrect...five tries later, you might actually get the reference you were attempting to get.

    Basically, I feel your pain.

    Taft

    Taft
     
  6. patrick0brien macrumors 68040

    patrick0brien

    Joined:
    Oct 24, 2002
    Location:
    The West Loop
    #6
    -Taft

    Do you have a book recommendation for my friend Giz and I?
     
  7. Taft macrumors 65816

    Taft

    Joined:
    Jan 31, 2002
    Location:
    Chicago
    #7
    I've learned from this document:

    http://developer.apple.com/techpubs/macosx/Carbon/pdf/AppleScriptLanguageGuide.pdf

    Also, you can figure out a lot by simply looking at the Dictionaries of various applications. Open the Script Editor app and select Open Dictionary from the File menu, then pick the app you want to script.

    I've never tried an Applescript book. It might be a good buy. There are a lot of ins and outs to the language and we know for a fact it can be tricky. A book might ease the learning curve and make it more useable. For a Unix script kiddy like me, I can often get away with not using Applescript, but there are a lot of things Applescript can do, so its probably a good investment.

    Also, are you familiar with 'cron'? Its the built-in Unix schedular. It runs automatically on a default Mac OS X install.

    You can use the crontab command on the command line to edit the scheduled commands.

    Do a:

    Code:
    crontab -e
    To edit the scheduled commands. Beware! It will use vi to edit the file. Figure out how to use vi before trying to edit the file

    The items to be scheduled take the following form (one item to be scheduled per line):
    Code:
    minute hour DayOfMonth Month DayOfWeek CommandToRun
    You can specify any of the time fields with a * to indicate any value is acceptable. An example entry might look like this:

    Code:
    5 4 * * sun     echo "run at 5 after 4 every sunday"
    Here, the command to run is echo with some parameters. You could substitute that with the location of an AppleScript or command line utility. There may also be front end utilities to control cron and make it more useable for the casual user.

    Taft
     
  8. Taft macrumors 65816

    Taft

    Joined:
    Jan 31, 2002
    Location:
    Chicago
    #8
  9. patrick0brien macrumors 68040

    patrick0brien

    Joined:
    Oct 24, 2002
    Location:
    The West Loop
    #9
    -Taft

    Thanks!

    I'll pop it and see if I can point it at Mail.app.
     

Share This Page