Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Run Script on Property Edit

oneautumnmangooneautumnmango142 downloads

Detects when YAML frontmatter properties are edited and runs supplied scripts.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates1

An Obsidian plugin that detects when YAML frontmatter properties are edited and automatically runs specified scripts.

Usage

  1. Go to Settings → Community Plugins → Run Script on Property Edit
  2. Click "Add new property rule"
  3. Configure your rule:
    • Property name: The frontmatter property to watch (e.g., status, closed, tags)
    • Script path: Full path to your script (e.g., C:\Scripts\my-script.bat or /usr/local/bin/my-script.sh) (haven't tested with a .sh)
    • Show notification: Toggle to show a notification when the script runs
  4. Enable the rule
  5. Edit the property in any note's frontmatter to trigger the script

Environment Variables

Your script receives these environment variables:

  • PROPERTY_NAME - Name of the edited property
  • PROPERTY_VALUE - New value of the property
  • PREVIOUS_VALUE - Previous value of the property (this will be blank unless changed previously in the same obsidian instance)
  • FILE_PATH - Path to the file (relative to vault)
  • FILE_NAME - Name of the file
  • VAULT_PATH - Full path to the vault

Example

Watch for a closed property and move the file when set to true:

@echo off
if /I "%PROPERTY_VALUE%"=="true" (
    move "%VAULT_PATH%\%FILE_PATH%" "C:\Archive\%FILE_NAME%"
)
90%
HealthExcellent
ReviewSatisfactory
About
Detect edits to YAML frontmatter properties and run specified scripts automatically. Pass property name, new and previous values, file path, file name and vault path as environment variables to your script for conditional file actions.
PropertiesAutomationFiles
Details
Current version
1.0.0
Last updated
5 months ago
Created
5 months ago
Updates
1 release
Downloads
142
Compatible with
Obsidian 0.15.0+
Platforms
Desktop, Mobile
License
GPL-3.0
Report bugRequest featureReport plugin
Author
oneautumnmangooneautumnmango
github.com/OneAutumnMango
GitHuboneautumnmango
  1. Community
  2. Plugins
  3. Properties
  4. Run Script on Property Edit

Related plugins

QuickAdd

Quickly add new notes or content to your vault.

Advanced URI

Control everything with URI.

Vault Changelog

Maintain a changelog of recently edited notes.

Multi Properties

Add properties to multiple notes at once. Either right-click a folder or select multiple notes and right-click the selection.

MetaEdit

Manage your metadata.

Notebook Navigator

A better file browser and calendar inspired by Apple Notes, Bear, Evernote and Day One.

Local REST API & MCP Server

Unlock your automation needs by interacting with your notes over a secure REST API.

Advanced Canvas

Supercharge your canvas experience. Create presentations, flowcharts and more.

Templater

Create and use dynamic templates.

Homepage

Open a note, base, or workspace on startup, or set it for quick access later.