The following AppleScript works properly if there is only one selected
message. If you select a range, only every other transaction gets updated
by HyperCard.
Any ideas?
tell application "PowerMail"
set theMessages to current messages
repeat with msg in theMessages
-- put your code here to do something on each message msg
set theText to the content of msg & time sent of msg
tell application "HyperCard"
activate
do script "go to stack NSB Invoice"
do script "go card 1"
set card field "Report" to theText
do script "click at the loc of cd button UpdateImport"
end tell
end repeat
end tell
George Henne
NS BASIC Corporation
http://www.nsbasic.com