• 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: Rick Gordon <email@hidden>
  • Date: Mon, 22 Jun 2009 23:27:16 -0700

Why does the first example work, but not the second?

EXAMPLE 1:
tell application "Adobe InDesign CS3"
	tell active document
		return properties of document preferences
	end tell
end tell

EXAMPLE 2:
tell application "Adobe InDesign CS3"
	tell active document
		return page width of document preferences
		--OR
		--return page height of document preferences
	end tell
end tell

A sampling of other attributes of document preferences besides those two seem to work. I thought perhaps it had to do with the presence of DTP Page Control as an active plug-in (since it allows those two attributes to be owned by page objects). But it's still erroring after removing Page Control. What's up?

FWIW, I tried using document 1 instead of active document, and also tried calling it from the scope of the application, but no luck.

Thanks,
Rick Gordon

------------------

On 6/23/09 at 8:56 AM +1000, Shane Stanley wrote in a message entitled
"Re: Strange InDesign script misbehavior":

>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

  • Follow-Ups:
    • Re: Strange InDesign script misbehavior
      • From: Shane Stanley <email@hidden>
References: 
 >Re: Strange InDesign script misbehavior (From: Shane Stanley <email@hidden>)

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