AcceptFromUnixApp - Aronnax9000/WatchmakerSuite GitHub Wiki
AcceptFromUnixApp is an [AppleScript]] which eases the copying of [[THINK Pascal]] source code files from the host computer into the correct folder structure on the emulated Macintosh's [Watchmaker (volume) volume.
Its source code is as follows:
tell application "Finder"
`activate`
`try`
`select folder "SecondEdition" of folder "BlindWatchmaker2ndEdition" of disk "Watchmaker"`
`on error`
`end try`
`try`
`delete selection`
`on error`
`end try`
`select folder "SecondEdition" of disk "Unix"`
`copy selection to folder "BlindWatchmaker2ndEdition" of disk "Watchmaker"`
`select folder "SecondEdition" of folder "BlindWatchmaker2ndEdition" of disk "Watchmaker"`
`open selection using application file "AlterAttributesForTP" of folder "BlindWatchmaker2ndEdition" of disk "Watchmaker"`
end tell