Mobile camera functionality for Obsidian via desktop folder action
This script and setup offer a way to quickly create camera notes and store them in your Obsidian vault via Dropbox or similar cloud service and a Mac (or Linux) computer
- In your Dropbox, create folders "inbox" and "resources"
- Download the Dropbox apps to your mobile and to your computer
- On your computer, create symbolic links to your Obsidian vault
ln -s ~/Dropbox/inbox /path/to/your/obsidian_vault
ln -s ~/Dropbox/_resources /path/to/your/obsidian_vault
- Download inbox_Obsidian_folder_action.sh from repository to your computer
- On your Mac, create a new Automator folder action for your Drobbox folder "inbox". Select execute shell script and paste in the content of inbox_Obsidian_folder_action.sh
- On Linux, the same result can be attained with a simple watch shell script
- In your mobile Dropbox app, open folder "inbox". Select take photo or scan document.
- Store result as jpg or pdf. Name the image file as you wish to entitle your Obsidian note.
- Optional: Add @target_folder and a list of tags (#tag1 #tag2 ...) to image file name before the extension such that the image file name becomes e.g.
Title of the note @target_folder #tag1 #Tag2 #tag3 .jpg
- When Dropbox downloads the image file, the script will automatically:
- create an Obsidian note named as the image file
- move the note into target_folder if such folder exists in your Obsidian vault
- tag the note with your list of tags
- move the image file into folder _resources of the Obsidian vault
- link the image file to the note such that the image appears in the note