• 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
scripting 'mail' from OS X
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

scripting 'mail' from OS X


  • Subject: scripting 'mail' from OS X
  • From: email@hidden (Gerd)
  • Date: Sun, 17 Mar 2002 21:09:23 +0100

Hallo,

i am trying for example to delete messages in a folder (mailbox).
In Claris Emailer following worked fine:

tell application "Claris Emailer"
activate
open folder "backmails"
open first message of folder "backmails"
get content of first message of folder "backmails"
set y to result
delete first message of folder "backmails"
close front window
end tell

But in 'mail' i did not find out how it works. I allways get error messages, for example:

mailbox 'backmail' does not understand the open message
or something like
scripterror no.3

Are there anywhere samplescripts how to work with 'mail' ?

Thanks for your help

Gerd
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: scripting 'mail' from OS X
      • From: cricket <email@hidden>
  • Prev by Date: theSIMS -- Applescript copy paste from Explorer
  • Next by Date: Re: Booting from 9 into X
  • Previous by thread: Stoney Cook
  • Next by thread: Re: scripting 'mail' from OS X
  • Index(es):
    • Date
    • Thread