> Well, trouble in paradise. Neither script works in Preference windows.
> I tried to paste a term into the AutoCorrect panel and the scripts
> just won't work. Instead, they keep pasting into the (now inactive)
> document window. "Paste from Scrapbook" (Command-Shift-V) works, for
> some reason.
>
Interesting, but I suspect an inherent limitation of AppleScript.
But, why would you need a Paste *Unformatted* into the AutoCorrect
window? Your problem here sounds to be that you will have to learn to
use at least two different commands for pasting, so assigning cmd-V to
the script may not work for you.
> However, neither script will do smart pasting, i.e. add spaces as
> needed. Smart pasting prevents words from bunching together
> ("takentogether", for example) and will correctly add a space to
> produce "taken together".
>
Smart pasting should only affect the space right before and right after
the paste--which, honestly, you ought to be able to handle yourself. Are
you seeing something different? That is, if you copy "takentogether",
you will still get "takentogether". If you reliably never enter the
space after "taken" before pasting "together", I suppose you could
hard-code it in. I doubt there's any way to force the script to invoke
Word's smart cut and paste, although a better AppleScripter than me
might be able to finesse something that checks for an existing space and
changes the script's action depending on it.
> MacBU, please make this a
> preference ASAP.
>
You aren't talking to MacBU here, as you know. But you should be sure
to explain to them the reasons why the script workaround does not meet
your needs, as I suspect issues without a feasible workaround move up
the priority list.
etcstgo@gmail.com - 22 May 2008 02:28 GMT
On May 21, 8:59 pm, Daiya Mitchell <daiyaNOS...@mvps.org.INVALID>
wrote:
> But, why would you need a Paste *Unformatted* into the AutoCorrect window?
I don't, of course. It's simply a matter of having assigned Command-V
to the script and expecting it to, well, paste stuff.
> Smart pasting should only affect the space right before and right after
> the paste--which, honestly, you ought to be able to handle yourself.
Since AppleScripts are advertised as the replacement for macro
support, I guess I was expecting the script to work the same way as
the macro I use in Word 2004. No such luck.
> Are you seeing something different? That is, if you copy "takentogether",
> you will still get "takentogether".
Obviously. What I meant is that if I paste the word "together" right
after "taken" without a space, said space gets added by smart pasting.
> > MacBU, please make this a
> > preference ASAP.
>
> You aren't talking to MacBU here, as you know.
Rhetorical lament only. By now I have the MacBU feedback page
bookmarked.
> But you should be sure to explain to them the reasons why the script workaround does not meet
> your needs, as I suspect issues without a feasible workaround move up the priority list.
Interesting take. I'll use it.
Daiya Mitchell - 22 May 2008 03:22 GMT
> Since AppleScripts are advertised as the replacement for macro
> support, I guess I was expecting the script to work the same way as
> the macro I use in Word 2004. No such luck.
>
Marketing spin.... No such luck. Macros are internal, scripts are
external. A number of issues arise from that.
>> But you should be sure to explain to them the reasons why the script workaround does not meet
>> your needs, as I suspect issues without a feasible workaround move up the priority list.
>>
>
> Interesting take. I'll use it.
>
well--in this particular case, I doubt anything will make a difference,
since VBA is coming back. But a developer talks about triaging bugs
here, and workarounds do make a difference, so it's a good idea to give
them the data that the workaround is not sufficient.
http://www.schwieb.com/blog/2008/05/13/mac-office-2008-sp1/