Re: Mail.app script -- please test
Re: Mail.app script -- please test
- Subject: Re: Mail.app script -- please test
- From: Michelle Steiner <email@hidden>
- Date: Sat, 9 Aug 2003 18:47:12 -0700
On Saturday, August 9, 2003, at 05:49 PM, John Delacour wrote:
Interesting. Can you just confirm that the drafts mailbox is selected
in the new viewer and that that is the title of the window.
Confirmed.
(* Sets the property OK *)
tell application "Mail"
activate
close the window of every message viewer
set _mailboxes to mailboxes
repeat with i in _mailboxes
set _viewer to make message viewer
set selected mailboxes of _viewer to i as list
end repeat
return i as list
end tell
--> {mailbox "Deleted Messages" of application "Mail"}
It opened as many viewer windows as there are folders in the
application--a hell of a lot of them, bringing the machine to a
screeching halt until the last window was opened.
--> {mailbox "Applescript/Applescript list" of application "Mail"}
I did not try the second script; I didn't want to tie up everything
again like the first one did.
--
Impeach The Son Of A Bush!
_______________________________________________
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.