• 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: Deleting Mail message in different languages
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Deleting Mail message in different languages


  • Subject: Re: Deleting Mail message in different languages
  • From: Paul Berkowitz <email@hidden>
  • Date: Sat, 10 May 2003 09:13:37 -0700

On 5/10/03 8:56 AM, "Rob Jorgensen" <email@hidden> wrote:

> At 11:20 AM -0400 5/10/03, John Carlsen wrote:

>> In other email applications I either use the delete command or refer to the
>> trash by the generic property of the Application object. In Mail, this
>> appears to be the "trash mailbox", so I thought I would just use
>>
>> set theMessage's mailbox to the trash mailbox
>>
>> But this does not work either. Neither do the Application properties "in
>> mailbox", "out mailbox", etc. They compile OK, but do nothing at all.
>
> What happens if you try this?
>
> tell application "Mail"
> set trashName to name of trash mailbox
> set theMessage's mailbox to mailbox trashName
> end tell

Or this:

set theMessage's mailbox to (get the trash mailbox)


Frequently application properties need 'get' (or a previous setting to a
variable in a separate line) to resolve. The cuckoo Cocoa apps have their
own peculiarity in that you frequently don't get an error when you try to do
something that doesn't work - the script just sails on until the next
instance in which you try to call a variable you just thought you set. Worth
a try here, anyway.

--
Paul Berkowitz
_______________________________________________
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: Deleting Mail message in different languages (From: Rob Jorgensen <email@hidden>)

  • Prev by Date: Re: Deleting Mail message in different languages
  • Next by Date: Re: Deleting Mail message in different languages
  • Previous by thread: Re: Deleting Mail message in different languages
  • Next by thread: Re: Deleting Mail message in different languages
  • Index(es):
    • Date
    • Thread