Error message: "mdscript got an error: AppleEvent timed

I get a strange error that I can’t seem to find an explanation for anywhere. I’ve learned AppleScript over the last couple of weeks and I’m trying to do a relatively large project with it.

The message I get says, “mdscript got an error: AppleEvent timed out”. Can anyone suggest why this might occur?

The script calls another script that has been saved as an application. At the end of the second script it pops up.

thanks for any suggestions,

John

There’s a myriad of reasons why this may happen. The only thing anyone can tell you is that “the script timed out”, meaning it didn’t get a response to an action in a timely manner.

As to what timed out or why no one can tell without seeing the script itself.

Possible candidates are that it’s targetting a remote machine that can’t be reached on the network, or it’s performing a lengthy task that’s taking longer than AppleScript’s default timeout of 30 seconds.

Either way, seeing the original script would help.

Meanwhile, you could try wrapping all your scripts in something like:

with timeout of 3600 seconds – (provides an hour for any script activity)

–script

end timeout

The timeouts don’t add to the length of script execution.

Peter B.