What I’m trying to do
Hi, I am trying to write a note called New Trail using URL scheme.
Things I have tried
set obsidianURL to "obsidian://advanced-uri?vault=" & PercentEncode(vaultName) & "&filepath=" & PercentEncode(fileName) & "&data=" & PercentEncode(monthHeading) & "&mode=prepend" -- mode=prepend
This applescript line creates Heading 1 April 2025 at top of document correctly. Similarly I want to programmatically add data under Heading 1 April 2025 Heading level 4 F’s. I do have Level 4 F’s under level 1 heading March 2025, Feb 2025 & so on.
I can write under “April 2025” by
set obsidianURL to "obsidian://advanced-uri?vault=" & PercentEncode(vaultName) & "&filepath=" & PercentEncode(fileName) & "&heading=" & PercentEncode(April 2025) & "&data=" & PercentEncode("Hey how are you") & "&mode=prepend" -- mode=prepend
My Q is how to create URL to write under #### F’s, under # April 2025.
I have tried
set heading to "#April 2025####F's"
set heading to "April 2025####F's"
- in various ways with percent encoding. it does not work. please help or any other suggestions
- Also suggest a URL which could programmatically place text where the cursor is
Thank you