Selecting the archive directory on startup?
Is there a way to specify the archive directory on startup?
The reason being that I want to set up a second directory for a work project that I will eventually pass off to someone else so I need to keep it separate from my personal stuff.
I did a quick scan through the forum and couldn't see an answer. Thanks.
Howdy, Stranger!
Categories
- 3K All Categories
- 152 Research & Reading
- 692 The Zettelkasten Method
- 7 Knowledge Work
- 100 Writing
- 464 Software & Gadgets
- 154 Workflows
- 730 The Archive
- 15 Plug-In Showcase
- 88 Resolved Issues
- 225 Projects Logs and Journals
- 83 Project: Zettelkasten.de
- 53 Critique my Zettel
- 171 Random
- 373 Introduce Yourselves!
Comments
There is an option, using the dropdown menu under "The Archive", to "Switch Archives...". Pretty ease to do.
Thanks for the answer.
What I had hoped to find out was, if there was a way to use some command line magic, or add a second icon on my desktop to open up the different directory (instead using the dropdown menu to switch).
I do have a secret debug switch for this for testing as a launch argument.
You can pass the
archiveURLon the command line like so:/file://URL/Contents/MacOS/The\ Archivebinary inside the .app bundle -- you can't justopen The\ Archive.appand pass thisEdit: I must've slept on this change, but I just discovered that you can also use this to pass another directory:
Author at Zettelkasten.de • https://christiantietze.de/
Perfect. Exactly what I was after. Thank you.
I did a first pass at using Automator to run AppleScript to launch with specific directories.
Code is attached for reference if anyone needs a script in the future.
on run {input, parameters} set Ze to "\"/Applications/The Archive.app\"" set DB to "\"file:///Users/YOURUSER/Documents/Zettelkasten/MYNOTES1/\"" set myC to "open -n " & Ze & " --args -archiveURL " & DB tell application "Terminal" activate do script myC end tell return input end runThen you can copy the script icon to the desktop to have quick access.
Brad
@Brad_T if you use a Shell Script task in Automator, it might be even quicker (I never know if loading the AppleScript environment takes long, or if it's the Automator action itself)
Author at Zettelkasten.de • https://christiantietze.de/
It would be nice to have an option in TAAP (The Archive) itself to swich to former folder, so you could quickly switch. Even better: multi folder support with 2 folders open at the same time.