• 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
INDESIGN: Problem with Object Placement
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

INDESIGN: Problem with Object Placement


  • Subject: INDESIGN: Problem with Object Placement
  • From: Rick Gordon <email@hidden>
  • Date: Tue, 6 May 2008 17:46:11 -0700

Title: INDESIGN: Problem with Object Placement
I'm trying to put together a script that will create a temporary trim frame for printing. It prompts for a page range for printing, makes a temporary layer at the top of the layer stack, adds page-size rectangles on each page on that layer, prints, and deletes the layers. I'm having a problem where successive pages on a spread are having the rectangle offset by a page width to the right of their desired location, and I can't figure out what I'm doing wrong. It makes no difference whether I have stroke alignment to outside or inside alignment.

Any clues? Thanks in advance.

Rick Gordon

----

property pEdgeStrokeWeight : 1
property pEdgeStrokeColor : "Registration"
property pLabel : "__TempFrame__"

set vCount to 0
set vCancelString to "Cancel"
set vOKString to "OK"
set vPrompt to "List page range to print (ALL; 1-3,5-8; etc.):"
set vAllPages to "ALL"
set vDefaultAnswer to vAllPages

tell application "Adobe InDesign CS3"
    
tell active document
                set vDialogReply to display dialog vPrompt default answer vDefaultAnswer buttons {vCancelString, vOKString} default button vOKString
           
--MAKE NEW TEMP LAYER
                set vActiveLayer to active layer
               
set vTempPrintFrameLayer to make new layer with properties {name:vTempLayerName} at end
                set active layer to vTempPrintFrameLayer
               
--MAKE RECTANGLES ON PAGES
                repeat with i from 1 to vPageCount
                     
tell page i
                            
set vCount to vCount + 1
                               
make new rectangle at end with properties {stroke weight:pEdgeStrokeWeight, stroke color:pEdgeStrokeColor, stroke alignment:outside alignment, geometric bounds:bounds, text wrap type:none, label:pLabel & vCount}
                    
end tell
                end repeat
             
--DO PRINTING          
                set vOldPrintPreferences to print preferences
          
set vPageRange to text returned of vDialogReply
       
if vPageRange is vAllPages then
               
set page range of print preferences to all pages
               
else
                   
set page range of print preferences to text returned of vDialogReply
           
end if
         
print with print dialog
                set print preferences to vOldPrintPreferences
          
--DELETE TEMP LAYER & CONTENT
                delete vTempPrintFrameLayer
            
set active layer to vActiveLayer
       
end tell
end tell
 _______________________________________________
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: INDESIGN: Problem with Object Placement
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Moving newly created email
  • Next by Date: Re: INDESIGN: Problem with Object Placement
  • Previous by thread: Re: Adding a SENDER to a Group RULE in Apple Mail 2.1
  • Next by thread: Re: INDESIGN: Problem with Object Placement
  • Index(es):
    • Date
    • Thread