Re: Indesign CS asset problem
Re: Indesign CS asset problem
- Subject: Re: Indesign CS asset problem
- From: Shane Stanley <email@hidden>
- Date: Fri, 13 Feb 2004 20:48:05 +1100
On Feb 13, 2004, at 5:26 PM, Gvtz Verdieck wrote:
So this the function worked in ID 2.02:
on GroupItems()
tell application "InDesign CS"
tell active document
select every item of active document -- will not work in
ID CS
set mySelection to items of selection
I don't know that it did work in 2.0.2 -- it certainly doesn't match
what you wrote in your previous message, which was "select every page
item". Page items are not items.
"select every page item" will work when targeted at a document in 2.0.2
_and_ CS -- but only if all page items are on the same spread, and that
spread is the active spread. So it's not a good idea unless you use
something like "tell active spread of window 1" to target it.
But really, you don't need to select things at all. You can do the
grouping without it, by changing this:
if (count of mySelection) is greater than 1 then
set myGroup to make group with data mySelection
set label of myGroup to "CopyGroup"
to something like:
tell application "InDesign CS"
set allItems to page items of active spread of window 1
if (count of items of allItems) > 1 then
set myGroup to make group at document 1 with properties {group
items:allItems, label:"CopyGroup"}
end if
end tell
Last, this:
store myGroup using myLibrary
is the wrong way around. Oddly enough, it should be:
store myLibrary using myGroup
Thanks in advance for another hint.
--
Shane Stanley <email@hidden>
_______________________________________________
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.