• 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
problem with a mail.app script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

problem with a mail.app script


  • Subject: problem with a mail.app script
  • From: Kim Holburn <email@hidden>
  • Date: Sun, 11 Apr 2004 09:16:50 +1000

I am trying to write a mail.app rule script that opens a new window when I get mail moved to a mailbox.

I can open a new message viewer window with:

on perform mail action with messages theMessages for rule theRule
....
set theWindow to make new message viewer
tell the Window
set visible to true
end tell
activate

But I can't work out how to select the mailbox. I have tried lots of combinations like:

(tell theWindow)
set selected mailboxes to {move message of theRule}
set selected mailboxes to {(a reference to move message of theRule)}

set theWindow to make new message viewer with properties {selected mailboxes:{move message of theRule}}

------------------------
if should move message of theRule then
set mbox to move message of theRule
set theMboxName to name of mbox
end if
set selected mailboxes to {mbox}


None of these do anything. I get a new message viewer window but the script can never select a mailbox. Anyone have any hints?


--
Kim Holburn
IT Manager, Canberra Research Laboratory
National Information and Communication Technology Australia
Ph: +61 2 61258620 M: +61 0417820641
Email: email@hidden - PGP Public Key on request

Life is complex - It has real and imaginary parts.
Andrea Leistra (rec.arts.sf.written.Robert-jordan)
_______________________________________________
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: problem with a mail.app script
      • From: BJ Terry <email@hidden>
  • Prev by Date: Re: Just submitted this to BugReporter as feature request - comments...
  • Next by Date: Subscribing to Ical calendars accross network
  • Previous by thread: Re: Just submitted this to BugReporter as feature request - comments...
  • Next by thread: Re: problem with a mail.app script
  • Index(es):
    • Date
    • Thread