Skip to content

Instantly share code, notes, and snippets.

@Boettner-eric
Last active January 8, 2026 21:43
Show Gist options
  • Select an option

  • Save Boettner-eric/77baef8e2797577cc101ebc15a994b6d to your computer and use it in GitHub Desktop.

Select an option

Save Boettner-eric/77baef8e2797577cc101ebc15a994b6d to your computer and use it in GitHub Desktop.
Alfred Change Config values
on run argv
set bundleID to (system attribute "alfred_workflow_bundleid")
set value to item 1 of argv
set otherValue to item 2 of argv
tell application id "com.runningwithcrayons.Alfred"
set configuration "CONFIG_ITEM_1" to value value in workflow bundleID
set configuration "CONFIG_ITEM_2" to value otherValue in workflow bundleID
end tell
end run
@Boettner-eric
Copy link
Author

Add this as a run_script action with AppleScript as the language. This allows you to change configuration or environment variables and can be used to store values between runs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment