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


Click here to return to the 'Create Placeholders for downloaded files' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Create Placeholders for downloaded files
Authored by: tedw on Mar 12, '11 08:11:07PM
For those of you who want to do this without having to parse that mind-boggling block of unix code, here's an applescript to do the same thing.
on run
	tell application "Finder"
		try
			set theFolder to (the target of the front window) as alias
		on error
			return
		end try
		
		set theFiles to every file of theFolder whose label index is 7
		repeat with thisFile in theFiles
			set theName to name of thisFile
			delete thisFile
			make new file at theFolder with properties {name:theName}
		end repeat
		-- uncomment the following line if you want the trash to empty immediately
		-- empty trash
	end tell
end run
The is designed to be used as a Finder menubar item: copy the above code into Script Editor, save it as an application, and then drag the application icon onto the toolbar of a Finder window. The icon will stick there, and you can click it in any open Finder window to run the script on that folder.

[ Reply to This | # ]