AppleScript "Application isn't running" (-600) Errors

Discuss Python scripts here.
mediabox
Posts: 50
Joined: Fri Apr 15, 2016 8:55 am
Location: chicago, il

Re: AppleScript "Application isn't running" (-600) Errors

Post by mediabox »

Take that back. I've rebooted a few times and not working again.... arrg.
User avatar
matt (support)
Site Admin
Posts: 21542
Joined: Mon Jan 27, 2003 1:17 pm
Location: Texas
Contact:

Re: AppleScript "Application isn't running" (-600) Errors

Post by matt (support) »

Did you try this line in the Terminal?

Code: Select all

sudo killall -9 appleeventsd
Note you'll have to enter your macOS admin password.
Image
mediabox
Posts: 50
Joined: Fri Apr 15, 2016 8:55 am
Location: chicago, il

Re: AppleScript "Application isn't running" (-600) Errors

Post by mediabox »

Thx Matt. Tried that and originally thought that worked. Unfortunately I was mistaken, after about 30x of trying to revive it I gave up and began restarting Indigo and the Mac. Seems restarting Indigo was sufficient.

I wound up going a little overboard and created an Linux init.d type start/stop/chkstart indigo bash script that can stop, start, restarts Indigo until it's happy. It includes a check option, chkstart, designed to detect if Indigo is running slow/stalled. I've seen this with one of my embedded applescripts that invoke the "say" utility. Script is super simple does this

Code: Select all

set say_string to value of variable "say_string"

say say_string

When in a stalled/slow state, the chkstart option which I have run every 2 minutes via launchctl, restart Indigo.

Seems there are a few work-arounds posted here. Mine is hands-off and keeps running in the background and restarts if anything doesn't look right. If anyone is interested I can post it.
User avatar
OjisanSeiuchi
Posts: 26
Joined: Fri May 06, 2016 4:40 am
Location: London, ON, CANADA
Contact:

Re: AppleScript "Application isn't running" (-600) Errors

Post by OjisanSeiuchi »

Whatever the cause of this bug, I've been fighting it too. In my case, nothing seems to work...killing the Apple Events Server, restarting the Indigo Server, rebooting the Mac, yelling expletives at the screen, etc.

Personally, I'm just migrating to Python scripting via the plugin host. Honestly, the object model is easier to deal with than via AppleScript. And dealing with the fragility of automating workarounds just seems like a "long run for a short slide."

For those who are wondering about future of AppleScript, it has been rumoured to be on the chopping block for a long while, but always seems to keep going usually with minimal development between releases. Yet, with the recent dismantling of the Apple automation team and Sal Saghoian's departure from Apple, the loss of AppleScript seems more imminent. Craig Federighi gave a pretty lukewarm response when questioned about the future of Mac automation and the Mac itself hasn't been getting the same love and attention since the iPhone cash cow came on the scene.
User avatar
McJohn
Posts: 680
Joined: Tue Dec 18, 2012 5:58 am
Location: The Netherlands
Contact:

Re: AppleScript "Application isn't running" (-600) Errors

Post by McJohn »

The strange thing is that all other external scripts are working perfectly (for example an Action with Indigo to do an external SecuritySpy script).
Only the external scripts which are doing an Indigo call are giving this error.
The solution is:
- working with internal scripts (but these gives a speed impact of the Indigo Server)
- Python scripts (this is a lot more difficult for standard Indigo users)
User avatar
jay (support)
Site Admin
Posts: 19232
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: AppleScript "Application isn't running" (-600) Errors

Post by jay (support) »

McJohn wrote:- Python scripts (this is a lot more difficult for standard Indigo users)
Um, that's not really our experience. Just say'n... :roll:
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
captcurrent
Posts: 440
Joined: Mon Nov 28, 2005 6:46 pm

Re: AppleScript "Application isn't running" (-600) Errors

Post by captcurrent »

having 10 plus years in apple script no having fun with python but I see your point about the mothership and automatio
User avatar
macpro
Posts: 818
Joined: Thu Dec 29, 2005 6:10 am
Location: Third byte on the right

Re: AppleScript "Application isn't running" (-600) Errors

Post by macpro »

I think I've found a workaround to start Indigo without the -600 errors.

I disabled starting the Indigo Server when starting the Indigo Client.
I disabled starting the Indigo Client when the user logs in to the Mac.

Whenever I restart the Mac, I wait a little while for all the login items to start.
Then I locatie the IndigoServer app in the Finder and start it via a double click.

Using this method on the last 3 reboots Indigo started without any scripts giving the -600 message.
ttscoff
Posts: 1
Joined: Sun Feb 11, 2018 1:02 pm

Re: AppleScript "Application isn't running" (-600) Errors

Post by ttscoff »

matt (support) wrote:Did you try this line in the Terminal?

Code: Select all

sudo killall -9 appleeventsd
Note you'll have to enter your macOS admin password.
For the record, this actually did the trick on my machine running Yosemite. At least for this boot cycle…

The -600 issue had gone away after a few restarts and I didn't experience it again until I updated to 7.1.x from 7.0. Then it started up again and no amount of server restarts would fix it. Forcing the cycle of appleeventsd seems to have done it, though.
User avatar
matt (support)
Site Admin
Posts: 21542
Joined: Mon Jan 27, 2003 1:17 pm
Location: Texas
Contact:

Re: AppleScript "Application isn't running" (-600) Errors

Post by matt (support) »

We've posted a new example that shows how to directly communicate with AppleScript to Indigo's python scripting engine. So there are two ways to communicate from an external AppleScript (or another app running an external AppleScript): RESTful Web API calls and direct Indigo python scripting engine calls. The former requires Indigo's Web server be enabled and the username/password embedded in the AppleScript, the latter doesn't but can be slower so isn't recommended if lots of calls have to be made back-to-back.
Image
User avatar
jay (support)
Site Admin
Posts: 19232
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: AppleScript "Application isn't running" (-600) Errors

Post by jay (support) »

We have created a consolidated wiki page that discusses various strategies for integrating AppleScript with Indigo and we highly recommend that you read through those options. That wiki page is in the developer section which means that anyone with write access to that section of the wiki can add things as well as new integration methods come up.
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
Post Reply

Return to “Python Scripting”