fort Posted August 21, 2014 Share Posted August 21, 2014 Is there any way to trigger Alfred "System" commands via AppleScript, e.g., ejectall, lock, and so on? I'd like something like the following, but without having to specify a workflow tell application "Alfred 2" to run trigger "foo" in workflow "test.workflow.com" or to be able to specify that it's one of the commands in the System list. Thanks. Link to comment
jdfwarrior Posted August 21, 2014 Share Posted August 21, 2014 Is there any way to trigger Alfred "System" commands via AppleScript, e.g., ejectall, lock, and so on? I'd like something like the following, but without having to specify a workflow tell application "Alfred 2" to run trigger "foo" in workflow "test.workflow.com" or to be able to specify that it's one of the commands in the System list. Thanks. You could just create multiple external triggers in a workflow that connect to each of the Action->System Commands items and then use AppleScript to access those triggers. Is that what you're asking for? Link to comment
fort Posted August 21, 2014 Author Share Posted August 21, 2014 That would work, but I was actually hoping for something simpler: a way to directly trigger Alfred's System keywords via AppleScript. I'm assuming there's no way to do that, so I'll create the workflow you suggest instead. Thanks! Link to comment
vitor Posted August 21, 2014 Share Posted August 21, 2014 a way to directly trigger Alfred's System keywords via AppleScript. Take a look at External triggers. Also see a similar thread. Link to comment
fort Posted August 23, 2014 Author Share Posted August 23, 2014 Take a look at External triggers. Also see a similar thread. AFAICT, those are relevant to triggering actions in workflows, not System commands directly. Anyway, I managed to get things working by setting up external triggers to system commands in a workflow like the one David suggsted, and then calling those via AppleScript. Thanks! 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