scpl icon indicating copy to clipboard operation
scpl copied to clipboard

Shortcuts 3.0

Open pfgithub opened this issue 6 years ago • 2 comments
trafficstars

Shortcuts 3.0 support will not be worked on until iOS allows shortcuts to be imported from .shortcut files. Until then, it is not known if it ever will and development cannot be tested.

Major Changes in Shortcuts 3.0:


Some actions, such as the CombineText action have been moved to separate files that includes all their information such as Name and Parameters (Presumably an intent declaration file but I haven't found it yet). Add support for loading action data from these files


Commonly used actions such as if now have their own custom parameter types and show different things based on the type of arguments passed into them. ScPL will now need to keep track of variable types at all times and use aggrandizements to make sure they always have as: set as ScPL assumes they do. (iOS might track variable as: differently). ScPL will also need significantly more information about types and have argument classes like for if with lots of different enum values based on other values.


Shortcuts now uses a natural language format for actions. ScPL could support this format. For example: Set variable (name) to (value). This might not be possible because of conflicts or might be a bad idea because you would constantly need to look up documentation.


Things that need to be changed in ScPL:


Change inputarg (^) to set the WFInput parameter instead of setting the action above.

For example:

in 2.2 that makes Text "hi" SetVariable v:myvar
in 3.0 it should make Text "hi" -> mv:var SetVariable input=mv:var value=v:myvar

Default actions that accept WFInput but don't have an inputarg parameter to use the action above them.

For example:

In 2.2, Text "hi"; SetVariable v works In 3.0, it must be Text "hi" -> mv:var; SetVariable mv:var v

So, if an action does not have its WFInput defined, set it to the action above it.


Remove WFExpandingParameter, what's the point of it

pfgithub avatar Jun 06 '19 04:06 pfgithub

You can download the .shortcut file, upload it to icloud drive, then go on your phone and get the shareable icloud link. Although this only solves one problem and is cumbersome.

unbeatable-101 avatar Oct 25 '20 18:10 unbeatable-101

@unbeatable-101 editor.scpl.dev links this shortcut you can scan qr codes with to import from a qr code automatically

pfgithub avatar Oct 25 '20 20:10 pfgithub