Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 31 lines (26 sloc) 0.625 kb
#!/usr/bin/ruby
# Dropzone Destination Info
# Name: Test Destination
# Description: Provides the ability to do some cool thing.
# Handles: NSFilenamesPboardType
# Events: Clicked, Dragged
# Creator: Aptonic Software
# URL: http://aptonic.com
# IconURL: http://aptonic.com/destinations/icons/test.png
def dragged
$dz.determinate(true)
file_path = $items[0]
$dz.begin("Doing something with #{file_path}...")
$dz.percent(20)
sleep(1)
$dz.percent(50)
sleep(1)
$dz.percent(100)
sleep(1)
$dz.finish("Finished Task")
$dz.url(false)
end
def clicked
$dz.finish("You clicked me!")
$dz.url(false)
end
Jump to Line
Something went wrong with that request. Please try again.