Obsidian – How to create Daily note every day, even if I don’t open it

Problem

The Daily Note plugin is a fundamental feature in Obsidian, essential for many users who track their daily tasks, thoughts, and progress. In the Daily Notes settings, there’s an option to Open daily note on startup, which ensures tha…


This content originally appeared on DEV Community and was authored by Luca Liu

Problem

The Daily Note plugin is a fundamental feature in Obsidian, essential for many users who track their daily tasks, thoughts, and progress. In the Daily Notes settings, there’s an option to Open daily note on startup, which ensures that a new daily note is created whenever you open Obsidian in the morning.

However, there’s a catch: if you leave Obsidian open overnight and don’t close it, you’ll notice that when you open your computer the next morning, today’s daily note isn’t automatically created. You’ll have to manually create it, which can slightly disrupt your workflow.

This isn’t a major issue, but automating this process can make your daily routine smoother and more efficient.

macOS Solution

Here’s my simple, no-coding solution: use macOS’s built-in Automator to schedule a daily restart of Obsidian.

Step 1: Create an Automator Workflow

  1. Open Automator: Launch the Automator app on your Mac. You can find it using Spotlight (Command + Space) or in the Applications folder.
  2. Create a New Workflow: Select “Workflow” when prompted to choose a type of document.
  3. Add the Necessary Actions:
    • Quit Application: Search for the Quit Application action and add it to the workflow. Set it to quit Obsidian.app, and make sure to untoggle ‘Ask to save changes’ to ensure the app closes without prompts.
    • Pause for 10 Seconds: Add the Pause action and set it to 10 seconds. This brief pause ensures that Obsidian has fully closed before reopening.
    • Launch Application: Finally, add the Launch Application action and set it to open Obsidian.app again. This will trigger the “Open daily note on startup” feature, creating the new note.
  4. Test the Workflow: Click the Run button at the top right of the Automator window to test the workflow.
  5. Save the Workflow: Save your workflow to a convenient location on your computer with a recognizable name like reopenObsidia.

Step 2: Schedule the Workflow Using Calendar

  1. Open Calendar: Launch the Calendar app on your Mac.
  2. Create a New Event: Create a new event at the time you typically start your workday.
  3. Set the Event to Repeat: Configure the event to repeat on workdays or every day, depending on your needs.
  4. Add a Custom Alert:
    • In the event details, click on Alert, then select Custom.
    • Choose Open File as the alert type.
    • Select Other and navigate to the Automator workflow you saved earlier. This will link the event to your workflow.

Step 3: Test the Setup

Test the Automation: On the next scheduled time, observe if the workflow correctly quits and restarts Obsidian, automatically creating your daily note. Make adjustments as needed.

Windows Solution

For Windows users, you can achieve a similar automated daily restart of Obsidian using Task Scheduler, a built-in tool in Windows. Here’s how to set it up:

Step 1: Create a Batch Script

  1. Open Notepad: open Notepad.
  2. Write the Batch Script: Copy and paste the following code into Notepad, and replace C:\path\to\Obsidian.exe with the path to Obsidian on your computer.

    @echo off
    taskkill /IM Obsidian.exe /F
    timeout /t 10
    start "" "C:\path\to\Obsidian.exe"
    
  3. Save the Script: Save as reopenObsidian.bat with the .bat extension.

Step 2: Schedule the Batch Script Using Task Scheduler

  1. Open Task Scheduler: Press Win + R, type taskschd.msc, and press Enter.
  2. Create a New Task: In Task Scheduler, click on Create Task in the Actions pane on the right. Name it, choose Daily, set the time, and select Start a program.
  3. Select the Batch File: Browse to the .bat file you saved and select it.
  4. Finish: Click Finish to save.

Conclusion

By following these steps, your daily note in Obsidian will be automatically created every morning without any manual intervention. This setup ensures that you never miss a day, keeping your notes organized and your workflow smooth.

Explore more

Thank you for taking the time to explore data-related insights with me. I appreciate your engagement.

🚀 Connect with me on LinkedIn

🎃 Connect with me on X


This content originally appeared on DEV Community and was authored by Luca Liu


Print Share Comment Cite Upload Translate Updates
APA

Luca Liu | Sciencx (2024-08-30T13:41:55+00:00) Obsidian – How to create Daily note every day, even if I don’t open it. Retrieved from https://www.scien.cx/2024/08/30/obsidian-how-to-create-daily-note-every-day-even-if-i-dont-open-it/

MLA
" » Obsidian – How to create Daily note every day, even if I don’t open it." Luca Liu | Sciencx - Friday August 30, 2024, https://www.scien.cx/2024/08/30/obsidian-how-to-create-daily-note-every-day-even-if-i-dont-open-it/
HARVARD
Luca Liu | Sciencx Friday August 30, 2024 » Obsidian – How to create Daily note every day, even if I don’t open it., viewed ,<https://www.scien.cx/2024/08/30/obsidian-how-to-create-daily-note-every-day-even-if-i-dont-open-it/>
VANCOUVER
Luca Liu | Sciencx - » Obsidian – How to create Daily note every day, even if I don’t open it. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/08/30/obsidian-how-to-create-daily-note-every-day-even-if-i-dont-open-it/
CHICAGO
" » Obsidian – How to create Daily note every day, even if I don’t open it." Luca Liu | Sciencx - Accessed . https://www.scien.cx/2024/08/30/obsidian-how-to-create-daily-note-every-day-even-if-i-dont-open-it/
IEEE
" » Obsidian – How to create Daily note every day, even if I don’t open it." Luca Liu | Sciencx [Online]. Available: https://www.scien.cx/2024/08/30/obsidian-how-to-create-daily-note-every-day-even-if-i-dont-open-it/. [Accessed: ]
rf:citation
» Obsidian – How to create Daily note every day, even if I don’t open it | Luca Liu | Sciencx | https://www.scien.cx/2024/08/30/obsidian-how-to-create-daily-note-every-day-even-if-i-dont-open-it/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.