• 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: Indesign CS --> Adobe Indesign CS3
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Indesign CS --> Adobe Indesign CS3


  • Subject: Re: Indesign CS --> Adobe Indesign CS3
  • From: Wayne Melrose <email@hidden>
  • Date: Wed, 26 Sep 2007 13:52:05 +0200


On 26/09/2007, at 1:44 PM, Shane Stanley wrote:

On 26/9/07 6:21 PM, "Wayne Melrose" <email@hidden> wrote:

I'm guessing I'm overlooking a dictionary change?

There has been a change -- there is no such thing as a "master page item" in
CS3, although there is a new property of a page, called, confusingly,
"master page items", which returns a list of what were formerly called
master page items.


Buy it sounds like the grouping is causing your problems -- you can't
override only some elements of a group, and you may have a situation where
some elements belong to different pages than their parent group.


But I'd be curious to see the document in question...

--
Shane Stanley <email@hidden>
AppleScript Pro Florida, Feb 2008 <http://scriptingmatters.com/aspro>


Thanks for the reply Shane,

I found a few tips on the web, and went with using the script labels

Here's what I sorted as a solution.


on OverrideMasterPageItems(PageNumber, MasterPage)
tell application "Adobe InDesign CS3"
tell front document
-- check for either left or right side of the master
try
if (PageNumber) mod 2 is 0 then
set myMasterPage to page 1 of master spread MasterPage
set strLabel to "left"
else
set myMasterPage to page 2 of master spread MasterPage
set strLabel to "right"
end if
on error -- must be a single page master, default to page 1
set myMasterPage to page 1 of master spread MasterPage
set strLabel to ""
end try

-- be sure to set a label in your template
set lstPageItems to (page items of myMasterPage whose label is strLabel)

-- if the list is empty, then select every page item
if lstPageItems is {} then
set lstPageItems to (page items of myMasterPage)
end if
-- incase there is more than 1 grouped item, loop the lstPageItems list
repeat with pageItem in lstPageItems
override pageItem destination page page PageNumber
end repeat
end tell
end tell
end OverrideMasterPageItems


_______________________________________________
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 CS --> Adobe Indesign CS3
      • From: Shane Stanley <email@hidden>
References: 
 >Re: Indesign CS --> Adobe Indesign CS3 (From: Shane Stanley <email@hidden>)

  • Prev by Date: Setting Pages Insertion point (was Setting TextEdit…)
  • Next by Date: Re: Indesign CS --> Adobe Indesign CS3
  • Previous by thread: Re: Indesign CS --> Adobe Indesign CS3
  • Next by thread: Re: Indesign CS --> Adobe Indesign CS3
  • Index(es):
    • Date
    • Thread