Re: Microsoft Word do Visual Basic
Re: Microsoft Word do Visual Basic
- Subject: Re: Microsoft Word do Visual Basic
- From: Paul Berkowitz <email@hidden>
- Date: Tue, 01 Jul 2003 13:44:51 -0700
On 7/1/03 1:07 PM, "Simon Forster" <email@hidden> wrote:
>
>
On Tuesday, July 1, 2003, at 07:38 pm, Paul Berkowitz wrote:
>
>
> The VBA compiler seems to be reading your line endings as Unix-type
>
> linefeeds, known to VBA as the constant 'vbLf'. It wants CR carriage
>
> returns
>
> for line separators.
>
>
Ah. The missing bit of info.
>
>
> This looks like a new issue resulting from using the beta v2.0 Script
>
> Editor, which is Cocoa and must be using LF line-endings. Is that what
>
> you're using? (AppleScript itself is now agnostic about line endings:
>
> it
>
> will read CR, LF and CRLF all as paragraph terminators.)
>
>
You're spot on, I am using Script Editor 2 (so much better than 1 don't
>
you think?). Err, except when it causes you headaches like this.
>
>
I'll try running the script in Script Editor 1 tomorrow and see how it
>
goes.
>
>
Paul, many thanks for the pointers.
I hope it helps. The version of the script I sent (with FixLineEndings()
handler) should work in any script editor, including both SE 1.9 and SE 2.0.
--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.