OS X: Can't get the application's event dictionary
OS X: Can't get the application's event dictionary
- Subject: OS X: Can't get the application's event dictionary
- From: Irwin Poche <email@hidden>
- Date: Thu, 25 Oct 2001 00:14:10 -0500
A funny thing happened on the way to OS 10...
In OS9 I have a script that mounts a disk image with Disk Copy. I do this
to skip the time consuming verification step.
OS9's Disk Copy has a dictionary and the OSX one doesn't.
To have a single script that work under X and Classic, I put the older code
in a IF/THEN/ELSE block. It worked in Script Editor. I saved it as an
application in the Scripts Folder - again it worked.
if version = "10.1" then
--do something different
else
tell application "Disk Copy" to blah blah blah
end if
Later I opened it in the Script Editor and running it gave me a "Can't get
the application's event dictionary" error on the old 'tell app "Disk Copy"'
line.
Thinking I know a thing or two, I intentionally misspell the "Disk Copy"
name to force a browse where I choose the OS 9 Disk Copy program. The same
error is produced.
Later when I go back and try to edit it a second time, everything works.
I'm at a loss to explain this. Anyone know what's going on?