Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 29 lines (23 sloc) 0.569 kB
#!/usr/bin/ruby
# Dropzone Destination Info
# Name: Is.Gd
# Description: A dropped URL will be converted to a Is.Gd URL.
# Handles: NSStringPboardType
# Creator: Aptonic Software
# URL: http://aptonic.com
# IconURL: http://aptonic.com/destinations/icons/is.gd.png
def dragged
$dz.determinate(false)
$dz.begin("Getting is.gd URL")
if $items[0] =~ /http/
url = IsGd.minify($items[0])
$dz.finish("URL is now on clipboard")
$dz.url(url)
else
$dz.finish("Invalid URL")
$dz.url(false)
end
end
def clicked
system("open http://is.gd/")
end
Jump to Line
Something went wrong with that request. Please try again.