🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #16765

Re: Script to make a contact sheet?

#16765
From: Kelly Vaughn
Date: Thu, 31 Jul 2003 21:22
25 lines
2607 bytes
I made my template just like you said, labeled all my frames, and then saved the document. Then I copied and pasted your text into my script editor exactly as you typed it:

on open fileList -- contains list of pic files
	set frameCounter to 1 -- counter to use to work through frame names
	tell application "InDesign 2.0.2"
		tell document 1
			set theMaster to master spread 1 -- needed when adding pages later
			get master page items of page -1 -- overrides items from master
			-- loop through pics
			repeat with aPic in fileList
				-- get name of pic for caption
				set oldDelims to AppleScript's text item delimiters
				set AppleScript's text item delimiters to {":"}
				set picName to text item -1 of (aPic as text)
				set AppleScript's text item delimiters to oldDelims

try -- we try, in case there isn't a frame of the right label place aPic on rectangle (frameCounter as text) of page -1 fit result given proportionally set contents of text frame (frameCounter as text) of page -1 to picName on error -- we've run out of frames on the page set frameCounter to 1 -- reset counter make page at end with properties {applied master:theMaster} -- add page get master page items of page -1 -- override master items place aPic on rectangle (frameCounter as text) of page -1 fit result given proportionally set contents of text frame (frameCounter as text) of page -1 to picName end try set frameCounter to frameCounter + 1 -- increment counter end repeat end tell end tell end open



I clicked "Check Syntax" and got the following error message: "expected end of line but found script." Now what?

Cool explantion on "Bob's your Uncle." Before you all explained it, I thought it was some sore of techno-geek term. (I mean that affectionately, and I include myself in that grouping.)

So now do you guys want to tell me what "Stone the crows" means?
Technical Details
Message-ID: <1dea1a30.8@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1dea1a30.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,9a5ab23a310cf1ec
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-07-31 14:38:08 PST
From: "Kelly Vaughn" <knitgirl145@cs.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: Script to make a contact sheet?
Message-ID: <1dea1a30.8@WebX.la2eafNXanI>
Date: Thu, 31 Jul 2003 14:22:13 -0700
References: <1dea1a30.-1@WebX.la2eafNXanI>
Lines: 31
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit