# Scheduling

Assumes you have successfully Spotify authorized the profile or config you are scheduling.

### Linux

Edit cron

> crontab -e

Run auto mode everyday at 2pm

> 0 14 \* \* \* /usr/bin/python3 -m spotify\_sync run auto --profile MyFirstProfile 2>&1

### Windows (PowerShell)

Get spotify\_sync.exe path

> (Get-Command spotify\_sync).Path

Run auto mode everyday at 2pm

```powershell
$action = New-ScheduledTaskAction -Execute 'PATH_FROM_ABOVE' -Argument 'run auto --profile myFirstProfile'

$trigger =  New-ScheduledTaskTrigger -Daily -At 2pm

Register-ScheduledTask -Action $action -Trigger $trigger -TaskName "spotify_sync" -Description "Download Spotify songs for myFirstPreofile profile" -
```

### MacOS
