Copying text in Netscape 4.78
Copying text in Netscape 4.78
- Subject: Copying text in Netscape 4.78
- From: "Marc K. Myers" <email@hidden>
- Date: Mon, 12 Nov 2001 13:45:47 -0500
- Organization: [very little]
I'm trying to figure out a way to put the contents of a Messenger
message window into a variable or the clipboard. Neither of the
standard techniques seem to work.
If I tell Communicator
set theText to (text from first character to last character of window 1)
it accepts the command and apparently executes it without error. Later
in the script when I try to use "theText" it's empty. If I say
set theText to (text of window 1)
and then
log theText
I'm told that "theText" in not defined
If I say
copy (text from first character to last character of window 1)
it not only doesn't put anything on the clipboard, it doesn't even clear
what was there before.
What I want to do is so simple that I can't believe I'm having so much
trouble with it! Can anyone give me a hint?
tell application "Netscape Communicator"
activate
set theText to (text from first character to last character of
window 1)
end tell
tell application "Tex-Edit Plus"
set logFile to "Office:Tex-Edit Plus :Documents:Mail Log"
open alias logFile
activate
set the insertion point after the contents of window 1 to return &
return & theText
end tell
Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074
[11/12/01 1:44:11 PM]