Updated script for anyone who wishes to use it for themselves
--Locate File user wishes to reverse search tell application "Finder"
set sel to the selection as text
set the clipboard to POSIX path of sel
end tell
--perform search in Google Chrome
activate application "Google Chrome"
tell application "System Events" to tell process "Google Chrome"
delay 1
keystroke "t" using command down
keystroke "v" using command down
key code 36
delay 1.5
set myBounds to bounds of window 1 of application "Google Chrome"
set x to item 1 of myBounds
set y to item 2 of myBounds
do shell script "/Users/admin/cliclick m:" & x & "," & y & "w:100 kd:ctrl c:+2,+74 ku:ctrl w:1000 c:+66,+90 w:700"
end tell
--close file tab google chrome leaving only search result open
tell application "Google Chrome"
set windowList to every tab of every window whose URL starts with "file://"
repeat with tabList in windowList
set tabList to tabList as any
repeat with tabItr in tabList
set tabItr to tabItr as any
delete tabItr
end repeat
end repeat
end tell
NOTE: As before cliclick must be installed in User/home/.. for the right click to work Chrome needs to be installed and preferably active in the dock due to this script being based on action delays. Annd as the workflow uses cliclick to emulate clicks within chrome to reverse search the image - moving the mouse while the workflow is going will more often than not result in *right-click* “Search Google by Image” failing. EDIT: Included in the form of a workflow export http://cl.ly/0u3Y2P1q2L43