Script created new group frame.

You will find a general example for the use of gOutFrame here.

Script created new group frame. If the group containing gFrame is changed, you have to set gOutFrame to the new group frame. Background of this is, that the caller (one of priint:comet InDesign® Plug-Ins) executes the script for every subframe of a group, and - of course - the caller must know about changes about the loop.

Un-group and re-group the group containing gFrame. int main () { ItemRef r_group = item::alloc(); ItemList r_list = itemlist::alloc();
if (frame::get_group (gFrame, r_group) == 0) { frame::ungroup (r_group, r_list); frame::group (r_list, gOutFrame); }
itemlist::release (r_list); item::release (r_group);
return 0; }

Since
Version 1.3.4, P/R 117
See Also
frame::ungroup
frame::group
Script environment

Alphabetic index HTML hierarchy of classes or Java