Re: Adobe InDesign - Unlink From - how?
Re: Adobe InDesign - Unlink From - how?
- Subject: Re: Adobe InDesign - Unlink From - how?
- From: Peter Boctor <email@hidden>
- Date: Mon, 4 Aug 2003 14:19:14 -0700
To override a page item from the master you ask for it as a master
page item by index. As in:
master page item 1 of page 1
This makes it easy to override all page items on a page:
master page items of page 1
But to override a specific page item, you first have to find its
index. Here's a sample script that shows one way of doing this:
tell application "InDesign 2.0.2"
set theMaster to master spread 1 of document 1
set thePage to page 1 of document 1
tell me to override_page_item("test", theMaster, thePage)
end tell
on override_page_item(theLabel, theMaster, thePage)
tell application "InDesign 2.0.2"
set allMasters to page items of theMaster
set theMasterItem to page item theLabel of theMaster
set theMasterIndex to 0
repeat with i from 1 to count of allMasters
if label of item i of allMasters is theLabel then
set theMasterIndex to i
end if
end repeat
if theMasterIndex is not 0 then
return master page item theMasterIndex of thePage
end if
end tell
end override_page_item
We've heard some feedback on how confusing and difficult this is, so
we are considering changing the way you override page items in the
next version of InDesign.
-peter
InDesign scripting engineering
Adobe Systems, Inc.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.