I'm not home right now, but I once wrote a batch script to help do exactly that as a context menu option for Windows systems, to boot an IMA/IMG image directly into DOSBox.
Once I get home, I'll see if I can locate those old scripts and try to share. Granted the difference between Windows and Mac, but the basic command lines for DOSBox should effective work the same.
No promises, but if I find those script files (holy crap I have way too many files!), I'll see about sharing them later, translation to the Mac environment will be up to you though.
I think my approach was to copy the default dosbox.conf file to a temporary file, then append the temporary file with what image to boot from under [AUTOEXEC], and just consider the temp dosbox.conf as exactly that, temporary, to be rewritten every time I used my custom DOSBox Boot Floppy context menu thing.
I dunno, I'll see later, when/if I get a good chance soon.
all 10 comments