Can anyone explain Word behavior???
Can anyone explain Word behavior???
- Subject: Can anyone explain Word behavior???
- From: Bill Planey <email@hidden>
- Date: Sun, 4 Mar 2001 16:28:16 -0600
As with all things Microsoft, I'm sure God knows the reasons for this,
but...
(and I am discussing Word 98 here)...
I have a script which copies tables and/or paragraphs from one Word
document to the next. It works just fine, EXCEPT when Word is running
in the background, in which case the clipboard is empty. If I have
Word in the foreground and pause the script at this point to check
the clipboard after it has done the copying step, the clipboard is
correct. I can manually paste it into the target document. What the
heck is this??? I already had to completely change the architecture
of a massive multi-program AppleScript just because I couldn't get
Word to stop spawning Word Work Files and choking the AppleScript
(so now I actually have Word close the file, Quit, reactivate and
reopen the file just because of this in a number of places)... and
now I have to sacrifice speed and make sure that Word is running in
front of all other applications just because of this other behavior.
This is just the tip of the iceberg, and I can safely project that,
given how many IT departments must build things around Mac and Windows
versions of MS Office applications, there must be $billions in wasted
developer time out there.
Anyway (done ranting), has anyone else encountered this weird clipboard
problem and actually found a way to make Word copy and paste correctly
when running in the background?
Do I need to do something like setting the copied item to a variable
and then invoking the variable in the paste step?
Many thanks,
Bill Planey