This content has been marked as final. Show 4 replies
On 16/4/08 10:09 PM, "Matt McGregor" <email@example.com> wrote:<br /><br />> Error generated is: "InDesign CS got an error: Can't get rectangle 1 of page<br />> 1." <br /><br />There's your answer: page 1 of what? You need to specify a document.<br /><br />-- <br />Shane Stanley <firstname.lastname@example.org>
Why don't you start with the ImageCatalog.applescript script from the CS3 sample scripts archive? I don't think it would be too hard to port it back to CS. Scripts can be found in a single Zip archive at:
Hi Shane,<br /><br />Thanks for your response. No joy my end. <br /><br />Change offending code to : <br /><br />place thisitem on rectangle 1 of page ppnum of document 1<br /><br />also tried:<br /><br />place thisitem on rectangle 1 of page ppnum of mydoc<br /><br />AppleScript Error:<br />Can't make <class crec> id 155 of <class page> id 128 of <class sprd? id 123 of document "Untitled-14" of application "InDesign CS" into the expected type.<br /><br />Maybe it's a CS thing or perhaps i'm not following you. <br /><br />Matt .
Thanks for the tip. Downloaded the sample scripts. Playing around with "Image Catalog" script. It pretty much does what I'm trying to do but at a higher level, inc user dialog box. This is a great script to give me hints on how to structure my own script.