Re: Strange InDesign script misbehavior
Re: Strange InDesign script misbehavior
- Subject: Re: Strange InDesign script misbehavior
- From: Rick Gordon <email@hidden>
- Date: Mon, 22 Jun 2009 16:25:26 -0700
Bingo!
I have the answer, and it is (ta-da):
Page width and page height are attributes made available by the third-party plug-in Page Control by DTP Tools. That plug-in allows the mixing of different page sizes (among other things) within a single InDesign document.
I hadn't realized that I was accessing a non-standard attribute, and will rewrite the script in a way that that's not required. I actually had been planning on making the script more aware of of Page Control, because if I wanted it to function properly in a document with pages with multiple sizes (like every book cover I do these days), a few more tweaks would be required.
Rick Gordon
------------------
On 6/23/09 at 12:36 AM +0200, Roy McCoy wrote in a message entitled
"Re: Strange InDesign script misbehavior":
>Håvard Graudo wrote:
>
>>Catch the error of the try block within the tell InDesign block.
>>The try block is royally long and you ignore any errors, so you will not know what went wrong.
>
>This is again the script at http://files.getdropbox.com/u/1107821/Convert guides to lines.scpt. I'd already found out, through the placement of the beep, *where* the problem apparently was:
>
> set vWidth to page width of vPage
>
>After commenting out "try" and "end try", I can see *what* the problem apparently was:
>
> Adobe InDesign CS3 [same in CS4] got an error:
> Can't get page width of page id 198 of spread id 193
> of document "Untitled-1CS3.indd".
>
>I checked the class of vPage and it's page, so the problem with the
>script seems to be that I can't get page width of a page. Anybody have
>any idea why the author of the script can but I can't?
>
>
>Thanks,
>
>Roy McCoy
--
___________________________________________________
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___________________________________________________
WWW: http://www.shelterpub.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden