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 post

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 post
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 post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...