This one is for TJ

on open thefolder
	repeat with thisItem in thefolder
		createicon(thefolder) of me
	end repeat
end open

on run
	tell application "Finder"
		display dialog ¬
			"This is a droplet. Please drop a folder of files or a folder of folders of files on me." with icon 1 buttons {"Ok"} default button 1
	end tell
end run

on createicon(thefolder)
	tell application "Finder"
		activate
		set theseFolderItems to every item in thefolder
		repeat with thisItem in theseFolderItems
			tell application "X-Commands"
				activate
				create thumbnail icon for thisItem -- using application "x-commands"
			end tell
		end repeat
	end tell
end createicon

I used your code from “Creator_ShopR_1.1” and “x-commands” to composite this script but i get an “the application is not runing error” any ideas

to anyone else I am trying to generate a lil script to create icons for a folder of items dragged on to it
-thx :smiley:

Sorry it’s taken me a bit to get back to you on this one!

I’ve downloaded David’s spiffy X-commands and run some tests on your code…

It works like a champ here! Are you sure you have the curren version of X-commands? (0.9.5)

One thing to note: X-commands is actually an invisible background app, not a traditional “scripting addition”. So, you’ll need to actually launch it before testing your code. Post again with further details if you’re still stuck.