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


Click here to return to the 'An AppleScript to organize items by 'date added to folder'' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
An AppleScript to organize items by 'date added to folder'
Authored by: cansas on Nov 11, '03 11:14:16AM

This script is great! I use it every day. I did notice that it does not seem to work correctly if attached to a folder in a Filevault enabled user folder - I moved my downloads folder to a shared folder.



[ Reply to This | # ]
An AppleScript to organize items by 'date added to folder'
Authored by: bakalite on Nov 11, '03 04:45:39PM

Actually the script doesn't organize items by date, rather it moves them into folders that are organized by date. The difference is subtle, but important. I would love to have my downloads folder organized by when I downloaded something. However, having to deal with the folders makes it much less useful. Oh well...



[ Reply to This | # ]
An AppleScript to organize items by 'date added to folder'
Authored by: DeltaTee on Nov 11, '03 06:55:59PM

A script to add the date downloaded to the File Comments and then sorting by comments would not be incredibly difficult. A folder action could even be attached to automatically add the comment.



[ Reply to This | # ]
An AppleScript to organize items by 'date added to folder'
Authored by: biedawo on Nov 12, '03 12:27:15AM

Here is another applescript that will do something like this (suggestions welcome). As each file is added to the folder, the unix command touch is used to update the modification date to reflect when it was added to the folder. To use it, open the "applescript editor", paste it in, compile, and save in "/Library/Scripts/Folder Action Scripts"

Matt



(*
TimeStamp
touches each file as it gets added to the folder.
*)

on adding folder items to this_folder after receiving added_items
	repeat with i from 1 to the number of items in added_items
		set the_file to item i of added_items
		tell application "Finder"
			if (file the_file exists) then
				try
					do shell script ("/usr/bin/touch " & quoted form of POSIX path of the_file)
					update the_file
				end try
			end if
		end tell
	end repeat
end adding folder items to


[ Reply to This | # ]
folders, too
Authored by: Krioni on Nov 14, '03 04:21:07PM
Wouldn't that need to be

	if (item the_file exists) then
to handle folders, as well as files?

[ Reply to This | # ]