You ever have the feeling you are tired of trying to get the object to fill the artboard by hand? Carlos from aiscripts.com has been kind enough to code up a very handy script for the public.
Get started by downloading the script from aiscripts.com
Open the zip file and grab the .jsx file to your illustrator Scripts folder (located inside the software installed directory, See examples).
C:\Program Files (x86)\Adobe\Adobe Illustrator CS4\Presets\en_US\Scripts
C:\Program Files\Adobe\Adobe Illustrator CC 2015\Presets\en_US\Scripts
Now open up illustrator with the file containg your object, Select the object and go to (se below)
File > Scripts > fitObjectToArtboard_v2
Keep in mind the input field doesn't really work, maybe in the future.
You may notice there are 2 copies of the object now, the script copies the selected object and re-paste it to the artboard fitting the screen.
Hop this handy script helps 🙂