🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #19229

Re: import XML fonctionning ONLY on OS9????

#19229
From: Olav Kvern
Date: Sun, 12 Jan 2003 23:49
19 lines
1167 bytes
Hi--

This problem has come up many times in this forum and in other AppleScript forums--the trouble is that the file name in OS X is a Unicode string, and that the import XML method is expecting a standard string. This isn't only an InDesign problem--lots of other AppleScripters have run into it.

In any case, try:



set myFileName to (myFileName as string) 
import XML from myFileName 




And it should work.

Thanks,

Ole
Technical Details
Message-ID: <1de75879.0@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-09!supernews.com!newsfeed.gamma.ru!Gamma.RU!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de75879.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,483ac3648a4330a3
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-01-12 16:08:52 PST
From: "Olav Kvern" <okvern@adobe.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-09!supernews.com!newsfeed.gamma.ru!Gamma.RU!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: import XML fonctionning ONLY on OS9????
Message-ID: <1de75879.0@WebX.la2eafNXanI>
Date: Sun, 12 Jan 2003 15:49:27 -0800
References: <1de75879.-1@WebX.la2eafNXanI>
Lines: 19
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit