Created
April 1, 2010 04:35
-
-
Save atr000/351360 to your computer and use it in GitHub Desktop.
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 characters
on ScreencastURL(z) | |
set n to (offset of "http://screencast.com" in z) | |
if n > 0 then | |
set m to (offset of ">" in z) | |
if m > 0 then | |
set substr to (text items n thru (m - 2) of z) as text | |
return substr | |
end if | |
end if | |
return false | |
end ScreencastURL | |
using terms from application "Colloquy" | |
on process incoming chat message m | |
set z to (HTML of m) | |
set u to ScreencastURL(z) | |
if u is not false then | |
open location u | |
end if | |
end process incoming chat message | |
end using terms from |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment