I improved a little your script. Here is the changed script and the bat file i created to use DiskCopy when needed. Hope you like it.

I don't use the controller mapping (That's why there are comments in some parts)...

* Applescript
set txtFile to ("This PC:E:Hyperspin:Roms:Macintosh:launcher_dsk.txt")
if (get eof file txtFile) is greater than 0 then
set appPath to alias (read file txtFile)
tell application "Disk Copy" to mount appPath
end if
set txtFile to ("This PC:E:Hyperspin:Roms:Macintosh:launcher_file.txt")
if (get eof file txtFile) is greater than 0 then
set appPath to (read file txtFile)
tell application "Finder"
open file appPath
end tell
end if

* launcher_dsk.bat
@echo off

Rem WRITE THE PATH TO THE LAUNCH DSK FILE
(echo|set /p= %1)>E:\Hyperspin\Roms\Macintosh\launcher_dsk.txt

Rem WRITE THE PATH TO THE LAUNCH FILE
(echo|set /p= %2)>E:\Hyperspin\Roms\Macintosh\launcher_file.txt

Rem START ANTIMICROX FOR CONTROLLER MAPPING
Rem START /B CMD /C CALL "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\AntiMicroX\AntiMicrox.lnk" --profile %3

Rem LAUNCH SHEEPSHAVER
cd E:\Hyperspin\Emulators\SheepShaver
start /W SheepShaver.exe

Rem KILL ANTIMICROX
REM taskkill /f /im antimicrox.exe

Rem EMPTY OUT THE LAUNCH TXT FILES AFTER
echo|set /p= > E:\Hyperspin\Roms\Macintosh\launcher_file.txt
echo|set /p= > E:\Hyperspin\Roms\Macintosh\launcher_dsk.txt
exit

** Crystal Quest.bat
start /min E:\Hyperspin\Roms\Macintosh\launcher_dsk.bat "HD1:Games:Crystal Quest:CrystalQuest.dsk" "Crystal Quest:Crystal Quest" "E:\antimicrox\munchies.gamecontroller.amgp"

Edit
Pub: 25 Feb 2024 00:22 UTC
Views: 105