🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #15050

Re: 2 Page Daily Calendar

#15050
From: Shane_Stanley
Date: Tue, 06 Jan 2004 05:12
22 lines
1579 bytes
Sure. Put the title frame on a master page, and with it selected, open 
the Script Label palette from the Window menu. Type in "Title" (no 
quotes) and hit the return key. That labels the frame. Now set your 
document to contain 366 pages, or as many as you plan.

Now paste the following script into a window in Script Editor (in your 
Applications folder) and click on Run:

set thedate to date "Wednesday, December 31, 2003 12:00:00 AM"
repeat with i from 1 to 3 --66
	set thedate to thedate + 1 * days
	set theDateString to date string of thedate
	tell application "InDesign 2.0.2"
		tell document 1
			set thebox to (master page item 1 of page i whose label is "Title")
			set contents of thebox to theDateString
		end tell
	end tell
end repeat

--
Shane Stanley <sstanley@myriad-com.com.au>
Technical Details
Message-ID: <F1F582AE-4006-11D8-B512-003065D61B90@myriad-com.com.au>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.arcor-online.net!newsfeed01.sul.t-online.de!t-online.de!webx
References: <2ccf35cb.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,e6b2c63e31d4ddf8
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2004-01-05 21:37:38 PST
From: Shane_Stanley@adobeforums.com
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.arcor-online.net!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: Re: 2 Page Daily Calendar
Message-ID: <F1F582AE-4006-11D8-B512-003065D61B90@myriad-com.com.au>
Date: Mon, 5 Jan 2004 21:12:38 -0800
References: <2ccf35cb.-1@webx.la2eafNXanI>
Lines: 23
X-Mailer: Apple Mail (2.609)
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit