Created
May 12, 2011 10:58
-
-
Save alexeypegov/968318 to your computer and use it in GitHub Desktop.
Service to Open selected issue in YouTrack for Google Chrome
This file contains 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
(* 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