Error getting tags :
error 404Error getting tags :
error 404 pendingMessages | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
pendingMessages
Basics
Expander triangle
Type
Function
Syntax
the pendingMessages pendingMessages()
See Also
Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Returns a list of messages that have been scheduled with the sendcommand, but not yet delivered.
Examples

the pendingMessages
repeat with x = 1 to the number of lines of the pendingMessages

Additional Comments
Expander triangle

Use the pendingMessages function to check whether a message has been sent yet, or to perform some action on each pending message.

Value:

The pendingMessages function returns a list of messages, one per line. Each line consists of four items, separated by commas:

* the message ID

* the time the message is scheduled for

* the message name

* the long ID property of the object that the message will be sent to

Comments:

The message ID is the same as the one placed in the result function when it was scheduled with the send command.

The time the message is scheduled for is in the same format as the long seconds form of the seconds function.

Once scheduled, a message cannot be changed. You can cancel a pending message with the cancel command, and re-send it with the send command.

User Comments
Expander triangle
User thumbnail
jmellicker@gmail.com
StarStarStarStarStar
Apr 10, 2010
DESCRIPTION: This handler will cancel one specific pending message.


ON cancelThisMsg tMsg
put the pendingmessages into tPendingMsgs
IF tMsg is in tPendingMsgs THEN
repeat FOR each line x in tPendingMsgs
if tMsg is in x THEN cancel item 1 of x
end REPEAT
END IF
END cancelThisMsg