I'm writing Swift script and want to run it automatically. For example, I want my script to clean Downloads folder every week or on schedule. How I can do it?
Asked
Active
Viewed 403 times
0
-
Wouldn't be a *real* script language (bash, python, AppleScript) the better choice? – vadian Jul 28 '17 at 16:08
-
I really love Swift and want to use it for these tasks – Artem Novichkov Jul 28 '17 at 16:11
-
For scheduling take a look at `launchd` (agent) – vadian Jul 28 '17 at 16:13
-
There's nothing swift-specific to this question. It's a duplicate of questions in other stacks, and not on-topic here. – Kuba hasn't forgotten Monica Jul 28 '17 at 21:12