Awesome. Thanks! I’m going to try to put this together.

@KevinR, looks like @Rishi is your saviour!

Append works. It’s a bit of a hack, so 1Writer will open twice as it “Appends” to the file first (though it is hard-coded not to actually add anything) in order to make sure it exists, then opens it afterwards.

Version 2.0, usable with either 1Writer’s iCloud folder or Dropbox:
https://www.icloud.com/shortcuts/7af5632295d445ea9010245d9a0f0280

Note that this still can’t work with arbitrary iCloud Drive folders. 1Writer’s URL schemes can’t operate on those… I have talked to the developer on Twitter about it. ;_;

3 Likes

Good luck! Here is mine.

2 Likes

You can ignore my shortcut and just use @ryanjamurphy’s v2. That seems to work quite nicely! Just goes to show that multiple people approaching the same problem from different angles always works wonders.

2 Likes

Ironically just wrote my own solution to this very conundrum (how to start a daily log on iOS). While I also use shortcuts + 1Writer, I ended up doing a different approach:

Run a shortcut that:

  1. Loads the log template file
  2. Does a bunch of Smart text expansions (e.g. Puts a copy of my calendar from google calendar, adds today’s weather, quote of the day, date, etc)
  3. Copies it into the clipboard
  4. Launches 1Writer

Then in 1Writer I have a JavaScript action that

  1. Creates a new file
  2. Pastes the clipboard

With that, I’m down to just a few button presses:

  1. Run shortcut
  2. Run JavaScript action
  3. Move the daily into the Zettel iCloud directory shared to Obsidian

Given that I have to do #3 anyways, I may just switch to creating the file in shortcuts, use the xcallback to load it in 1 writer and then again handle the move to the right folder in 1Writer to save a button press.

Thanks for the tips!

2 Likes

Interesting. This reminds me of using Day One which automatically added things like location and weather to my daily journal entry as well. Curious about how you’re handling the same on the computer side? Surely, Shortcuts makes it much easier on iOS than anything currently on the Mac. We can do a lot with scripts but it’s more work.

Then in 1Writer I have a JavaScript action that

  1. Creates a new file
  2. Pastes the clipboard

I think you can replace these steps with just using their URL scheme to create a new note which automatically fills the note with the clipboard. Here’s a bit of info from their documentation,

/create

Creates a new document.

### Parameters

* **path** *optional* The path to the folder in which you want to create the document.
* **name** *optional* The name for the document.
* **text** *optional* The content for the document. If not specified, the content of the clipboard will be used.

Thanks for the tip on the url - much better. Now if only the ability to create the doc in another location was there. :frowning:

To that question, the Dropbox solution is good. I already had to make that compromise for a different work flow to use google drive - and now have to deal with sync issues between drive and iCloud. Adding Dropbox seems mind numbing.

I use shortcuts now to take care of all the different forms of notes, and also have them log their creation automatically in the daily notes.

On the PC side, thus far I have left it as mostly manual and not be too rigid in making sure the same template is strictly followed. In the instance of the daily, honestly, thus far I always use and iPhone and iPad to start the day, so hasn’t been an issue.

Basically I’ve found that all my creative, dynamic and quick joy interactions have been on mobile devices - in which case the automatic logging and shortcuts work great.

For dedicated higher level thinking (I call it ZettelTime :slight_smile: I use obsidian, and in this case it’s all about fleshing, linking and tagging. For that I don’t need the automation, beyond writing a python script or two (Which I’m hoping one day I will be able to launch from inside obsidian via an action link - just haven’t figured out how to make that work just yet.)

Thanks Rishi for your feedback - it’s fun to see how similar our setups are.

2 Likes

Sounds great! It is surprising how some of the automation is so much simpler on iOS devices vs PC/Macs.

I’m guessing the reason you’re not using iCloud for your vault is because of being on a PC? I just want to clarify, if not for you then for others, that 1Writer’s URL scheme does have a path parameter to create a note in any location, as long as that location is inside 1Writer’s iCloud folder.

I have another old shortcut which creates a movie journal log (formatted as a table) which I used with Day One and later modified it for Obsidian. I used another method to get those notes in my Films folder in the vault. Since Shortcuts cannot write to files outside of the Shortcuts folder in iCloud, I created a folder called Films for Obsidian in there and setup a folder action on the Mac to move any file found here to the Films folder in Obsidian vault. I certainly wouldn’t depend on something like this to sync the entire vault but for a few notes like this it works quite well and almost instantly.

Now, after seeing your workflow, I think it’s time for me to update it perhaps to directly save it to the Obsidian vault since it resides in 1Writer now.

Thanks for sharing your workflow! If you don’t mind, would you share your shortcut (removing any personal details) for the daily note? It seems like it replicates almost all of Day One’s functionality. Perhaps create a separate thread so it’s more noticeable for everyone.

1 Like

I keep getting an error that it can’t find the folder

/Dropbox

I don’t have the slash in the configuration. So not sure why it is failing for me, maybe something with my Dropbox setup? (Which is standard)’

I also have an underscore in my Vault name, maybe that?

It’s hard to guess without more info, sorry. When you first install the shortcut, does it ask you the two import questions? Those are all you should need to modify in order to set up the shortcut—you shouldn’t edit anything in the shortcut itself!

FWIW, I’ve been struggling with using 1Writer as my Obsidian iPadOS app (until their app is released). For me, the easy part, in this work around is that I do not use 1Writer for anything else. It was easy to create a sub folder in the iPadOS iCloud 1Writer sandboxed “root’ folder. It was also easy to point Obsidian to that sub folder. The problem for me became trying to have the Shortcut app use the 1Writer URL Scheme to access anything OTHER than the Root folder when trying to create a new file (Zettel). I finally accomplished it by setting up the Obsidian sub-folder as the Default folder in the General section of the 1Writer Settings screen (below). From there I didn’t need to use the URL “path” instructions and my Shortcut worked. YMMV!

2 Likes

How can I change the file name from YYYY-MM-DD.md to YYYYMMDD.md?

My scripting skills are weak…

Which file name? New daily notes in Obsidian? See Preferences → Plugins → Daily Note and remove the dashes in the template note title there.

The Template in Obisdian is set to be without dashes. The Shortcut script creates md files with dashes, which is what I’m trying to change.

Oh! Each Date field comes with its own settings. Tap that field (you’ll find three: one in each for Yesterday, Today, and Tomorrow) and edit the Date format option there.

Each date field you need to change looks like this:

Custom->yyyyMMdd should work, I think, but I haven’t tried it.

Thanks! That worked!

I’m getting the error “Could not run Open URLs - This action is not currently available.” when I try to run the shortcut. Any idea why this is happening?

I set it up using iCloud. My daily notes folder is located here: iCloud Drive > 1Writer > Obsidian > Daily. I put the path as Obsidian/Daily.

hmm. Been a while since I used the workflow, and I have never used it with iCloud, so I might be of limited help… mind screenshotting the first part of the shortcut and sharing it here?

I didn’t change anything and it’s suddenly working. Always weird when that happens. Here’s a screenshot in case it’s helpful to anyone else.

1 Like

Computer weather! Thanks for reporting back.