Another version of the Applescript wrapper for Shoebill:
https://dl.dropboxusercontent.com/u/271 ... er-0.8.zip
If I've done this correctly, this SHOULD do the following:
If you enter in a terminal
Code: Select all
defaults write org.wpdos.auxrunner Backup0 once
your boot disk will be backed up the next time you run the wrapper app, but only that one time.
If you enter:
Code: Select all
defaults write org.wpdos.auxrunner Backup0 always
then your boot disk will be backed up every time. You may not want to do this if you experience disk corruption without an obvious crash.
If you enter:
Code: Select all
defaults write org.wpdos.auxrunner Backup0 false
you will turn off the "always backup" option. If you want to backup again, you must enter either the "Backup0 once" or "Backup0 always" form of the command.
Now, for restoring:
If you enter:
Code: Select all
defaults write org.wpdos.auxrunner Restore0 once
then no backup will occur (obviously), and the current backup will be restored.
If you enter:
Code: Select all
defaults write org.wpdos.auxrunner Restore0 always
then the runner will be in kiosk mode - it will always restart with the backup of your boot disk.
If you enter:
Code: Select all
defaults write org.wpdos.auxrunner Restore0 false
then it will stop restoring on startup. If you want to restore again, you will need to enter the "Restore0 once" or "Restore0 always" form of the command.
Now, this is mostly a proof of concept version: it does NOT test whether the backup file actually exists; it does not test whether the backup file has the same name as the file in the disk0 folder; it does not test whether a backup file with a different name is already in the backup folder before backing up. All that will come later if this works.
Also, it does not display a "Please wait" dialog while backing up or restoring. It just makes you wait.
So, if you try this, be really, really certain that you have a backup of your earlier version of the wrapper, because who knows what this may do if I wasn't thinking clearly.
And now a request to pruten:
When running the command-line version of Shoebill, Cmd-Q instantly shuts down the emulator instead of passing the command to whatever program may be running in AU/X. Is it possible to capture Cmd-Q and feed it to the emulator instead? (Sorry to keep asking for such things...)