set dosbox to ((path to me) as string) & "Contents:Resources:DOSBox.app" set dbconfig to ((path to me) as string) & "Contents:Resources:dosbox.conf" set gamedir to ((path to me) as string) & "Contents:Resources:MDK" set hfsconf to POSIX path of dbconfig set hfsgamedir to POSIX path of gamedir do shell script "sed '225s|.*|mount C: " & hfsgamedir & "|'g " & hfsconf & ">" & hfsconf & "2" do shell script "rm " & hfsconf do shell script "mv " & hfsconf & "2 " & hfsconf run application dosbox ##ported by Bolle with the help of macchris!