problem with a mail.app script
problem with a mail.app script
- Subject: problem with a mail.app script
- From: Kim Holburn <email@hidden>
- Date: Sun, 11 Apr 2004 09:16:50 +1000
I am trying to write a mail.app rule script that opens a new window
when I get mail moved to a mailbox.
I can open a new message viewer window with:
on perform mail action with messages theMessages for rule theRule
....
set theWindow to make new message viewer
tell the Window
set visible to true
end tell
activate
But I can't work out how to select the mailbox. I have tried lots of
combinations like:
(tell theWindow)
set selected mailboxes to {move message of theRule}
set selected mailboxes to {(a reference to move message of theRule)}
set theWindow to make new message viewer with properties {selected
mailboxes:{move message of theRule}}
------------------------
if should move message of theRule then
set mbox to move message of theRule
set theMboxName to name of mbox
end if
set selected mailboxes to {mbox}
None of these do anything. I get a new message viewer window but the
script can never select a mailbox. Anyone have any hints?
--
Kim Holburn
IT Manager, Canberra Research Laboratory
National Information and Communication Technology Australia
Ph: +61 2 61258620 M: +61 0417820641
Email: email@hidden - PGP Public Key on request
Life is complex - It has real and imaginary parts.
Andrea Leistra (rec.arts.sf.written.Robert-jordan)
_______________________________________________
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.