Re: InDesign tags, Unicode, etc.
Re: InDesign tags, Unicode, etc.
- Subject: Re: InDesign tags, Unicode, etc.
- From: Shane Stanley <email@hidden>
- Date: Wed, 14 Apr 2004 08:09:24 +1000
On Apr 14, 2004, at 5:53 AM, Hanaan Rosenthal wrote:
The problem is that the tags in the text are legible, but after every
character
there's another blank character with an ASCII value of 0 (zero).
That just means that whatever you're reading the file in isn't
recognising that it's Unicode, and is reading it as ASCII. It's not a
problem (you can use something like BBEdit and tell it to read the file
as UTF16).
If I save the text as Unicode Text from AppleScript, it gets imported
to
InDesign as is without being parsed.
Build your string as Unicode in AS, and just write it to your file.
Here's a snippet:
set someStuff to "<UNICODE-MAC>
<vsn:3.000000>
<pstyle:>This <ct:Italic>is<ct:> a test" as Unicode text
set fileref to (open for access file "Macintosh HD:Tagged copy.txt"
with write permission)
set eof fileref to 0
write someStuff to fileref
close access fileref
tell application "InDesign CS"
place "Macintosh HD:Tagged copy.txt" on page 1 of document 1
end tell
--
Shane Stanley <email@hidden>
_______________________________________________
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.