Skip to content

Instantly share code, notes, and snippets.

@alexeypegov
Created May 12, 2011 10:58
Show Gist options
  • Save alexeypegov/968318 to your computer and use it in GitHub Desktop.
Save alexeypegov/968318 to your computer and use it in GitHub Desktop.
Service to Open selected issue in YouTrack for Google Chrome
(* todo *)
(* trim & validate selected text ^[a-zA-Z]+\-[0-9]+$ *)
(* change menu name to "Open [Selected issue id] in YouTrack" *)
(* multiple browsers support? *)
property theURL : ""
on run {input, parameters}
tell application "Google Chrome"
activate
set theURL to "http://www.jetbrains.net/tracker/issue/" & (input as string)
set theTab to make new tab at end of tabs of window 1
delay 0.3 (* some people may need this *)
set URL of theTab to theURL
end tell
return input
end run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment