Article View: adobe.scripting.indesign
Article #18533dynamic filenames?
From: Jeff Harrison
Date: Thu, 20 Mar 2003 15:03
Date: Thu, 20 Mar 2003 15:03
17 lines
1679 bytes
1679 bytes
Question from a newcomer, both to InDesign and to scripting: I have a 16-page signature template that gets used for all our titles. I am trying to write a script that will get the page count and issue code (such as "AB1234") from the user and then: a. open the template b. paginate it 1-16 c. save it as "AB1234_001_016", adding extra zeros as needed to get consistent three-digit page numbers. d. repeat for pages 17-32, 33-48, etc. I have succeeded in telling ID to open the template and save it to a particular path and file, and it cycles through it the correct number of times. Of course, since the filename doesn't change, it just overwrites the same file again and again. So, a few challenges here, but the one I'm trying to address now is whether it's possible to concatenate a few strings with the values of some integer variables and use that as a filename. Once my script produces 16 different files I can worry about getting the page numbers right. (I'm using AppleScript.) Thanks, Jeff
Technical Details
Message-ID:
<1de8613a.-1@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebXShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,af08d544cfab314e,start X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-03-20 07:08:15 PST From: "Jeff Harrison" <jeff.harrison@homestore.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: dynamic filenames? Message-ID: <1de8613a.-1@WebX.la2eafNXanI> Date: Thu, 20 Mar 2003 07:03:20 -0800 Lines: 26 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit