Re: Mail.app script -- please test
Re: Mail.app script -- please test
- Subject: Re: Mail.app script -- please test
- From: John Delacour <email@hidden>
- Date: Sun, 10 Aug 2003 01:49:01 +0100
At 5:15 pm -0700 9/8/03, Michelle Steiner wrote:
Can someone confirm that this works with the released version of Mail?
It works on my machine (10.2.6) exactly as written, without anything
being uncommented.
In fact, if I delete all the commented lines (including the
bracketed ones), it still runs.
Interesting. Can you just confirm that the drafts mailbox is
selected in the new viewer and that that is the title of the window.
Then please run these two scripts, which seem to me to be identical
in effect, but which give consistently different results OMM.
(* 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"}
(* Does NOT set the property *)
tell application "Mail"
activate
close the window of every message viewer
set _mailboxes to mailboxes
repeat with i in _mailboxes
set ls to i as list
set _viewer to make message viewer
set selected mailboxes of _viewer to ls
end repeat
return ls
end tell
--> {mailbox "Deleted Messages" of application "Mail"}
_______________________________________________
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.