Re: set the clipboard not available in some apps (like Word)
Re: set the clipboard not available in some apps (like Word)
- Subject: Re: set the clipboard not available in some apps (like Word)
- From: Gil Dawson <email@hidden>
- Date: Tue, 11 Jan 2005 15:24:59 -0800
Title: Re: set the clipboard not available in some apps
(like Wor
At 12:11 PM -0800 12/10/04, Christopher Nebel wrote:
>Applications that use their own clipboard storage typically
update it on activate/deactivate.
So it seems. It took me a while to find a workaround for
this snippet:
tell application "Acrobat
Reader 4.0" to activate
TypeText "a" with Command
-- (Acrobat) Select All (of this page)
TypeText "c" with Command
-- (Acrobat) Copy
set thisPageAsText to the
clipboard -- gets error -619
What works is any of these...
tell application "Acrobat
Reader 4.0" to activate
TypeText "a" with Command -- (Acrobat) Select All (of
this page)
TypeText "c" with Command
-- (Acrobat) Copy
set AppString to "Script
Editor 1.8.3"
tell application AppString to activate
tell application AppString to set clipdata to the
clipboard
... for AppString, "Acrobat Reader
4.0" and "BBEdit
4.5" both worked as well as...
tell me to activate -- i.e.,
Script Editor
set clipdata to the
clipboard
The activation step seems to be what's critical.
--Gil
_______________________________________________
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