Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Group PageItems to Resize

New Here ,
Nov 14, 2008 Nov 14, 2008
Hi,

Is there any function to group all PageItems together so that the group object can be resize together?

What I would like to do is to
(1) select all the objects, like use a mouse to select all objects or press a "Crtl A" function, in the doc.
(2) click on the Group function in the Object File Menu or press a "Crtl G".
(3) do the resize to the group box.

Any hints / references. Please advises?

Thanks.

Henry
TOPICS
Scripting
823
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Community Expert ,
Nov 14, 2008 Nov 14, 2008
What scripting language? If AppleScript, then the scripting reference has several sample scripts that can be combined to do what you want.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 14, 2008 Nov 14, 2008
Hi Larry,

Thanks for you reply. The language is VB.

I've read the scripting reference and I've tried as below. Actually, I don't know how to put a particular item into a groupitem, please advise.

1. get all the pageitems list in the active doc.
pageitemlist = doc.PageItems
2. create a groupitem in the doc.
groupitem = doc.GroupItems.Add
3. get the typename of the pageitems list in the FOR LOOP, add the pageitems into the groupitem according to the item type
If pageitems.item(i).typename = "textframe" then
tf = pageitems.item(i)
tf = groupitem.Textframes.add <= ????
If pageitems.item(i).typename = ...
......

The result show out that all the items as in the original and not grouped together.

Thanks.

Henry
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 16, 2008 Nov 16, 2008
LATEST
Thanks Larry,

It is in the scripting reference doc.

Finally, I got what is wrong.
it is tf.move(groupitem,Illustrator.AiElementPlacement.aiPlaceAtEnd)
but not tf = groupitem.Textframes.add

Thanks.

Henry
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines