I’m using the Apple Script Editor that came with Mac System 7.5.5 and trying to run a simple program:
say "Starting to empty the trash."
tell application "Finder"
empty trash
end tell
say "Finished emptying the trash."
But when I click in the run button, I got this:
Say Error http://img502.imageshack.us/img502/7341/applescripterror.png
I got this code from the book AppleScript Language Guide from Apple, published in 1999.
I’m pretty sure the problem here is that the
saycommand is not supported by the version of Applescript that ships with MacOS 7.5.5. I’m not sure exactly which version of Applescript that is, but I found this page in the Wayback Machine that refers to Applescript 1.1.2 shipping with MacOS 8. The docs page that Michael linked to for thesaycommand is for Applescript 2.1, so I’m guessingsaydidn’t come into being until somewhere in the 8.x or possibly even 9.x era.