Skip to content

Instantly share code, notes, and snippets.

@jeffrafter
Created April 16, 2013 17:30
Show Gist options
  • Save jeffrafter/5397834 to your computer and use it in GitHub Desktop.
Save jeffrafter/5397834 to your computer and use it in GitHub Desktop.
Automator script to open a SKU. Complete with nifty regex.
on run {input, parameters}
display alert input    
set regex to "echo \"" & input & "\"|grep -Eow \"[0-9]{9}-[0-9]{2}\"" as string
   
set url_path to do shell script regex
   
open location "https://wantful.com/products/" & url_path
   
end run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment