Article View: adobe.scripting.indesign
Article #9491Re: AS--InDesign CS2--Text Frame
From: David Campitelli
Date: Tue, 22 Aug 2006 05:00
Date: Tue, 22 Aug 2006 05:00
35 lines
3893 bytes
3893 bytes
<FONT FACE="Lucida Grande, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>Sorry about the delay in response to this but this also did not work <BR>
<BR>
<BR>
<BR>
This is my code which will open and save the files<BR>
<BR>
set myExtensions to {".indd"}<BR>
set myFileList to {}<BR>
set myFolder to choose folder with prompt "Select the folder containing the documents you want to convert"<BR>
<BR>
tell application "Finder"<BR>
set myFiles to every file of folder myFolder<BR>
end tell<BR>
repeat with myCounter from 1 to count of items in myFiles<BR>
set myFile to item myCounter of myFiles<BR>
set myFileType to file type of myFile<BR>
set theName to the name of myFile<BR>
set theSaveNameINDD to (myFolder as string) & theName & ".indd"<BR>
<BR>
<BR>
repeat with myExtension in myExtensions<BR>
if theName ends with myExtension then<BR>
<BR>
tell application "Adobe InDesign CS2"<BR>
open myFile <BR>
set kerning method of every paragraph of every story to "Metrics" <BR>
save active document <BR>
close active document <BR>
end tell<BR>
exit repeat<BR>
end if<BR>
end repeat<BR>
<BR>
end repeat<BR>
</FONT>
Technical Details
Message-ID:
<C10FDD69.11CB3%david_campitelli@mac.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!news.ecp.fr!news.stben.net!webcrossingReferences:
<3bc14e2f.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,e6071bd39f8d3dfb X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII-7-bit From: David Campitelli <david_campitelli@mac.com> Newsgroups: adobe.scripting.indesign Subject: Re: AS--InDesign CS2--Text Frame Message-ID: <C10FDD69.11CB3%david_campitelli@mac.com> Date: Mon, 21 Aug 2006 22:00:07 -0700 References: <3bc14e2f.-1@webcrossing.la2eafNXanI> Lines: 100 Received: from smtpout.mac.com [17.250.248.176] by adobeforums.com; Mon, 21 Aug 2006 22:00:18 -0700 Received: from mac.com (smtpin04-en2 [10.13.10.149]) by smtpout.mac.com (Xserve/8.12.11/smtpout06/MantshX 4.0) with ESMTP id k7M50ISo006070 for <adobe.scripting.indesign@adobeforums.com>; Mon, 21 Aug 2006 22:00:18 -0700 (PDT) Received: from [10.0.1.7] (68-70-67-105.vnnyca.adelphia.net [68.70.67.105]) (authenticated bits=0) by mac.com (Xserve/smtpin04/MantshX 4.0) with ESMTP id k7M50BtN024752 for <adobe.scripting.indesign@adobeforums.com>; Mon, 21 Aug 2006 22:00:15 -0700 (PDT) User-Agent: Microsoft-Entourage/11.2.5.060620 Thread-Topic: AS--InDesign CS2--Text Frame Thread-Index: AcbFp9YrFMH4PDGbEduiEwARJM+LXA== X-Brightmail-Tracker: AAAAAQAAA+k= X-Language-Identified: TRUE MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!news.ecp.fr!news.stben.net!webcrossing