• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: set the clipboard not available in some apps (like Word)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Reading a pdf text file
  • Next by Date: Re: Reading a pdf text file
  • Previous by thread: Safari instability under OSX.3.7
  • Next by thread: MD5 - DES
  • Index(es):
    • Date
    • Thread