• 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 "message 1" (or 2 or 3 or 0)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Eudora "message 1" (or 2 or 3 or 0)


  • Subject: Re: Eudora "message 1" (or 2 or 3 or 0)
  • From: Christopher Stone <email@hidden>
  • Date: Tue, 27 Jan 2004 16:34:00 -0600

Hello David,

At 10:10 -0700 01/27/2004, David Crowe wrought:
The following snippet of AppleScript shows the currently selected (or
frontmost open) message's subject:

tell application "Eudora"
subject of message 1
end tell

The funny thing is, changing 1 to 2 or 0 or 3 or 4 ... gets exactly
the same result, even if multiple messages are selected or open.

Yep. You're running into referencing problems.

Message 1 of mailbox "In"
Message 2 of mailbox "In"

Even changing to "subject of every message" still returns the subject
of this one message.

Eudora doesn't support whose clauses unfortunately.

Is there a way to get the list of currently selected messages in
Eudora? There is a way to get the currently selected text, but I
can't see any overt way to get more than the first selected message.

You can, but its awkward and you lose the selection.

set mRef to {}
set mSub to {}
tell application "Eudora"
if (front message exists) and (name of front window does not contain ":") then
tell front message
repeat while it exists
set end of mRef to a reference to message id (get its id) of (get its mailbox)
move it to end of (get its mailbox)
end repeat
end tell
end if
repeat with i in mRef
set end of mSub to i's field "subject"
end repeat
mSub
end tell

Eudora's AppleScript implementation leaves much to be desired, but you can still do a lot with it.


Chris
_______________________________________________
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: 
 >Eudora "message 1" (or 2 or 3 or 0) (From: David Crowe <email@hidden>)

  • Prev by Date: Re: Why is this?
  • Next by Date: Re: Why is this?
  • Previous by thread: Eudora "message 1" (or 2 or 3 or 0)
  • Next by thread: Re: Eudora "message 1" (or 2 or 3 or 0)
  • Index(es):
    • Date
    • Thread