paint-brush
Obsidian Guide: How to Create the Daily Note Every Day - Even If You Don't Open Itby@luca1iu
New Story

Obsidian Guide: How to Create the Daily Note Every Day - Even If You Don't Open It

by Luca Liu4mAugust 30th, 2024
Read on Terminal Reader
Read this story w/o Javascript

Too Long; Didn't Read

The Daily Note plugin is a fundamental feature in Obsidian. It ensures that a new daily note is created whenever you open Obsidian in the morning. 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.
featured image - Obsidian Guide: How to Create the Daily Note Every Day - Even If You Don't Open It
Luca Liu HackerNoon profile picture

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.


Thank you for taking the time to explore data-related insights with me. I appreciate your engagement. If you find this information helpful, I invite you to follow me or connect with me on LinkedIn or X(@Luca_DataTeam). Happy exploring!👋