MACSCRPT Archives

January 2006

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Mime-Version:
1.0
Sender:
Macintosh Scripting Systems <[log in to unmask]>
Subject:
From:
John Delacour <[log in to unmask]>
Date:
Tue, 17 Jan 2006 17:55:26 +0000
Content-Transfer-Encoding:
8bit
Content-Type:
text/plain; charset="macintosh" ; format="flowed"
Reply-To:
Macintosh Scripting Systems <[log in to unmask]>
Parts/Attachments:
text/plain (20 lines)
If I run this script from EudoraÕs Scripts menu (remember them??), it 
reliably copies the selected text ( Çclass eStxÈ ) or else selects 
all and reliably copies that ...


         set _selectall to (Çclass eStxÈ is "")
         tell application "System Events"
           if _selectall then keystroke "a" using {command down}
           keystroke "c" using {command down}
         end tell

... that is to say that if I paste after running the script, I get 
what I expect.  But if I add anything to perform any operation on the 
clipboard within the script, the clipboard does not contain the text 
just copied but whatever was previously there.

Is there any simple way round this?

JD

ATOM RSS1 RSS2