

That is, you won’t find all files that are “at least” 24 hours old, you’ll find only those files that are exactly (with rounding) 24 hours old. In case I wasn’t completely clear with this example, ctime works via matching, not as a limit. Obviously, you could easily change the command to show files that have been changed 24 hours ago ( ctime -1 ) or 48 hours ago ( ctime -2 )-or any other full-day increment you’d like to use.


Set fileCreationDate to (get creation date of thisFile) Set theFolder to choose folder with prompt "Search in Folder" "January 5" buttons ¬ĭefault button 2 cancel button 1 with title "File Search Criteria - Step 2") "Insert Month or Month & Day of file creation" default answer ¬ Set monthCreated to text returned of (display dialog ¬ NOTE: This version includes a "Month or Month & Day of file creation" to the search criteria. It can also be saved in Script Editor as an "application" then can launched through Finder by double clicking it, like any other app. The code can be run directly within Script Editor. Paste this following AppleScript code into a new Script Editor.app document. It will then automatically select the files from your search results, in a new finder window. Here is an AppleScript solution which will allow you to choose a folder to search in and set the search criteria for the files you want.
