Created
August 2, 2012 00:57
Revisions
-
mbierman renamed this gist
Aug 13, 2012 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
mbierman renamed this gist
Aug 13, 2012 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
mbierman renamed this gist
Aug 13, 2012 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
mbierman renamed this gist
Aug 13, 2012 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
mbierman renamed this gist
Aug 13, 2012 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
mbierman revised this gist
Aug 13, 2012 . No changes.There are no files selected for viewing
-
mbierman revised this gist
Aug 13, 2012 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,6 @@ -- Based on Sam Dutton's script (http://goo.gl/27XlZ) -- which was based on Mike Piontek's script (http://goo.gl/SBkkL) -- This is Chrome specific. See https://gist.github.com/3232318 for a Safari Script tell application "TextWrangler" to set theFile to file of document 1 tell application "TextWrangler" to save document 1 -
mbierman revised this gist
Aug 2, 2012 . No changes.There are no files selected for viewing
-
mbierman revised this gist
Aug 2, 2012 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ -- Based on Sam Dutton's script (http://goo.gl/27XlZ) -- which was based on Mike Piontek's script (http://goo.gl/SBkkL) tell application "TextWrangler" to set theFile to file of document 1 tell application "TextWrangler" to save document 1 -
mbierman revised this gist
Aug 2, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ -- Based on Sam Dutton's http://goo.gl/27XlZ script -- which was based on Mike Piontek's script http://goo.gl/SBkkL tell application "TextWrangler" to set theFile to file of document 1 -
mbierman revised this gist
Aug 2, 2012 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,5 @@ -- Based on Sum Dutton's http://goo.gl/27XlZ script -- which was based on Mike Piontek's script http://goo.gl/SBkkL tell application "TextWrangler" to set theFile to file of document 1 tell application "TextWrangler" to save document 1 -
mbierman revised this gist
Aug 2, 2012 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,5 @@ -- Based on Sum Dutton's http://goo.gl/27XlZ script which was based on Mike Piontek's script http://goo.gl/SBkkL tell application "TextWrangler" to set theFile to file of document 1 tell application "TextWrangler" to save document 1 -
mbierman renamed this gist
Aug 2, 2012 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
mbierman revised this gist
Aug 2, 2012 . No changes.There are no files selected for viewing
-
mbierman created this gist
Aug 2, 2012 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,20 @@ tell application "TextWrangler" to set theFile to file of document 1 tell application "TextWrangler" to save document 1 set appleScriptPath to theFile as text set currentURL to POSIX path of appleScriptPath set currentURL1 to POSIX path of appleScriptPath set currentURL to ("file://" & currentURL) -- this script will get the <title> tag from the web page for comparison below. set theTitle to do shell script "grep -i '<title>' " & currentURL1 & "| sed -e 's#<[^>]*>##g' | sed 's/^[ ]*//;s/[ ]*$//'" tell application "Google Chrome" activate -- using the <title> tag above, we compare to the current open tab. If they are equal, replace the contents, otherwise, open a new tab. if (exists window 1) and (title of active tab of window 1 is theTitle) then tell window 1 to set URL of active tab to currentURL else open location currentURL end if end tell