Ishaan Posted June 7 Share Posted June 7 I'm having an issue with my Apple Script Workflow. It seems like the workflow isn't launching the action in the selected window as intended, technically, it works, but the system file doesn't open as already selected. I have to click it with the trackpad before I can use my keyboard. Has anyone else experienced this or knows how to fix it? Link to comment
Ishaan Posted June 7 Author Share Posted June 7 1 minute ago, Ishaan said: I'm having an issue with my Apple Script Workflow. It seems like the workflow isn't launching the action in the selected window as intended, technically, it works, but the system file doesn't open as already selected. I have to click it with the trackpad before I can use my keyboard. Has anyone else experienced this or knows how to fix it? Here's the script i'm using ; on alfred_script(q) tell application "System Events" set listOfProcesses to (name of every process where background only is false) tell me to set selectedProcesses to choose from list listOfProcesses with multiple selections allowed end tell --The variable `selectedProcesses` will contain the list of selected items. repeat with processName in selectedProcesses do shell script "Killall " & quoted form of processName end repeat end alfred_script Link to comment
vitor Posted June 7 Share Posted June 7 Welcome @Ishaan, Start by not running it in a Run NSAppleScript, but in a Run Script like the message says. If it’s still the same, it will be down to something in AppleScript. What are you trying to accomplish? You may be able to do everything you want straight from Alfred, that box looks like it could be replaced with a List Filter. Link to comment
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