• 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: Older Version of Mail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Older Version of Mail


  • Subject: Re: Older Version of Mail
  • From: Paul Berkowitz <email@hidden>
  • Date: Fri, 03 Feb 2006 09:47:42 -0800
  • Thread-topic: Older Version of Mail

It is very well known that Mail scripting in Jaguar was so buggy as to be
unusable. Just give it up, and upgrade to Panther or Tiger. Or use Outlook
Express in Classic - it's very scriptable. Just forget about scripting Mail
in Jaguar - it's a fool's mission.

--
Paul Berkowitz


> From: Steven Valenti <email@hidden>
> Date: Fri, 3 Feb 2006 09:07:44 -0500
> To: <email@hidden>
> Subject: Older Version of Mail
>
> I have spent a few more hours on this and still cannot make a message
> delete or move from a mailbox. I have two 10.2.9 machines and it fail
> on both. I must have some syntax wrong. Can anybody suggest anything
> please. I need to clean out all messages in this mailbox once a day.
> Thanks.
>
> move: Move object(s) to a new location.
> move  reference  -- the object for the command
> to  location reference  -- The new location for the object(s).
>
> delete: Delete an object.
> delete  reference  -- the object for the command
>
> Class message: An email message
> Plural form:
> messages
> Elements:
> recipient by name, by numeric index, before/after another element, as
> a range of elements, satisfying a test
> to recipient by name, by numeric index, before/after another element,
> as a range of elements, satisfying a test
> cc recipient by name, by numeric index, before/after another element,
> as a range of elements, satisfying a test
> bcc recipient by name, by numeric index, before/after another element,
> as a range of elements, satisfying a test
> Properties:
> <Inheritance>  item  [r/o]  -- All of the properties of the superclass.
> date sent  date  -- The date a message was received
> content  text  -- Contents of an email message
> source  Unicode text  [r/o]  -- Raw source of the message
> mailbox  mailbox  -- The mailbox in which this message is filed
> sender  Unicode text  -- The sender of the message
> message id  Unicode text  [r/o]  -- The unique message ID string
> message size  integer  -- The size (in bytes) of a message
> reply to  Unicode text  -- The address that replies should be sent to
> subject  Unicode text  -- Subject of email message
> is junk mail  boolean  -- Indicates whether the message has been
> marked junk or evaluated to be junk by the junk mail filter.
> is deleted  boolean  -- Indicates whether the message is deleted or not
> is read  boolean  -- Indicates whether the message is read or not
> headers  Unicode text  [r/o]  -- All the headers of the message
>
>
>
>
> I'm scripting an older version of Mail app 1.2.5 (v553) under OSX 10.2.8
>   I need to delete messages out of a specific mailbox. Things look right
> but I always get an error and can't delete items. I can grab the
> contents of messages in this mailbox so I know I have my spelling
> correct to refer to what I'm asking for. This works on another computer
> running Mail 1.3.9 (v619/619.2) under OSX 10.3.7 but I need to have it
> work under older versions. I'm I missing any syntax ?
>   Thanks,
>   Steven
>
>
> tell application "Mail"
> set Amessage to message 1 of mailbox "BackLog Queue PPD"
> delete Amessage
> end
>
> Event Log
> tell application "Mail"
>   get message 1 of mailbox "BackLog Queue PPD"
>   delete message 1 of mailbox "BackLog Queue PPD"
>   --> Mail got an error: NSInternalScriptError
>
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Applescript-users mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Older Version of Mail (From: Steven Valenti <email@hidden>)

  • Prev by Date: Re: Q: GraphicsConverter Paste At (format for position?)
  • Next by Date: Error reporting from loaded libraries
  • Previous by thread: Older Version of Mail
  • Next by thread: Re: Various Qs about Intel and AppleScript
  • Index(es):
    • Date
    • Thread