search Applescript to split partition hard drive


I’am beginer of apple script, I want to know if it’s possible with applescript to split automatically the hard-drive to 2 partitions.
I try this, but i don’t know how to do automaticaly to split a partition without klic a bouton SPLIT. I want applescript to do all the job that I do manually on each machine.
1 partition with 20GB
1 partition wiht 10GB

tell application “Disk Utility”
end tell

I don’t know how to continue with this script

Thank for your help :rolleyes: :rolleyes:

Apple’s Disk Utility isn’t scriptable. If I’m not mistaken, creating partitions will likely erase all of your data - is this what you want to happen?