Script to Auto Create Packages in Shipping Data entry

Hi all,

it's been a while since I've been here and even longer since I've done any scripts...  

I need to write a script that will auto-Generate shipping packages based on business rules.  does anyone have a simple script that they are willing to share to help me get started?  Running version 4.5 update 7

any help is appreciated!

thanks, 

-Joe