Can a script edit a .dmg file and insert a new binary & save new dmg?

Hi,
A bit rusty in scripting here so apologies early. I have a nice drag installer dmg file all laid out and pretty where the user drags the app to an alias of the Applications folder. it has a pretty background icon. Right now I make new ones manually. I want to take the nice dmg file, open it, insert the latest version of my application, then resave the dmg, and have all still aligned like it was. Can that be doner automatically with Applescripts?

Thanks in advance if anyone knows how.
Jim

Model: G5
AppleScript: Any
Browser: Safari 419.3
Operating System: Mac OS X (10.4)

Once a dmg is mounted, you should be able to treat it just like any other volume from the Finder, as long as the dmg is not read-only. I don’t see any options for putting a file icon in an exact place in the window of the dmg, if that is what you’re asking.

More than likely, you’d need to use System Events to mimic a drag and drop event.

Anyone have experience with this?