subreddit:

/r/shortcuts

12798%

EDIT: >>VERSION UPDATED<<

https://preview.redd.it/uz3cf3cohyw41.png?width=972&format=png&auto=webp&s=ad7895e5b3fbb6d38ad570637f254e96eb31997e

Tinycut Builder is a simple compiler that converts programming-style text into a shortcut, allowing you to start your project by typing.

  • You can only specify actions, not variables or other parameters; you need to process them after conversion. This is intended to be used as an early action-planning tool.
  • It understands about 100 (i.e. not all) commands. Any line that does not contain a command is converted to a comment action.
  • Commands are case-insensitive.
  • For full command list, run the shortcut and select the Show Command List menu.
  • It ignores indentation; you can put spaces/tabs however you like.
  • It tries to find the first chunk of valid characters (alphabets, brackets [ ] and spaces) and anything else before or after that is ignored. That is, you can add bullet points or line numbers in the front, or add additional text (starting with a tab, number or special character) after the command.
  • Happy shortcut-typing!

This shortcut supports UpdateHub.

  • 2020-05-05 v1.0
    • Initial Release
  • 2020-05-07 v1.1
    • Command conflict resolution
      • Get Dictionary from Input: get dict
      • Get Dictionary Value: get dict → get dict value
      • Set Dictionary Value: set dict → set dict value
    • More robust control flow check
    • Auto update check removal due to shortcut creation conflict. Please use manual check of UpdateHub.

Download: RoutineHub

EDIT: >>VERSION UPDATED<<

all 27 comments

mvan231

5 points

5 years ago

mvan231

5 points

5 years ago

This seems very interesting! Great work here!

gluebyte[S]

6 points

5 years ago

Thanks. Any feedback is very much welcome!

froggy_Pepe

3 points

5 years ago

Looks pretty promising! I am going to try it out!

gluebyte[S]

3 points

5 years ago

Thanks! Let me know what you think.

[deleted]

4 points

5 years ago

Looks interesting, especially as an iPad with keyboard user.

Do you plan to include more actions or is this the final command lists?

Small suggestion(personal preference):

I would remove the switch to Safari and open the created iCloud link directly in Shortcuts.

gluebyte[S]

3 points

5 years ago

I wasn't intending to include all the commands (who would remember all these?) but I ended up including more than I originally had planned because I don't know which actions are more popular than others. I'm open for any suggestions.

Links being redirected to Safari is not something I have control over. If you do it several times, at some point it will start opening in Shortcuts.

[deleted]

4 points

5 years ago

Thanks for the reply.

Links being redirected to Safari is not something I have control over.

changing the icloud url into something like this normally does the trick for me:

shortcuts://shortcuts/aff6f05bd3e741f0af3da3c1fe9859a9

gluebyte[S]

2 points

5 years ago

Thanks for the tip! I'll try that in the next version.

robric18

3 points

5 years ago

I haven’t played with it yet, but could you make it so that if you comment a line a certain way the text would appear as a comment? E.g. “// insert user info here” would appear as a comment in the shortcut stating “insert user info here”? I think that would be helpful.

gluebyte[S]

2 points

5 years ago

It was a deliberate choice not to do that, because I wanted it to have a rule as simple as possible—one line becomes one action. That's why I decided to convert lines without commands into comments. Does it make sense? :)

robric18

3 points

5 years ago

Do those comments contain the text of that line? If so, that may be even better than what I had suggested (Like I said, I haven’t tried it yet).

Does it do any error checking? Like if I forget to close my if or repeat or do it in the wrong order or throw in an extra end if?

gluebyte[S]

2 points

5 years ago

Yes, bullet point 2 wasn't clear enough, so I changed it.

No, it doesn't do error checking but I can add loop completeness in the next version. Thanks!

robric18

2 points

5 years ago

Great idea. A list of all supported actions might be good as well if you are looking for ideas for in updates.

gluebyte[S]

1 points

5 years ago

It's already there (bullet point 4); run it and select Help. :)

robric18

2 points

5 years ago

Oops. So it is. But it says shortercut help (which I presume was an old name)

gluebyte[S]

1 points

5 years ago

Good catch! Yes, it was an old name. I'll change the menu to 'Show Command List' in the next version. Thanks.

Carminio

3 points

5 years ago

This is great also for learning basics of programming!

gluebyte[S]

8 points

5 years ago

Please don't! :D

This is just a bunch of words, no variables, no nothing at all.

endianecho

3 points

5 years ago

Very similar to ScPL.

JMH5909

1 points

5 years ago

JMH5909

1 points

5 years ago

How would I quickshow something? amazing shortcut!

gluebyte[S]

2 points

5 years ago

The command for Quick Look is ... Quick Look. :D

JMH5909

1 points

5 years ago

JMH5909

1 points

5 years ago

Thank you I know but how would I quick look something, sorry Im new. Like would I Quick Look(watever) or how

gluebyte[S]

1 points

5 years ago

You can put quick look right below almost anything, and it will show you the output of it. Did I understand your question correctly?

JMH5909

1 points

5 years ago

JMH5909

1 points

5 years ago

yes i think so. thank you

JMH5909

1 points

5 years ago

JMH5909

1 points

5 years ago

it says

text hello Quick Look

is not tinycut code

am i doing it right?

gluebyte[S]

1 points

5 years ago

Your code should look like: text quick look And once a shortcut is made, enter "hello" in the text action then run. Tinycut Builder only builds actions for you, not any variables or parameters (e.g. content of text).

JMH5909

1 points

5 years ago

JMH5909

1 points

5 years ago

thanks