Article View: adobe.scripting.indesign
Article #951Re: IDML is it useful???????????
From: Harbs
Date: Tue, 24 Feb 2009 10:12
Date: Tue, 24 Feb 2009 10:12
22 lines
1260 bytes
1260 bytes
Here's how to do it with scripting (my preferred method)...
function ExpandIDML(fromIDMLFile){//Expands an IDML file into folder format
if(! fromIDMLFile){return null}
var fullName = fromIDMLFile.fullName;
fullName = fullName.replace(/\.idml/,"");
var toFolder = new Folder( fullName );
app.unpackageUCF( fromIDMLFile, toFolder );
return toFolder;
}
function CreateIDML(fromFolder){//Produces an IDML package from the contents of a directory:
if(!fromFolder){return null}
var fullName = fromFolder.fullName;
var toIDMLFile = new File( fullName+".idml" );
app.packageUCF( fromFolder, toIDMLFile );
return toIDMLFile;
}
Technical Details
Message-ID:
<59b8067c.5@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newshub.sdsu.edu!webcrossingReferences:
<59b8067c.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,812b49d99f337a30 X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Harbs Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: IDML is it useful??????????? Message-ID: <59b8067c.5@webcrossing.la2eafNXanI> Date: Tue, 24 Feb 2009 02:12:38 -0800 References: <59b8067c.-1@webcrossing.la2eafNXanI> Lines: 22 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit