Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Make Command-Delete do more with Quicksilver' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Make Command-Delete do more with Quicksilver
Authored by: bugmenot on Nov 02, '07 06:26:02AM
With leopard, the application file kind now contains the version (universal, intel) Here is the updated version for AppZapper; I just changed the '=' to contains...not really fluent in applescript, so i dont know whether it is a good function. But, it works

tell application "Finder"
	if frontmost then
		set selected_items to selection
		repeat with i in selected_items
			set k to kind of i
			if k contains "Application" then
				open i using application file id "com.appzapper.appzapper"
			else if k = "Volume" then
				eject i
			else
				move i to trash
			end if
		end repeat
	end if
end tell
[code]


[ Reply to This | # ]