r/applescript • u/IllustriousBar5930 • Dec 10 '21
AppleScript to delete files ina folder
Hi everyone I wrote an AppleScript to delete files in a specific folder and it works fine,but I was wondering how can I run this app at specific time every day.thanks
2
Upvotes
View all comments
2
u/[deleted] Dec 16 '21 edited Dec 16 '21
cron or launchd are fine, but they are very UNIX-y ways to do it. Which is fine you're already a tech guru... but if you're not....
The easiest way is to make a recurring Calendar event that triggers your AppleScript:
(Make sure you test it at least once so MacOS will "bless" it to run with the correct permissions).