🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #14688

Re: AppleScript for InDesign CS (Mac OS)

#14688
From: Anne_Gordon
Date: Wed, 21 Jan 2004 14:09
24 lines
1961 bytes
Hi, Shane -- it's the "pest" again... I still get the same error message
"InDesign Error: Can't make rectangle"

I'm pasting the script below (hope it comes across as I typed it), cause I checked real carefully against what you wrote and it seems exactly the same! Maybe you could take another whack at this? Thanks an awful lot!

set theFolder to (choose folder with prompt "choose the folder containing the pic files:")
set the FolderPath to theFolder as Unicode text
set theFileNames to list folder theFolder without invisibles
set picCount to count of items of theFileNames
tell application "InDesign CS"
	make document with properties {document preferences:{pages per document:picCount, page height:"11 in", page width:"8.5 in", facing pages:false}}
	tell document 1
		repeat with i from 1 to picCount
			tell page i
				set newFrame to make rectangle with properties {geometric bounds:{".5 in", ".5 in.", "10.5 in", "8 in"}}
				set thePic to place (theFolderPath & (item i of theFileNames)) on newFrame
				fit newFrame given proportionally
				fit newFrame given center content
			end tell
		end repeat
	end tell
	beep
	display dialog "Finished."
end tell
Technical Details
Message-ID: <2ccf75f8.8@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!216.170.153.135.MISMATCH!tdsnet-transit!newspeer.tds.net!diablo.voicenet.com!proxad.net!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!webx
References: <2ccf75f8.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,d241fb75db1c5450
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2004-01-21 06:37:49 PST
From: Anne_Gordon@adobeforums.com
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!216.170.153.135.MISMATCH!tdsnet-transit!newspeer.tds.net!diablo.voicenet.com!proxad.net!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: Re: AppleScript for InDesign CS (Mac OS)
Message-ID: <2ccf75f8.8@webx.la2eafNXanI>
Date: Wed, 21 Jan 2004 06:09:51 -0800
References: <2ccf75f8.-1@webx.la2eafNXanI>
Lines: 33
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit