I did not try this but you can try an action like this.
1. Select All
2. Copy and Paste in Front or Back
4. Effect>Convert to Shape>Rectangle
(with the setting as relative with extra space set as 0.
5. Object>Expand Appearance
6. Object>Convert to Artboard
7. Save As
Thanks for the steps, but when I follow your steps by hand it works, but they don't work in an action.
In the action list recorced I see
paste in front
and when I try and run this saved action, whne it get to the blank line I get a message box pop up saying 'To create Artboard, select non-rotated rectangles that are not clipping marsks.'
And since the action list doesn't list each action recorded I ca nt see what is happening.
I have attched my .aia file with my original action in and the new one suggested.
actions.zip 1.5 K
Try this after you expand the appearance ungroup I know it sounds weird but the option to ungroup is still available after you expand the appearance.
So that might be the problem.
I will be heading out to town in a short while so I cannot respond for a while
that made no diference, I get the same message appear as before.