• 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
exists mailbox
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

exists mailbox


  • Subject: exists mailbox
  • From: Luther Fuller <email@hidden>
  • Date: Thu, 22 Oct 2009 15:10:23 -0500

I wanted to do this in Mail ...

if exists (mailbox "xxx" of frontViewer) then
set name of mailbox "xxx" to "zzzz"
end if

Simple. But all I get is an error because Mail doesn't understand 'exists' despite 'exists' appearing in the dictionary.

So, I had to use ...

try
set selected mailboxes of frontViewer to {mailbox "xxx"}
set name of mailbox "xxx" to "zzzz"
end try

It works, but does anyone know why 'exists' does not work?

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: exists mailbox
      • From: Brian Christmas <email@hidden>
  • Prev by Date: Out of the office on Oct 23 2009
  • Next by Date: Re: 64 vs 32
  • Previous by thread: Out of the office on Oct 23 2009
  • Next by thread: Re: exists mailbox
  • Index(es):
    • Date
    • Thread