Git Product home page Git Product logo

macos-scheduler's Introduction

Setup Steps

CSV Setup

  1. Place the day, the script time and the full script path in the scheduler.csv. There are examples in the csv for you to follow.
    • Don't remove the header row, it is ignored when the script is ran, but if you do remove it, all of your scripts will not run.
    • The order you place scripts in the file does not matter as they filtered by day and sorted by time in the code.
    • Days must be capitalized: Monday, Tuesday, etc.
    • Time must be written in the 24 hour format: 00:00-23:59.

Workflow setup

  1. Open scheduler.workflow with automator.

  2. Replace the directory here after the cd command with whatever directory you decide to leave this folder.

    cd /Users/earlchase/documents/scheduler
  3. The script is sourced and then called by the workflow so no further configuration is needed.

Automator App Setup

  1. Open automator.
  2. Click on open an existing document and open scheduler.app
  3. Confirm scheduler.workflow is selected as the workflow this app runs when opened.
    • You shouldn't have to change anything at all to get to work. All you are doing is confirming everything is in order.

Calendar

  1. Open your calendar and create a recurring event.
    • The first time you should set this event to run basically immediately as the calendar is going to ask you for permission to open the automator app.
    • Once you have run this one time and given the permission to run, change the date of the event to about 30 minutes to an hour before you normally run your scripts.
  2. Click on alert and choose customize.
  3. Then click on the top dropdown menu that shows up and choose open a file.
  4. Click on calendar and select other.
  5. Select the scheduler.app
  6. Click ok and you are done.

Wrapup

  • Don't worry about making your scripts executable, all scripts are ran like this:
python3 /Users/earlchase/documents/scheduling.py

macos-scheduler's People

Contributors

vhugoobject avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.