🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #9491

Re: AS--InDesign CS2--Text Frame

#9491
From: David Campitelli
Date: Tue, 22 Aug 2006 05:00
35 lines
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 {&quot;.indd&quot;}<BR>
set myFileList to {}<BR>
set myFolder to choose folder with prompt &quot;Select the folder containing the documents you want to convert&quot;<BR>
<BR>
tell application &quot;Finder&quot;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;set myFiles to every file of folder myFolder<BR>
end tell<BR>
repeat with myCounter from 1 to count of items in myFiles<BR>
&nbsp;&nbsp;&nbsp;&nbsp;set myFile to item myCounter of myFiles<BR>
&nbsp;&nbsp;&nbsp;&nbsp;set myFileType to file type of myFile<BR>
&nbsp;&nbsp;&nbsp;&nbsp;set theName to the name of myFile<BR>
&nbsp;&nbsp;&nbsp;&nbsp;set theSaveNameINDD to (myFolder as string) &amp; theName &amp; &quot;.indd&quot;<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;repeat with myExtension in myExtensions<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if theName ends with myExtension then<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tell application &quot;Adobe InDesign CS2&quot;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;open myFile <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;set kerning method of every paragraph of every story to &quot;Metrics&quot; <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;save active document <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;close active document <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;end tell<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;exit repeat<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;end if<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;end repeat<BR>
&nbsp;&nbsp;&nbsp;&nbsp;<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!webcrossing
References: <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