MACSCRPT Archives

February 2006

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Bill Steele <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Wed, 15 Feb 2006 17:09:37 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (22 lines)
I have a script that massages some text, then puts it into a number 
of different files with various headers and footers.

Simplfied example:

set page1 to theName & retutrn & theAddress & theText & page1Footer

set page 2 to otherName & myEmail & theText & page2Footer

So most of these work fine, but one out of the whole script creates a 
file apparently written in Unicode.  Scrolling through it with an 
arrow key requires two jumps per character, pasting into Word 
produces organized gibberish, and pasting onto a web page results in 
only the first character appearing.

What is it about that one page...?  Or more to the point, when does 
Applescript automatically turn text into Unicode?
-- 

Bill Steele
[log in to unmask]

ATOM RSS1 RSS2