Created
April 16, 2013 17:30
-
-
Save jeffrafter/5397834 to your computer and use it in GitHub Desktop.
Automator script to open a SKU. Complete with nifty regex.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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