--- title: URI Schemes aliases: URI, URL created: 2022-01-05 16:23 publish: true type: jd-number: 40 tags: cssclass: --- # URI Schemes Two examples where I use URI schemes are [[Obsidian]] and [[Bunch]]. --- ## Apple Mail It’s easier to just drag and drop into your Obsidian note. Link works on [[macOS]], [[iOS|iPhoneOS]], and [[iOS|iPadOS]]. ``` message: ``` --- ## Fantastical ### Day view Used to launch day view in [[Fantastical]]. I use this on my [[Journal 02.01 Daily (Template)]]. ==Action required:== Change `YYYY-MM-DD` to today’s date. #### Main calendar view ``` x-fantastical3://show/calendar/YYYY-MM-DD ``` #### Mini calendar view ``` x-fantastical3://show/mini/yyyy-MM-dd ``` ### Open a Fantastical view #### Mini calendar view ``` x-fantastical3://show/mini ``` #### Main calendar view ``` x-fantastical3://show/calendar ``` ### Select a calendar set So, the annoying thing about this is that both [[Bunch]] and [[Obsidian]] seem to have issues with the spaces in the calendar name. But this is nice to be able to bring up calendar views on the fly for planning. ``` x-fantastical3://show/set?name=My Calendar Set ``` --- ## macOS ### File or folder ==Action required:== Change `YOURUSERNAME` to your macOS user name. ``` file:///Users/YOURUSERNAME/path/to/file/ ``` - To copy the pathname from Finder: 1. Right-click the file or folder 2. Navigate to *Copy* 3. Holding down Option will change *Copy* to *Copy 'File or folder name'* 4. Clicking that will copy the pathname #### Examples ``` [Downloads folder](<file:///Users/leahferguson/Downloads>) ``` 📁 For folders 🟨 `[Downloads folder](file:///Users/leahferguson/Downloads)` works just fine, because there is no space in the path name. 🟥 `[Documents](file:///Users/leahferguson/Documents/30 Professional)` doesn't work because of the space. 🟩 `[Documents](<file:///Users/leahferguson/Documents/30 Professional>)` will always work because of the < and > characters. 📎 For files 🟨 `[Downloads folder](file:///Users/leahferguson/Downloads)` works just fine, because there is no space in the path name. 🟥 `[Documents](file:///Users/leahferguson/Documents/30 Professional/31 Career Admin/Personal Brand.ai)` doesn't work because of the space. 🟩 `[Documents](<file:///Users/leahferguson/Documents/30 Professional/31 Career Admin/Personal Brand.ai>)` will always work because of the < and > characters. And here is a templater template you can use to past the path from macOS directly into your note, and be able to rename the link in a single go. To get the file path, right click the file in Finder, and hold down Option while hovering over Copy. It will switch to Copy [file] as Pathname. ``` [<% tp.file.cursor(1) %>](<file://<% tp.system.clipboard() %>>) ``` --- ## Obsidian > **Note:** Ensure that your values are properly URI encoded. For example, forward slash characters `/` must be encoded as `%2F` and space characters must be encoded as `%20`. ### Folder (Search) ``` obsidian://search?vault=Primary&query=path:00 Meta/01 Inbox ``` ### Note ### Vault ``` obsidian://open?vault=Primary ``` --- ## OmniFocus ### Add Tasks ``` omnifocus:///add?variables ``` Variables: - attachment (base64 encoded) - attachment-name (repeated if necessary for multiple files) - autocomplete (true or false; do children mark project complete?) - completed (date and time, like jun 25 6pm) - context (case-insensitive match) - defer (date and time, like jun 25 8am) - due (date and time, like jun 25 8am) - estimate (30m for 30 minutes) - flag (true or false) - name (your action’s name) - note (an optional note) - parallel (true or false) - project (case-insensitive match) - repeat-rule (see here for format information) - repeat-method (fixed, start-after-completion, or due-after-completion) - reveal-new-item (true or false) ### Forecast Used to the forecast view in [[OmniFocus]]. I use this on my [[Journal 02.01 Daily (Template)]]. ``` omnifocus:///forecast ``` ### Inbox ``` omnifocus:///inbox ``` ### Flagged ``` omnifocus:///flagged ``` ### Perspectives ``` omnifocus:///perspective/Perspective Name ``` - Example: [20 School](omnifocus:///perspective/20 School) ### Projects ``` omnifocus:///projects ``` ### Tags ``` omnifocus:///tags ``` --- ## Readwise ### Readwise app: Daily review [[iOS]]-only ``` readwise://dailyreview ``` ### Readwise app: Specific highlight [[iOS]]-only ``` readwise://open/highlightId ``` ### Reader beta: Archive [[iOS]]-only ``` wiseread://archive ``` ### Reader beta: Read [[iOS]]-only ``` wiseread://read ``` ### Reader beta: Later [[iOS]]-only ``` wiseread://later ``` --- ## Zotero [[Zotero]] offers a `zotero://` URI, but it’s easier to generate from the app than detail here.