Re: Reading MS Word via AS ->crash??
Re: Reading MS Word via AS ->crash??
- Subject: Re: Reading MS Word via AS ->crash??
- From: Charles Arthur <email@hidden>
- Date: Fri, 22 Jun 2001 10:10:21 +0100
On Thu, 21 Jun 2001 15:22:32 -0700, Paul Berkowitz <email@hidden> wrote:
>
Ms Word's applescript implementation is terrible, buggy and virtually always
>
leads to crashes like that.
Well, that's why I was trying to avoid it by using vanilla AS :-) I also
didn't want the time penalty involved in instructing MS Word to do
something; it would have been nice just to operate on the file in the
background.
>
Except that it has the magic command 'do Visual
>
Basic'.
Ah, my order of priorities goes: learn RegEx, learn PHP, learn Perl, poke
out eyes with hot needles, learn VBS. I might change it, but it's sort of
that timeframe.
Thanks for the other thoughts about where to find VBS if I reorder that
list, though.
Then Shane Stanley <email@hidden> wrote:
>
You're reading a file that is not text format as if it were, so you're
>
results are going to be unreliable -- you should at least script Word to
>
save the file as text only first.
>
>
My _guess_ is that the problem is being caused by ASCII 0 characters, which
>
were problematic with some versions of AppleScript.
Good point. I do recall this being mentioned somewhere (Bill Cheeseman?).
I'm not sure there's any easy way to investigate, but if I make any
progress I'll report back.
Charles
----------------------------
http://www.ukclimbing.com : 1000+ British crags, 350+ British climbing
walls - searchable by distance and anything else you care to think of -
with weather forecasts for every one, plus maps, articles, news and
features. Plus Britain's busiest climbing discussion boards. And there's
even a cool shop attached.