Skip to content

Instantly share code, notes, and snippets.

@siggi-hs
Created January 23, 2017 10:53
Show Gist options
  • Select an option

  • Save siggi-hs/ceee6b4e49b18ec167e7b73d69276cbd to your computer and use it in GitHub Desktop.

Select an option

Save siggi-hs/ceee6b4e49b18ec167e7b73d69276cbd to your computer and use it in GitHub Desktop.
on run {input, parameters}
set the clipboard to "POP87-6000"
delay 0.5
tell application "Google Chrome" to activate
tell application "System Events"
-- Select prodcut from dropdown
keystroke tab
keystroke tab
keystroke "p"
delay 0.5
-- Paste product Name
keystroke tab
key down {command}
keystroke "v"
key up {command}
delay 0.5
-- Paste product SKU
keystroke tab
keystroke tab
key down {command}
keystroke "v"
key up {command}
delay 0.5
-- Select one column
keystroke tab
keystroke (key code 125)
delay 0.5
keystroke return
delay 0.5
-- Enable item
keystroke tab
delay 0.5
keystroke "e"
delay 0.5
end tell
return input
end run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment