hpiwzqda Posted October 7, 2019 Posted October 7, 2019 Hi, How to get currently running processes (including/excluding background ones) within the workflow? I've noticed, when I type "hide" keyword inside Alfred it shows running processes instantly. I have no idea how it does that. I've tried using this command (from "Running" workflow), but it takes 2 seconds to get me the list: osascript -e 'tell application "System Events" to get the file of every process whose background only is false'
deanishe Posted October 7, 2019 Posted October 7, 2019 2 hours ago, aik099 said: I have no idea how it does that. This, probably: https://developer.apple.com/documentation/appkit/nsworkspace/1534059-runningapplications AppleScript is pretty much always slow because there’s a lot of overhead in talking to applications. A native Cocoa app, like Alfred, can just ask the framework it’s running in.
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