Re: set the clipboard not available in in some apps (like Word)
Re: set the clipboard not available in in some apps (like Word)
- Subject: Re: set the clipboard not available in in some apps (like Word)
- From: Joseph Weaks <email@hidden>
- Date: Sun, 12 Dec 2004 15:12:55 -0600
On Dec 12, 2004, at 2:34 PM, Paul Berkowitz wrote:
Aha!!!! I've found the problem....
But this is a completely different issue.
Right, it took me too long to realize the issue was that the class of
the text was Unicode text, and I should have stated I was using Word
2004.
...But it's really to do with
Word (or Office) having its own clipboard. They'll communicate one-way
but
not the other way. We've seen that setting the clipboard to a string
via
AppleScript somehow is transferable to Word's clipboard, so it pastes.
Unicode doesn't transfer from the system clipboard to Word's (I expect
it's
still using an old-fashioned method of getting styles).
I am not queazy about calling this a bug! At best, it's incomplete and
poor Unicode implementation.
...So you should determine if your source application is Word or
another app.
If any other app, use 'set the clipboard to the selection', or however
it
works in that app. If Word, 'tell application "Microsoft Word" to copy
object selection'.
This does not answer my situation, I don't think. My project is an ASS
app which places Unicode Text onto the clipboard for the user to then
do with as they please (presumably, paste it into whatever app they are
primarily working in). So, am I completely helpless around this Word
bug? Must I simply tell the users, "You can then use the clipboard in
any unicode aware app you wish, well, except for Word."?
I am willing to add a handler that treats Word as a special case, if I
know of some way to place a variable of class Unicode Text into the
selection of the front document in Word 2004. In other words, given
set theString to "Can you place me now" as Unicode Text
is there ANY way to get that into the selection of the front Word
document?
Shrug,
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