Re: Mail.app scripting
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.