• 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
Re: Mail.app scripting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mail.app scripting


  • Subject: Re: Mail.app scripting
  • From: Christian Bøtker Høj <email@hidden>
  • Date: Thu, 12 Jun 2003 13:50:48 +0200

On torsdag, jun 12, 2003, at 07:00 Europe/Copenhagen, Jeffrey H. Dean
wrote:

> Hello,
>
> I want to learn how to mark a message or selected messages in mail.app.
>
> I want to be able to mark the messages as flagged, replied to, unread,
> read etc. I wonder if someone can show me the proper scripting for
> this.
>
> Thank you,
> Jeff

This code snippet will mark all selected messages in the current viewer
as read. I guess you can figure out how to make that "unread" :-)
The AppleScript dictionary for Mail does not mention the "flagged",
"forwarded", and "replied to" marks which indicates that it is not
possible to change those from AS.

tell application "Mail"
tell message viewer 1
set listOfMessages to selected messages
repeat with curMsg in listOfMessages
set is read of curMsg to yes
end repeat
end tell
end tell

Regards,
Christian Bxtker Hxj

CasBaH Software
www.casbahsoft.com
_______________________________________________
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: Mail.app scripting
      • From: "Jeffrey H. Dean" <email@hidden>
    • Re: Mail.app scripting
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: Re: creating temp files??
  • Next by Date: Re: Delete FTP file
  • Previous by thread: Mail.app scripting
  • Next by thread: Re: Mail.app scripting
  • Index(es):
    • Date
    • Thread