Mail.app script -- please test
Mail.app script -- please test
- Subject: Mail.app script -- please test
- From: John Delacour <email@hidden>
- Date: Sat, 9 Aug 2003 23:52:47 +0100
In my experience is is impossible to set the properties of a message
viewer at the time it is created (make...with properties {})
I thought it was also impossible to set them later, and you'll
probably find that too if you run the script below as it is.
But I find that if I uncomment _either_ of the dashed lines, it is possible.
Can someone confirm that this works with the released version of Mail?
tell app "Mail"
set _mailboxes to {drafts mailbox}
close the window of every message viewer
set _viewer to make message viewer
(******)
-- id of _viewer -- or ANY property
-- delay 1
(******)
set selected mailboxes of _viewer to _mailboxes
end
JD
.
_______________________________________________
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.