• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Strange InDesign script misbehavior
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strange InDesign script misbehavior


  • Subject: Re: Strange InDesign script misbehavior
  • From: Roy McCoy <email@hidden>
  • Date: Tue, 23 Jun 2009 01:31:08 +0200

Thanks, Rick. I'll be looking forward to looking through the new version, especially if it contains a few more explanatory comments hint hint.

Roy


On Jun 23, 2009, at 1:25 AM, Rick Gordon wrote:

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
References: 
 >Strange InDesign script misbehavior (From: Roy McCoy <email@hidden>)
 >Re: Strange InDesign script misbehavior (From: Skeeve <email@hidden>)
 >Re: Strange InDesign script misbehavior (From: Roy McCoy <email@hidden>)
 >Re: Strange InDesign script misbehavior (From: Håvard Graudo <email@hidden>)
 >Re: Strange InDesign script misbehavior (From: Rick Gordon <email@hidden>)

  • Prev by Date: Re: Strange InDesign script misbehavior
  • Next by Date: Re: iTunes/Converting/Batch
  • Previous by thread: Re: Strange InDesign script misbehavior
  • Next by thread: Re: Strange InDesign script misbehavior
  • Index(es):
    • Date
    • Thread