I currently try to build an Automation where for each Project I have in OmniFocus,
will get a Folder in my File system containing in Index File.
Everything works well if I have just one project, but as soon I have more than on Project in OmniFocus, the loop I use is just running once, but now having both project Names in “one” string.
Has someone an Idea what I’m doing wrong? Is my first Shortcut :)
For an english speaking forum, you can change the Apple Shortcuts language to English US (see device settings). This helps others to understand the shortcut screenshot you share more easily.
I should be able to help. Have some experience with file management, OF and Apple Shortcuts.
Could you share me the Apple Shortcut? Long press the tile of the shortcut. In the contextual menu press Share (Teilen) and then „iCloud-Link kopieren“. This creates a URL that you can give someone else to get a copy of the shortcut. The URL is not linked to anything of your specific user.
Regarding your shortcut:
I understand it should search for certain projects and then create a index.md markdown file in each folder.
Just by looking at it I don‘t see why the loop just runs once. But I think you need to save the file with a „Datei sichern“. To really test it I would need to test it myself.
Thank you very much for your Feedback.
I thought about the Language in the Screenshot and If I should even add it.
My Idea was that at least the icons would help those, which are experienced with Shortcut. But you are of course right. But what I can’t do, is change the Language of my Mac just for a Screenshot, that would need a reboot. So I don’t know how to solve that.
The Problem is on a Mac, and the Loop does just one iteration over the results from the Project search. So instead of itter1: “Project 1”, itter2: “Project 2” it seems the Project search Returns itter1: “Project 1 Project 2” therefore the loop creates one Folder “Project 1 Project 2” and places the file in.
I was hoping using Shortcuts would not force me again to build a JavaScript-based Plugin like I needed to do to connect to Jira. I personally not really like JS.
the language of Apple Shortcuts can be changed independently from the OS setting. It should be a property of the app.
Idependent of that, I think I found the issue. To access each project within the repeat for each you have to use the loops Repeat Item variable and there switch within the type Project to Title (I think Title and Name contain the same value). You have to consider the same for the Text and File activity.
In your screenshot, you access the whole list over which you are iterating.