• 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: Queuing a Eudora message...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Queuing a Eudora message...


  • Subject: Re: Queuing a Eudora message...
  • From: John Delacour <email@hidden>
  • Date: Thu, 19 Sep 2002 20:25:38 +0100

At 11:43 am -0600 19/9/02, David Crowe wrote:

I would like to write a script (activated via QuicKeys) to queue a
Eudora message at a particular time.

I need to get a reference to the topmost window, containing the
message, which appears to be window 1.

However, the window object does not apparently contain a reference to
a message (<message of window 1> seems just too easy, and apparently
is).

message 1

probably seems even easier, and definitely is -- with the difference that it also works. You have obviously been misled by the modern kids into thinking that AS syntax has to be long-winded. Here's the whole thing

tell app "Eudora" to queue message 1 for (current date) + 12000
JJJJJJJ

message "", message 0, message 1, and [the] first | front message

are all the same to Eudora.


Another approach is to use <message at end of mailbox "out">. There
are two problems with this. First of all, the next message to be sent
is not always at the end of the mailbox, particularly if you (like
me) commonly send messages at a future date, or don't sort your
mailbox by date. Secondly, although I've used the syntax:

set NewMsgRef to make new message at end of mailbox "Out"

in scripts before, the simple command:

get message at end of mailbox "Out"

gets a syntax error.

That's because 'end of' is an insertion location thing and not an extraction location thing. AppleScript is not English in spite of rumours to the contrary.

If you want the message that am or were being in an ultimate sort of location in the Out box without considering styled text, then say so:

tell app "Eudora" to open the last message in mailbox "Out"


If anyone has been able to get a reference for the Eudora message
currently being edited, I would appreciate knowing about it (and
maybe others too!).


If you need to store an absolute reference to a message -- a rare requirement - then you can use its id, which does not change:


tell application "Eudora"
activate
save window 1
set n to get the id of the message ""
close window 1
set mRef to a reference to message id n of mailbox 2
end tell
open mRef

-- JD
_______________________________________________
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: 
 >Queuing a Eudora message... (From: David Crowe <email@hidden>)

  • Prev by Date: Re: Tell print/close to the frontmost app
  • Next by Date: Re: EUREKA! [was: Re: Macintosh Scripting]
  • Previous by thread: Queuing a Eudora message...
  • Next by thread: Re: Queuing a Eudora message...
  • Index(es):
    • Date
    • Thread