With cron being depreciated in OSX a few versions ago, the proper way to run a script at set intervals is with Launchd. Below is just a quick setup for getting Offlineimap to run every 2 minutes to refresh your local email folders.