• 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: scripting 'mail' from OS X
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: scripting 'mail' from OS X


  • Subject: Re: scripting 'mail' from OS X
  • From: Cornwall <email@hidden>
  • Date: Sun, 17 Mar 2002 23:03:26 -0800

On Sunday, March 17, 2002, at 09:57 PM, Gerd wrote:

Hallo cricket,

thanks for your help.

I tried your script as follows:

set c to 1

tell application "Mail"
set theMessage to message c of mailbox "backmails" of account "Personal Mailboxes"
set y to content of theMessage
set c to c + 1
end tell

Each time i run the script "mail" crashes and i get the message:
the program mail unexpectedly stopped .

After this mail starts again and shows the errormessage: Can't get content of themessage.

Do you have any ideas what i can do ?

<SNIP>

While I'm not Cricket, this sounds familiar (and I don't have my notes handy). Do you really *have* a message 1? If it was deleted without emptying the trash, it is sort of still there.

Try getting a list of "every message of mailbox "backmails" of account "Personal Mailboxes" whose deleted is false" and looping through it. I think that's how I got it going.

HTH
Corny
_______________________________________________
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: scripting 'mail' from OS X (From: email@hidden (Gerd))

  • Prev by Date: Re: scripting 'mail' from OS X
  • Next by Date: Re: Open files
  • Previous by thread: Re: scripting 'mail' from OS X
  • Next by thread: Re: scripting 'mail' from OS X
  • Index(es):
    • Date
    • Thread