• 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
Creating small page size in InDesign CS3
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Creating small page size in InDesign CS3


  • Subject: Creating small page size in InDesign CS3
  • From: <email@hidden>
  • Date: Thu, 1 Nov 2007 18:17:06 -0600
  • Sensitivity: Normal

Can't seem to figure this out.  If I wanted to create a 1 inch by 1 inch document in InDesign, I can manually do it.  But for some reason I can't with AppleScript.  I'm sure I'm missing something but can't figure it out.  I've attached the code I've been testing with below...  if anyone has time, can you test it and see if it works for you, or if there's some other syntax I'm missing (I'm running this on an intel macbook pro with OS 10.4.10, InDesign CS3 v5.0)?

I'm not sure why, but my clients sometimes need to set the page size small, which can even be less than an inch at times.  Thanks for taking the time to look at my question!

Jay

--

set h to 1.5
set w to 0.05

set theMargin to "0.0in"
-------

tell application "Adobe InDesign CS3"
	set theDocument to make document
	tell theDocument
		tell document preferences
			set facing pages to false
			set pages per document to 3
		end tell
		tell pages's margin preferences
			set top to theMargin
			set left to theMargin
			set bottom to theMargin
			set right to theMargin
		end tell
		tell master spread 1's pages's margin preferences
			set top to theMargin
			set left to theMargin
			set bottom to theMargin
			set right to theMargin
		end tell
		tell document preferences
			set page width to w
			set page height to h
		end tell
	end tell
end tell

-->   "Data is out of range"
 _______________________________________________
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: Creating small page size in InDesign CS3
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: [Slightly OT] Scripting Bridge in Leopard
  • Next by Date: Re: Creating small page size in InDesign CS3
  • Previous by thread: RubyOSA in Leopard
  • Next by thread: Re: Creating small page size in InDesign CS3
  • Index(es):
    • Date
    • Thread