• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Mail.app script -- please test
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Mail.app script -- please test
      • From: John W Baxter <email@hidden>
    • Re: Mail.app script -- please test
      • From: Michelle Steiner <email@hidden>
References: 
 >Re: Mail.app script -- please test (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Mail.app script -- please test
  • Next by Date: Re: Mail.app script -- please test
  • Previous by thread: Re: Mail.app script -- please test
  • Next by thread: Re: Mail.app script -- please test
  • Index(es):
    • Date
    • Thread