Skip to main content
m1jackson
Inspiring
November 15, 2019
Answered

KBar can't "Run Script File..."

  • November 15, 2019
  • 1 reply
  • 4720 views

I use a fairly popular extention called KBar. One of it's uses is to launch menu items with a button interface.

 

However when I try to use it to "Run Script File..." it throws me an error "Affer Effects worning: Attempt was made to run a second script while another script was already running. Scond script was not run. Try launching AE with the -ro or -so flag to override this behaviour."

 

This was not a problem with ftToolbar another "depricated" toolbar extention.

 

When I contacted the vendor, they said that something changed at Adobe and that they've contacted you about it.

 

So I hope that you all might be able to fix what ever changed, or allow this one command to be possible with KBar and other tools.

 

Thanks.

This topic has been closed for replies.
Correct answer Justin Taylor-Hyper Brew

None that I'm aware of.

 

Again. That's not the problem I'm reporting. Just the inability to create a button that executes "File>Scripts>Run Script File..."


So all you want is to have a dialog box popup to select a script file and then run that script? You can easily rewrite that functionality like this:

var path = File.openDialog('Run a script', ['*.jsx'], false);
if(path){
    $.evalFile(path);
}

 

1 reply

Justin Taylor-Hyper Brew
Community Expert
Community Expert
January 3, 2020

It sounds like an issue with the script file. Is it a script you wrote of from somewhere else? Do you get the same error when you run it directly from AE without KBar?

m1jackson
m1jacksonAuthor
Inspiring
January 7, 2020

I think you misunderstand.

 

When I want to have a KBar button that executes "Run Script File..." from the File/Scripts menu I get the error.

 

The KBar guys say it's something in the Adobe code that they can not get around. I recall something about a script (KBar) running a second script (Whatever json file I'm using from Syntheyes).

 

Running json files works as expected from the menu, just running them from a Kbar button that Opens the Run script dialog fails.

Justin Taylor-Hyper Brew
Community Expert
Community Expert
January 7, 2020

Typically you can't just run a JSON file, as it's just data, no execution instructions like a JS file. I haven't used Kbar a ton, but I think it stores it's script prefs in JSON files, is that what you're referring to?

 

Are you saying that you're trying to use Kbar to launch the Syntheyes panel?