Skip to content

Instantly share code, notes, and snippets.

@mattorp
Created November 8, 2021 11:10
Show Gist options
  • Save mattorp/67c1accac19215f3571c20b85e026862 to your computer and use it in GitHub Desktop.
Save mattorp/67c1accac19215f3571c20b85e026862 to your computer and use it in GitHub Desktop.
Split arguments in alfred
arr=({query})
first=${arr[1]}
second=${arr[2]}
echo "$first"
echo "$second"
osascript -e "display notification \" template: $first \" with title \"name: $second\""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment