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

Re: Creating small page size in InDesign CS3


  • Subject: Re: Creating small page size in InDesign CS3
  • From: Tom Singer <email@hidden>
  • Date: Mon, 5 Nov 2007 21:49:27 -0800

Try setting the applications margin preferences before creating the document:

set h to 1.5
set w to 0.05

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

tell application "Adobe InDesign CS3"
--  set margin preferences for application
set properties of margin preferences to {top:0, left:0, bottom:0, right:0}

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


Tom




On Nov 1, 2007, at 6:23 PM, <email@hidden> wrote:


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"
S
 _______________________________________________
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

  • Prev by Date: Re: AppleScript release notes released
  • Next by Date: class of "foo" is in {string} evaluates to false
  • Previous by thread: Re: Creating small page size in InDesign CS3
  • Next by thread: Re: Creating small page size in InDesign CS3
  • Index(es):
    • Date
    • Thread