• 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
Mail.app script -- please test
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Mail.app script -- please test


  • Subject: Mail.app script -- please test
  • From: John Delacour <email@hidden>
  • Date: Sat, 9 Aug 2003 23:52:47 +0100

In my experience is is impossible to set the properties of a message
viewer at the time it is created (make...with properties {})

I thought it was also impossible to set them later, and you'll
probably find that too if you run the script below as it is.

But I find that if I uncomment _either_ of the dashed lines, it is possible.

Can someone confirm that this works with the released version of Mail?




tell app "Mail"
set _mailboxes to {drafts mailbox}
close the window of every message viewer
set _viewer to make message viewer
(******)
-- id of _viewer -- or ANY property
-- delay 1
(******)
set selected mailboxes of _viewer to _mailboxes
end


JD






.
_______________________________________________
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: David Durkee <email@hidden>
    • Re: Mail.app script -- please test
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: Re: Eudora
  • Next by Date: Re: Mail.app script -- please test
  • Previous by thread: Re: Eudora
  • Next by thread: Re: Mail.app script -- please test
  • Index(es):
    • Date
    • Thread