• 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 Override verb
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: InDesign Override verb


  • Subject: Re: InDesign Override verb
  • From: Stan Cleveland <email@hidden>
  • Date: Mon, 12 Mar 2007 14:16:14 -0700
  • Thread-topic: InDesign Override verb

Title: Re: InDesign Override verb
On 3/12/07 12:52 PM, David Wolfe wrote:

> So, I think I've complicated my script even more than I first  
> imagined. The Master Pages are based on other Master Pages in the  
> documents. Do I need to first move through each Master Page,  
> overriding and detaching items, then move on to the Document pages? I  
> still can't figure out how to phrase the command for override either.  
> I'm using the exact example from the dictionary and I get an error  
> every time.
>
> Here's where I'm working from:
>
> tell application "Adobe InDesign CS2"
> tell active document
> set myPage to page 1
> set myItems to every page item of page 1
> set theResult to override myItems destination page myPage
> end tell
> end tell
>
> If I can get this working, I'll need to put the whole thing in a  
> repeat loop.
>
> Thanks for any tips,
> David Wolfe

This will handle overriding master items and deleting items from a page:

set pageNum to 1
tell application "Adobe InDesign CS2"
    tell document 1
        override master page items of page pageNum destination page page pageNum
       delete page items of page pageNum
   end tell
end
tell

>> Hi,
>>
>> I'm having some trouble getting my head around how the "override"  
>> command works. I need to create a script that will override all  
>> master page items, then detach all items from Master, then delete  
>> all items from all Master pages. This is in preparation for a user  
>> dragging pages from one document to another, to prevent unwanted  
>> item duplication.
>>
>> Could anyone point me in the right direction for these three tasks?
>>
>> Thanks,
>> David Wolfe

And this will take care of deleting items from a master page:

tell application "Adobe InDesign CS2"
    tell document 1
        delete page items of master spread "A-Master"
    end tell
end
tell

Stan C.
 _______________________________________________
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

References: 
 >Fwd: InDesign Override verb (From: David Wolfe <email@hidden>)

  • Prev by Date: Fwd: InDesign Override verb
  • Next by Date: Re: InDesign Override verb
  • Previous by thread: Fwd: InDesign Override verb
  • Next by thread: Re: InDesign Override verb
  • Index(es):
    • Date
    • Thread