• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
OS X: Can't get the application's event dictionary
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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?


  • Prev by Date: Re: AS: to Keychain or NOT (opinions please)
  • Next by Date: Re: Recommendations for AppleScript Formatting
  • Previous by thread: Re: Passing a variable from a webpage to an AppleScript
  • Next by thread: any way to tell if a script has a 'return' statement?
  • Index(es):
    • Date
    • Thread