{"id":26713,"date":"2026-09-02T21:22:12","date_gmt":"2026-09-02T19:22:12","guid":{"rendered":"https:\/\/www.wjst.de\/blog\/?p=26713"},"modified":"2026-09-03T19:26:13","modified_gmt":"2026-09-03T17:26:13","slug":"link-to-a-note-from-desktop","status":"publish","type":"post","link":"https:\/\/www.wjst.de\/blog\/sciencesurf\/2026\/09\/link-to-a-note-from-desktop\/","title":{"rendered":"Link to a note from desktop"},"content":{"rendered":"<p>Apple does not want us to link from outside to a note although it makes sense to have a central notes management .<\/p>\n<p>There is no documented, public URL scheme for Apple Notes. Apple has never listed one in developer documentation, and there is no deep link from iCloud.com or from non-Apple platforms.<\/p>\n<p>But\u00a0 an undocumented mechanism exists and is reachable from outside the app. Just create a Shortcut<!--more--><\/p>\n<figure id=\"attachment_26714\" aria-describedby=\"caption-attachment-26714\" style=\"width: 518px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-26714\" src=\"https:\/\/www.wjst.de\/blog\/wp-content\/uploads\/2026\/09\/Bildschirmfoto-2026-09-02-um-21.20.14-518x500.jpg\" alt=\"\" width=\"518\" height=\"500\" srcset=\"https:\/\/www.wjst.de\/blog\/wp-content\/uploads\/2026\/09\/Bildschirmfoto-2026-09-02-um-21.20.14-518x500.jpg 518w, https:\/\/www.wjst.de\/blog\/wp-content\/uploads\/2026\/09\/Bildschirmfoto-2026-09-02-um-21.20.14-620x598.jpg 620w, https:\/\/www.wjst.de\/blog\/wp-content\/uploads\/2026\/09\/Bildschirmfoto-2026-09-02-um-21.20.14.jpg 651w\" sizes=\"auto, (max-width: 518px) 100vw, 518px\" \/><figcaption id=\"caption-attachment-26714\" class=\"wp-caption-text\">Screenshot<\/figcaption><\/figure>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\non run {input, parameters}\r\n\tset noteURL to &quot;&quot;\r\n\tset cleanName to &quot;&quot;\r\n\t\r\n\ttell application &quot;Notes&quot;\r\n\t\ttry\r\n\t\t\tset selectedNotes to selection\r\n\t\t\tif (count of selectedNotes) is 0 then\r\n\t\t\t\tdisplay notification &quot;Bitte w\u00e4hlen Sie zuerst eine Notiz in Apple Notes aus.&quot; with title &quot;Keine Notiz ausgew\u00e4hlt&quot;\r\n\t\t\t\treturn input\r\n\t\t\tend if\r\n\t\t\tset currentNote to item 1 of selectedNotes\r\n\t\t\tset noteID to id of currentNote\r\n\t\t\tset noteName to name of currentNote\r\n\t\t\t\r\n\t\t\t-- Sonderzeichen aus dem Namen entfernen\r\n\t\t\tset cleanName to my sanitizeFilename(noteName)\r\n\t\t\t\r\n\t\t\t-- ID umwandeln\r\n\t\t\tif noteID starts with &quot;x-coredata&quot; then\r\n\t\t\t\tset AppleScript&#039;s text item delimiters to &quot;x-coredata:\/\/&quot;\r\n\t\t\t\tset idPieces to text items of noteID\r\n\t\t\t\tset cleanID to item 2 of idPieces\r\n\t\t\t\tset noteURL to &quot;applenotes:\/\/showNote?identifier=&quot; &amp; cleanID\r\n\t\t\telse\r\n\t\t\t\tset noteURL to noteID\r\n\t\t\tend if\r\n\t\t\t\r\n\t\t\tset the clipboard to noteURL\r\n\t\t\t\r\n\t\ton error errMsg\r\n\t\t\tdisplay alert &quot;Fehler beim Abrufen der Notiz: &quot; &amp; errMsg\r\n\t\t\treturn input\r\n\t\tend try\r\n\tend tell\r\n\t\r\n\t-- Erstellt eine ausf\u00fchrbare .command Datei auf dem Schreibtisch\r\n\tif noteURL is not &quot;&quot; then\r\n\t\ttry\r\n\t\t\tset desktopPath to POSIX path of (path to desktop folder)\r\n\t\t\t-- Wir nutzen .command als Endung f\u00fcr ein Desktop-Skript\r\n\t\t\tset filePath to desktopPath &amp; cleanName &amp; &quot;.command&quot;\r\n\t\t\t\r\n\t\t\t-- Schreibt den Start-Befehl direkt in die Datei\r\n\t\t\tset shellContent to &quot;#!\/bin\/zsh\r\nopen &quot; &amp; quoted form of noteURL &amp; &quot;\r\nosascript -e &#039;tell application &quot; &amp; &quot;\\&quot;&quot; &amp; &quot;Terminal&quot; &amp; &quot;\\&quot;&quot; &amp; &quot; to close first window&#039; &amp;\r\n&quot;\r\n\t\t\t-- Datei erstellen und ausf\u00fchrbar machen (chmod +x)\r\n\t\t\tdo shell script &quot;echo &quot; &amp; quoted form of shellContent &amp; &quot; &gt; &quot; &amp; quoted form of filePath\r\n\t\t\tdo shell script &quot;chmod +x &quot; &amp; quoted form of filePath\r\n\t\t\t\r\n\t\t\tdisplay notification &quot;Verkn\u00fcpfung &#039;&quot; &amp; cleanName &amp; &quot;&#039; wurde auf dem Schreibtisch erstellt!&quot; with title &quot;Apple Notes&quot;\r\n\t\ton error shellMsg\r\n\t\t\tdisplay alert &quot;Fehler beim Erstellen der Datei: &quot; &amp; shellMsg\r\n\t\tend try\r\n\tend if\r\n\t\r\n\treturn input\r\nend run\r\n\r\non sanitizeFilename(theText)\r\n\tset illegalChars to {&quot;:&quot;, &quot;\/&quot;, &quot;\\\\&quot;, &quot;*&quot;, &quot;?&quot;, &quot;\\&quot;&quot;, &quot;&lt;&quot;, &quot;&gt;&quot;, &quot;|&quot;}\r\n\tset cleanText to theText\r\n\trepeat with c in illegalChars\r\n\t\tset AppleScript&#039;s text item delimiters to c\r\n\t\tset thePieces to text items of cleanText\r\n\t\tset AppleScript&#039;s text item delimiters to &quot; &quot;\r\n\t\tset cleanText to thePieces as string\r\n\tend repeat\r\n\tif length of cleanText &gt; 30 then\r\n\t\tset cleanText to text 1 thru 30 of cleanText\r\n\tend if\r\n\treturn cleanText\r\nend sanitizeFilename\r\n<\/pre>\n<p>Give it a shortcut and you are ready for your quick link<\/p>\n\n<p>&nbsp;<\/p>\n<div class=\"bottom-note\">\n  <span class=\"mod1\">CC-BY-NC Science Surf , accessed 03.09.2026<\/span>\n <\/div>","protected":false},"excerpt":{"rendered":"<p>Apple does not want us to link from outside to a note although it makes sense to have a central notes management . There is no documented, public URL scheme for Apple Notes. Apple has never listed one in developer documentation, and there is no deep link from iCloud.com or from non-Apple platforms. But\u00a0 an &hellip; <a href=\"https:\/\/www.wjst.de\/blog\/sciencesurf\/2026\/09\/link-to-a-note-from-desktop\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Link to a note from desktop<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[2567,3341,3325,4950],"class_list":["post-26713","post","type-post","status-publish","format-standard","hentry","category-computer-software","tag-apple","tag-macos","tag-link","tag-notes"],"_links":{"self":[{"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/posts\/26713","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/comments?post=26713"}],"version-history":[{"count":6,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/posts\/26713\/revisions"}],"predecessor-version":[{"id":26720,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/posts\/26713\/revisions\/26720"}],"wp:attachment":[{"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/media?parent=26713"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/categories?post=26713"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/tags?post=26713"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}