Re: Strange InDesign script misbehavior
Re: Strange InDesign script misbehavior
- Subject: Re: Strange InDesign script misbehavior
- From: Rick Gordon <email@hidden>
- Date: Tue, 23 Jun 2009 01:55:22 -0700
A little further checking shows the following:
1) A relaunch of Script Editor is required to process the removal or inclusion of the Page Control plug-in. (I would assume this must also be the case with other plug-ins that modify scripting capabilities of InDesign.)
2) When Page Control is installed (or Script Editor has not been relaunched since it was removed), accesses to page width or page height in the document or application scope don't work -- just the page-level accesses.
That being the case -- and I guess I'll confer with DTP Tools about this -- I guess I'd have to set up a try block to test for page-level attributes, and if it fails, get the attribute for document preferences.
I do think, though, that the plug-in shouldn't cause standard functionality to fail in the process of adding additional functionality.
Rick Gordon
------------------
On 6/22/09 at 4:25 PM -0700, Rick Gordon wrote in a message entitled
"Re: Strange InDesign script misbehavior":
>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 1:08 AM +0200, Roy McCoy wrote in a message entitled
>"Re: Strange InDesign script misbehavior":
>
>>So now the only mystery is why he can. Thanks, Shane.
>>
>>Roy McCoy
>>
>>
>>>On 23/6/09 8:45 AM, "Roy McCoy" <email@hidden> wrote:
>>>
>>>Anybody have any idea why the author of the script can but I can't?
>>>
>>>I can see why you can't: page width is a property of the document preference
>>>class:
>>>
>>>set vWidth to page width of document preferences vPage
--
___________________________________________________
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