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: Joseph Weaks <email@hidden>
- Date: Sun, 12 Dec 2004 00:33:35 -0600
On Dec 10, 2004, at 2:11 PM, Christopher Nebel wrote:
On Dec 9, 2004, at 11:57 AM, Joseph Weaks wrote:
I have a script that places text onto the clipboard. The goal is that
the user can then paste that text into any app they choose,...
Try reversing the "activate" and the "set the clipboard". (Also,
moving the "set" outside of the "tell" might help. Probably doesn't
matter, though.) Applications that use their own clipboard storage
typically update it on activate/deactivate.
Aha!!!! I've found the problem. Word won't receive a programmatically
set clipboard of class Unicode Text. But I can't simply coerce to class
String, because my application is using multilingual unicode text.
This is bizarre because Word 2004 copies to the clipboard as Unicode
Text. To see the problem, try this:
1. Copy some text from Word
2. Go to Smile or somewhere and run:
set xxx to the clipboard
class of xxx
-- Unicode Text -- proving that Word is using Unicode text
set the clipboard to xxx
3. Bring Word to the front and see that the paste options are dimmed
(presumably because it doesn't recognize the class on the clipboard.
Surely this is a bug, or at least "half a bug" (see previous thread),
on Microsoft's part?
Solutions? Word-Applescript-guru Paul Berkowitz, are you aware of this
issue?
Thanks,
Joe Weaks
_______________________________________________
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