Relative to "Macintosh OS 7.5.5 (emulation disk image)", I was thinking of making a new "Starter Disk" with some automated scripts which would help people who are new to the Macintosh Garden (such as a script to convert a "read-only compressed" NDIF disk image to just a "read-only" NDIF disk image (also making the resulting disk image self-mounting if possible) and stuff the resulting disk image). However, iI need some help with doing these automated tasks:
EDIT: I've got these problems fixed by myself
1. if exists folder
- Sometimes the scripts extract in paths such as "Starter Disk:Archive" being extracted to "Starter Disk:Archive :", and the scripts would only know that the archive was extracted to "Starter Disk:Archive :", but I don't know how to find the parent directory, so then I tried if exists folder "Starter Disk:Archive :"
, but that always shows a "false" condition even if the folder exists, and I also tried if exists folder "Starter Disk:Archive "
, but that also always show a "false" condition. Will anyone help me with this, or at least with finding the parent directory of a file or folder so I can use the normal syntax of if exists folder
(eg. if exists folder "Archive " of "Starter Disk:"
)
2. move (folder) to trash
- Again, if the extraction of an archive in a script was unsuccessful, the script should check if the folder the script meant to extract the archive to (eg. "Starter Disk:Archive ") exists, and if it does exist, then it would move that folder to Trash, but when I try something like move "Starter Disk:Archive :" to trash
or move "Starter Disk:Archive " to trash
, I get a "Finder got an error: Expected a reference" Execution Error message. What is that "reference" anyway and how do I convert a path to that "reference" Finder wants?
3. As for any script to open the DropStuff application, the script should check the version of the "Starter Disk:System Folder:Extensions:StuffIt Engine" file; if the version is 3.5.x, then the script should tell Finder "open file \"Starter Disk:DropStuff 3.5.2 Folder:DropStuff\"", and if the version is 5.5, then the script should tell Finder "open file \"Starter Disk:Aladdin DropStuff 5.5:DropStuff\"", but how do I check the version of a file in AppleScript? EDIT: Answered by MikeTomTom (#6)
and I've uploaded the first revision of the "Macintosh Garden's Starter Disk" here. This discussion should be closed and there should be a new forum topic discussing the new Starter Disk.
Edit: Replaced 'xxx 7' by 'Mac OS 7' - IIGS User