Jump to content

AppleScript for triggering System commands


Recommended Posts

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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...