Before I begin, I should say that Script Editor shows the same behavior that I’m about to describe here, but I think I’m far more likely to see a fix (or some idea of how to fix it) by asking here.
I have an AppleScript application that runs a Wineskin wrapper of a Windows-based DOS emulator called vDos. That means that a program emulating DOS is running inside a program emulating Windows under OS X/macOS. I know that DOSBox can emulate DOS under OS X, but I have good reasons for using this alternative.
Anyway the AppleScript application is called vDosWP, the Wineskin wrapper is called vDos, and the “drive_c” folder in the Wineskin wrapper includes the directory /Program Files/vDosWP.
When I open the AppleScript wrapper in either SD or the Script Editor and make a change and then save, what sometimes (not always, but most of the time) happens is this:
A copy of the …/Program Fles/vDosWP folder gets created in the Contents folder of the AppleScript wrapper. This seems harmless, except that it adds 60+MB to the size of the application bundle, and I sometimes forget to remove the copy.
Is there anything I can do to prevent this from happening? The download is here:
You don’t need to run the program (and it won’t start anyway unless you have some WordPerfect for DOS files installed elsewhere on your disk). You can see the effect simply by opening it, adding a comment or two, and saving it.
Not an urgent question, but I hope it excites someone’s curiosity who knows a lot more about this than I do