AppleScript question

I'm new to AppleScript, am going through the Visual QuickStart guide.

Every time I write a script or run any script that uses the

display command "whatever"

I get an error message that says

"whatever" doesn't understand the display dialog message

I'm taking these right out of the book... other commands work fine but this most basic of activities (a dialog box) is simply not working. Any ideas?

One possible issue - I'm on 8.6, could not find the Script Editor, installed AppleScript from an 8.5 disk. Is it something to do w/ libraries or mismatched files?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

I'm not sure what examples you are looking at, but I think what you want is:

display dialog "whatever"

You can also add buttons to the dialog if you like:

display dialog "Some text" {"OK"} default button 1

Without knowing what installs you did, I can't know if you have a library compatability problem, but you can get the latest Applescript SDK at:
68kAuthor Commented:
Whoops. I apologize.

My code was actually:

display dialog "whatever"

as you suggested.

I don't know why I typed "command" above.

Sorry for that.

So, in short, the simple "display dialog" command gives an error message for me.

If anyone has any idea why, let me know.

I'm going to try this on a different machine.
I've been able to reproduce your error by removing the "Standard Additions" file from the "Scripting Additions" folder of the system folder.  Consequently I suspect your installation is hosed.

I'd recommend reinstalling AppleScript using the URL in my original answer.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
68kAuthor Commented:
That folder and its files are intact, so I'm sure that isn't the issue specifically... but a clean reinstall of the OS now allows this script to run as I would have expected - no error, just a nice dialog box!

Your suspicion of a bad installation was correct. This must have been it.

Thanks for the link and general advice. It's most appreciated.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.