Article View: adobe.scripting.indesign
Article #8500writing to file trouble
From: Robertas_Jakstaitis
Date: Sat, 07 Oct 2006 10:12
Date: Sat, 07 Oct 2006 10:12
19 lines
1171 bytes
1171 bytes
Hi,
i'm having a problem trying to write text to a plain-text file. the thing is that the script works fine if there are no 'weird' characters in the text (in my case, Lithuanian characters). any clues?
part of the script:
var myFldrName = myDoc.filePath;
var myTextName = myDoc.name.split(".indd").join("_.html");
var myFile = File(myFldrName + "/" + myTextName);
var fulltext = "";
...
myFile.open("w");
myFile.write(fulltext + "
");
myFile.close();
thanks for help in advance.
Robertas
Technical Details
Message-ID:
<3bc1e667.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeed.freenet.de!newsfeed.x-privat.org!spool.x-privat.org!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,b531da8789e9f060,start X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII-7-bit From: Robertas_Jakstaitis@adobeforums.com Newsgroups: adobe.scripting.indesign Subject: writing to file trouble Message-ID: <3bc1e667.-1@webcrossing.la2eafNXanI> Date: Sat, 7 Oct 2006 03:12:01 -0700 Lines: 20 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeed.freenet.de!newsfeed.x-privat.org!spool.x-privat.org!webcrossing