I'm trying to get the text (from content) out of selected mail messages and paste that text into a textEdit document using applescript.
My attempt gets stuck between the two apps I think?
CODE
tell application "Mail"
get selected
set para1 to "content"
end tell
tell application "TextEdit"
activate
make new document
open document window
end tell
get selected
set para1 to "content"
end tell
tell application "TextEdit"
activate
make new document
open document window
end tell
My next plan was to set the new textEdit document text to para1, but this must transgress OO rules I haven't learned yet so does not compile / run.
Any help appreciated to move this on a stage or two please/
regards and tia
rik