Jump to content

How to write log output to debugger with external AS


Recommended Posts

That was my expectation as well but nothing is showing up in Alfred Debugger Console. 

 

Let me be more specific: 

I am using following AS in a script filter:  

run script "my.scpt" with parameters "{query}"

my.scpt contains a log output: 

log "Hello world"

When i run the script filter "Hello world" is not showing up in Script Debugger Console. 

 

Link to comment

my.scpt in my example returns script filter output and in between I am using log to output eg. a path. Means I cannot combine log from my.scpt with script filter output. Is there any other way to get log output into Alfred Debugger Console or maybe console.log?

Link to comment
1 minute ago, Acidham said:

Is there any other way to get log output into Alfred Debugger Console or maybe console.log?

 

Not in native AppleScript, I believe.

 

I think you'll either have to use something like NSTask or use a different language that doesn't fiddle with subprocesses' STDERR.

Link to comment
  • 4 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...