Why won't it paste?
Why won't it paste?
- Subject: Why won't it paste?
- From: Ken Brooks <email@hidden>
- Date: Mon, 15 Nov 2004 22:16:25 -0500
Title: Why won't it paste?
In the following script, the display dialog command shows
me that the clipboard was set as intended. However, no change
ever takes place in document 2 (and I've also tried designating that
window by name instead of by number). Am I seeing a bug in
Tex-Edit Plus? Or am I making a scripting error?
tell
application
"Tex-Edit Plus"
tell document 1
set numParagraphs to (count paragraphs)
set n to 1
repeat while n ¾ numParagraphs
if paragraph n contains "fun" then
select
paragraph
n
get paragraph n as text
set the
clipboard to result
display
dialog
(the
clipboard)
tell document 2 to paste
end
if
set n to n + 1
end
repeat
end tell
end
tell
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden