Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shortcuts 3.0 #51

Open
pfgithub opened this issue Jun 6, 2019 · 2 comments
Open

Shortcuts 3.0 #51

pfgithub opened this issue Jun 6, 2019 · 2 comments

Comments

@pfgithub
Copy link
Owner

pfgithub commented Jun 6, 2019

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 pfgithub changed the title Things to change for scpl 3.0 support Shortcuts 3.0 Jun 26, 2019
@pfgithub pfgithub pinned this issue Jun 26, 2019
@unbeatable-101
Copy link

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.

@pfgithub
Copy link
Owner Author

pfgithub commented Oct 25, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants