Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Applescript Error -10810

I have an Applescript that runs fine on my Macbook Retina but fails on a Mac Mini.

Both are running MacOS 10.9.2.

After peeling the onion a bit I'm able to reproduce the problem with a one-line Applescript:

tell application "MidiPipe" to activate

On the Mini that throws the error:

An error of type -10810 has occurred.

On the Macbook the MidiPipe application opens.

MidiPipe works normally on the Mini when started from the Finder or from Launchpad.

Google provides no insight into this error.

like image 790
Richard Milewski Avatar asked Apr 30 '14 21:04

Richard Milewski


People also ask

Does Apple still use AppleScript?

AppleScript is a scripting language created by Apple Inc. that facilitates automated control over scriptable Mac applications. First introduced in System 7, it is currently included in all versions of macOS as part of a package of system automation tools.

How do I exit AppleScript?

Description. This endless loop can also be exited by clicking the Cancel button on the dialog produced by display dialog, which terminates the execution of the script.

What is the Windows equivalent of AppleScript?

On Windows there is a WindowsScript, which is covered via WindowsScript functions in our MBS FileMaker Plugin. You can also use our Shell functions to run PowerShell scripts or command lines. But when you use shell, you can also run cmd.exe with bat files.


Video Answer


2 Answers

Well, I found this: http://www.thexlab.com/faqs/error-10810.html and this: http://osxdaily.com/2010/02/09/mac-error-10810/ and this: http://forums.adobe.com/thread/1389805 . At least one of these suggests a RAM problem.

But just to make sure you've tried every weird variation, have you tried the following:

1) using a full path:

tell application "Full:Path:To:MidiPipe.app" --(probably "YourHDName:Applications:MidiPipe.app"?

2) using an actual tell block:

tell application "MidiPipe"--or full path
 activate
end tell

3) using the Finder:

tell application "Finder" to open "Full:Path:To:MidiPipe.app"

4) using shell: do shell script "open /Applications/MidiPipe.app"

?

like image 83
CRGreen Avatar answered Oct 11 '22 06:10

CRGreen


After looking at the links in CRGreen's answer, it looks like this is likely being caused by the process table being full on the mini. This, in turn, prevents any new applications from opening. According to The X Lab:

Error -10810 is a Launch Services result code indicating an unknown error. One cause of this error is that the Mac® OS X process table is full. When the process table is full, new (not currently running) applications cannot be opened until another running application ends. Programming errors in third-party applications can fill-up the process table, leading to the -10810 error when opening an application.

I would start by restarting the mini to see if that clears the process table, allowing you to to start MidiPipe.

If that doesn't work, you should look at your Activity Monitor to see if there is a specific program filling up your process table.

like image 34
Darrick Herwehe Avatar answered Oct 11 '22 06:10

Darrick Herwehe