• 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: 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.

References: 
 >Re: Mail.app script -- please test (From: John Delacour <email@hidden>)

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