No more Task Scheduler! run your ts.script any time

Leader posted 1 min read

https://github.com/transpective-dev/Fuck-TaskScheduler

Task Scheduler is too much complex.

you have to open the panel with a lot of efforts and can't even promise the schedule will be execute well.

but "Fuck!TaskScheduler" can promise you (not 100% but at least you can see the status) .

what can we do ?

  • run your ts file on a specific time
  • we support interval, atTime, and inRange

inRange: you can specify the range to run your script
atTime: you can specify the time to run your script
interval: you can specify the interval to run your script

format: {

plain (e.g. inRange): hh:mm
complex (e.g. atTime): dd/mm/yyyy hh:mm

}

check api.ts for more information

how to use ?

  1. create TS file in scripts folder with .sche.ts extension

  2. create your script!

// import api from api.ts
import { API } from './api.ts'

// instantiate API
const timer = new API()

// example 1:

// call every 5 minutes

timer.interval({
    min: 5,
    func: () => {
        console.log('hello world')
    }
})

// example 2:

// call everyday at 10:00

timer.atTime({
    time: '10:00',
    func: () => {
        console.log('hello world')
    }
})

few things you should know

  1. if you want to startup with OS, use alt+drag to create shortcut and put it in shell:startup

  2. if you need to use packages, you can initialize a npm project and install from bun or npm

  3. you can change checkInterval in api.ts

More Posts

I Wrote a Script to Fix Audible's Unreadable PDF Filenames

snapsynapseverified - Apr 20

TypeScript Complexity Has Finally Reached the Point of Total Absurdity

Karol Modelskiverified - Apr 23

I’m a Senior Dev and I’ve Forgotten How to Think Without a Prompt

Karol Modelskiverified - Mar 19

Your Tech Stack Isn’t Your Ceiling. Your Story Is

Karol Modelskiverified - Apr 9

Your AI Agent Skills Have a Version Control Problem

snapsynapseverified - Apr 22
chevron_left

Related Jobs

View all jobs →

Commenters (This Week)

2 comments
1 comment
1 comment

Contribute meaningful comments to climb the leaderboard and earn badges!