AppleScript Issue: 10.2.4 No Help
Posted February 14th, 2003 @ 01:29pm by Erik J. Barzeski
10.2.4 didn't fix my AppleScript issue: an empty list is returned from this:
property logsFolder : "Gaia:Users:iacas:Library:Application Support:Adium:Users:iacas:Logs:"
set cutoffDate to ( (current date) - (60 * days) )
tell application "Finder" delete (files of folder logsFolder whose modification date < cutoffDate) end tell
Posted 14 Feb 2003 at 5:34pm #
Well there are no files in that folder, just folders. So you have to change that to "folders of folder..."
Posted 14 Feb 2003 at 5:46pm #
That's great. However, had you bothered to try your own suggestion, you'd see that it works no better. The problem is that the modification date math doesn't work (it also doesn't work if you put "is before" instead of <).