2

I can program in Swift, but Apple's Shortcuts app has consistently proven confusing and almost incomprehensible to me.

I'm trying to use the Choose from List action to display text items that have a customized display name, and where the actual text content is shown as a subtitle. Like this:

enter image description here

This is accomplished like so:

enter image description here

The problem occurs when I have a name that includes a dot, like Name.mkv, because apparently my text item is now an MKV file and will have a duration instead of a subtitle:

enter image description here

enter image description here

I then look up what extension a Text item has, determine it's txt, and add that to the name:

enter image description here

Now it displays the correct name again, but the subtitle is still missing:

enter image description here

Also, enabling this option...

enter image description here

...seems to make no difference, despite its description explicitly stating:

Turn this on if you want to create a file with no extension.

I just want it to show up the normal way with "Text Name.mkv" as title and "Text Content" as subtitle.

At this point I conclude that I once again don't understand Shortcuts, and have probably misunderstood something at a fundamental level. It took me long enough just to figure out that the Name field is actually a filename and file extension field and not just a name field, let alone that I'm creating files as opposed to values.

I'm on iOS 16.

1 Answer 1

3

Add a blank space after the filename extension.

enter image description here

2
  • 1
    Uh... yes, that works ๐Ÿ˜ฒ How did you figure that out? Did you already know, or just a fresh perspective? Of course there's significant whitespace in Shortcuts! Commented Nov 1 at 18:19
  • 1
    It was just a guess. I tried it, and it worked. Commented Nov 1 at 18:43

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.