Skip to content

Instantly share code, notes, and snippets.

@luckman212
Created May 13, 2022 19:02
Show Gist options
  • Save luckman212/0c88709256beadd585f86f0eec0c7337 to your computer and use it in GitHub Desktop.
Save luckman212/0c88709256beadd585f86f0eec0c7337 to your computer and use it in GitHub Desktop.

JavaScript (JXA)

The following applies to Alfred 4+. For Alfred 3, see below.

The equivalents to the above in JXA JavaScript (again, the exportable variable is optional):

Application('com.runningwithcrayons.Alfred').setConfiguration('browser', {
  toValue: 'Safari',
  inWorkflow: 'net.deanishe.demo',
  exportable: true
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment