chavlji Posted April 18, 2020 Posted April 18, 2020 (edited) I can't find any way to output anything from "Run NS Apple script" into debug console. My script looks like this: And when I run it, it doesn't output "Something" in the console. Console looks like this after I run the script: Here's how workflow looks like (very basic, just to test the console output): My Alfred version is 3.8.6 Osx Catalina 10.15.3 Thanks! Edited April 18, 2020 by chavlji
deanishe Posted April 18, 2020 Posted April 18, 2020 Don't use Run NSAppleScript (unless you have a good reason for doing so). Use a regular Run Script action with Language = /usr/bin/osascript (AS). It behaves much less weirdly.
chavlji Posted April 19, 2020 Author Posted April 19, 2020 (edited) Thank you! It works a bit better! But why is first log always printed out as an error? Run script code looks like this: Edited April 19, 2020 by chavlji
deanishe Posted April 19, 2020 Posted April 19, 2020 8 hours ago, chavlji said: But why is first log always printed out as an error? Because older versions of Alfred always prefixed log messages with ERROR. Also, all three messages are being printed as "errors": as far as Alfred is concerned they're all one single message with some newlines.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now