sharing a useful scriptlet
- 
					
					
					
					
 We should share tools more. Here's a little template script I've been using a lot. It's UI (mostly poached from Batch) to run something on a drag and drop list of files. Just put your code in the top doThing()class. Improvements and suggestions are welcome.https://gist.github.com/okay-type/06d64fcd0d2d3bcd03744510604b29ad 
 
- 
					
					
					
					
 Thanks for sharing this solution. I am sure other users will benefit from you taking the time to write this up. 
 
- 
					
					
					
					
 
 
- 
					
					
					
					
 Yes. Thank you. I updated my gist with your improvements and made the action name a variable up top so the button and titlebar are easier to edit. 
 
- 
					
					
					
					
 hi @okaytype, this is useful, thanks for sharing. I’ve made some small edits: using showInterfaceinstead ofshowUI(deprecated), using negative values and padding to make the list and buttons responsive, and some tiny PEP8 edits.
 
 
			
		