🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #18535

Re: dynamic filenames?

#18535
From: Dave Saunders
Date: Thu, 20 Mar 2003 15:16
19 lines
1299 bytes
I'm not quite sure what you're asking. Does this point you in the right direction?

set theName to name of document
set theName to theName & (14 as string)

or

set theName to theName & (myPageNo as string)

Actually, the "as string" is probably not needed because the & operator instructs AppleScript to coerce the integer to a string.

Still, you will need to do that if you want to add leading zeros:

set myString to myPageNo as string
repeat until length of myString > 4
set myString to "0" & myString
end repeat

Dave
Technical Details
Message-ID: <1de8613a.0@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!38.144.126.76.MISMATCH!feed2.newsreader.com!newsreader.com!newsfeed.media.kyoto-u.ac.jp!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de8613a.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,af08d544cfab314e
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-03-20 07:39:03 PST
From: "Dave Saunders" <daves@pdsassoc.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!38.144.126.76.MISMATCH!feed2.newsreader.com!newsreader.com!newsfeed.media.kyoto-u.ac.jp!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: dynamic filenames?
Message-ID: <1de8613a.0@WebX.la2eafNXanI>
Date: Thu, 20 Mar 2003 07:16:26 -0800
References: <1de8613a.-1@WebX.la2eafNXanI>
Lines: 21
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit