• 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: Eudora AppleScript Question...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Eudora AppleScript Question...


  • Subject: Re: Eudora AppleScript Question...
  • From: Bill Briggs <email@hidden>
  • Date: Fri, 24 Oct 2003 17:00:53 -0300

At 10:48 AM -0600 24/10/03, David Crowe wrote:
I've tried this and it doesn't work for me because I want "message 1" (the frontmost open message) not the last message of mailbox "In".

Ah, I see. That's a bit more complicated. I was thinking you were going for message 1 of mailbox "In", and that's the oldest message at the top of the mailbox. There's no relationship in the indexing between the two, so that's definitely not going to work.




tell application "Eudora"
set mRef to a reference to last message of mailbox "In"
move mRef to end of mailbox "Trash"
open mRef
end tell

If I read my messages from newest to oldest this would work, but what I want is the oldest unread message, usually somewhere in the middle of the "In" mailbox.

Okay. I see now what you want to do.



If you substitute "message 1" for "last message of mailbox "In"" below, the "open mRef" fails because "message 1" no longer exists.

Yes, because the index numbers refer to two different entities.



So, unless someone comes up with something clever, I'm going to have to script a scan of the mailbox.

You may have to.

- web
_______________________________________________
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: Eudora AppleScript Question...
      • From: Doug McNutt <email@hidden>
References: 
 >Eudora AppleScript Question... (From: David Crowe <email@hidden>)
 >Re: Eudora AppleScript Question... (From: Bill Briggs <email@hidden>)
 >Re: Eudora AppleScript Question... (From: David Crowe <email@hidden>)

  • Prev by Date: Re: Odd & Even Pages
  • Next by Date: Re: Get IP
  • Previous by thread: Re: Eudora AppleScript Question...
  • Next by thread: Re: Eudora AppleScript Question...
  • Index(es):
    • Date
    • Thread