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

oneautumnmangooneautumnmango224 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%"
)
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
8 months ago
Created
8 months ago
Updates
1 release
Downloads
224
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

Advanced URI

Control everything with URI.

QuickAdd

Quickly add new notes or content to your vault.

Update modified date

Automatically update a frontmatter modified date field when the file is modified.

MetaEdit

Manage your metadata.

Multi Properties

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

Vault Changelog

Maintain a changelog of recently edited notes.

Notebook Navigator

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

Claudian

Embeds Claude Code/Codex and other local Agents as AI collaborators in your vault.

BRAT

Easily install a beta version of a plugin for testing.

Homepage

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