joshfarrant/shortcuts-js

All Actions to be implemented

joshfarrant opened this issue ยท 25 comments

This is an up-to-date list of all actions Shortcuts JS will eventually implement. Actions which have already been implemented will be ticked off as they are added.

For the moment, the list includes all Actions in the 'Scripting' list and 'Content Types' section from the Shortcuts app. There are a few Actions from 3rd party apps in those sections, so they have been included here too. Any requests for additional 3rd party app Actions which aren't on this list should be added as new issues, rather than as comments on this issue.

If you'd like to help out, then feel free to grab any Action from this list and implement it! Have a look at the Contributing Guide for more info on how to add a new Action.

If I've missed anything, please let me know! ๐Ÿ™‚

Actions

Scripting

  • Comment
  • Show Result

Content

  • Count
  • Get Name
  • Get Type
  • Nothing
  • Set Name
  • View Content Graph

Control Flow

  • Choose from Menu
  • Continue Shortcut in App
  • Exit Shortcut
  • If
  • Repeat
  • Repeat with Each
  • Wait
  • Wait to Return - ๐Ÿ’™ @Archez

Device

  • Get Battery Level
  • Get Current IP Address - ๐Ÿ’™ @bachya
  • Get Device Details - ๐Ÿ’™ @bachya
  • Get Network Details - ๐Ÿ’™ @bachya
  • Set Airplane Mode - ๐Ÿ’™ @pietropizzi
  • Set Bluetooth - ๐Ÿ’™ @JB1905
  • Set Brightness
  • Set Cellular Data - ๐Ÿ’™ @JB1905
  • Set Do Not Disturb - ๐Ÿ’™ @bachya
  • Set Torch
  • Set Low Power Mode
  • Set Volume ๐Ÿ’™ @ikaikastine
  • Set Wi-Fi - ๐Ÿ’™ @JB1905

Dictionaries

  • Dictionary
  • Get Dictionary from Input - ๐Ÿ’™ @gcordalis
  • Get Dictionary Value
  • Set Dictionary Value - ๐Ÿ’™ @gcordalis

Files

Lists

  • Choose from List
  • Get Item from List
  • List

Maths

  • Calculate
  • Calculate Statistics - ๐Ÿ’™ @bachya
  • Convert Measurement
  • Format Number
  • Measurement
  • Number
  • Random Number - ๐Ÿ’™ @bachya
  • Round Number

Notification

Run Script Over SSH

  • Run Script Over SSH - ๐Ÿ’™ @Archez

Shortcuts

  • Get My Shortcuts - ๐Ÿ’™ @JB1905
  • Run Shortcut

Variables

  • Add to Variable - ๐Ÿ’™ @Archez
  • Get Variable - ๐Ÿ’™ @Archez
  • Set Variable

X-Callback

  • Open X-Callback URL
  • URL Encode - ๐Ÿ’™ @gcordalis

Editorial

  • Run Editorial Workflow

Pythonista

  • Edit Script (Pythonista) - ๐Ÿ’™ @bachya
  • Run Script (Pythonista) - ๐Ÿ’™ @bachya

Tally

  • Get Tally (Tally)
  • Update Tally (Tally)

Content Types

Apps

App Store

  • Get Details of App Store App
  • Search App Store

Calendar

Calendar

  • Add New Event
  • Filter Event Attendees
  • Find Calendar Events
  • Get Details of Calendar Events
  • Get Details of Event Attendees
  • Get Upcoming Events
  • Remove Events
  • Show in Calendar - ๐Ÿ’™ @gcordalis

Clock

  • Create Alarm - ๐Ÿ’™ @jakebathman
  • Start Timer
  • Toggle Alarm

Dates

Reminders

  • Add New Reminder
  • Find Reminders
  • Get Details of Reminders
  • Get Upcoming Reminders
  • Remove Reminders - ๐Ÿ’™ @gcordalis

Fantastical

  • Add Event via Fantastical
  • Add Reminder via Fantastical
  • Show in Fantastical

Contacts

Contacts

  • Contacts
  • Find Contacts
  • Get Contacts from Input - ๐Ÿ’™ @gcordalis
  • Get Details of Contacts
  • Select Contact

Mail

  • Email Address
  • Get Email Addresses from Input - ๐Ÿ’™ @gcordalis
  • Select Email Address - ๐Ÿ’™ @gcordalis

Payments

  • Request Payment
  • Send Payment

Phone

  • Call
  • FaceTime
  • Get Phone Numbers from Input - ๐Ÿ’™ @gcordalis
  • Phone Number
  • Select Phone Number - ๐Ÿ’™ @gcordalis

Skype

  • Call via Skype

Documents

Archives

Books

  • Open in Books - ๐Ÿ’™ @JB1905

Editing

File Storage

  • Append to File
  • Create Folder
  • Delete Files
  • Get File
  • Get Link to File - ๐Ÿ’™ @gcordalis
  • Save File

Files

  • Filter Files
  • Format File Size
  • Get Details of Files
  • Open In...

Previewing

Printing

  • Make PDF
  • Print - ๐Ÿ’™ @JB1905

Bear

  • Add to Bear Note
  • Create Bear Note
  • Create Bear Note from URL
  • Get Contents of Bear Note
  • Open Bear Note
  • Search in Bear

Drafts

  • Add to Draft
  • Get Contents of Draft
  • Open Draft
  • Run Drafts Action

Evernote

  • Append to Note
  • Create New Note
  • Delete Notes
  • Get Note Link
  • Get Notes

GoodReader

  • Open in GoodReader

Ulysses

  • Add to Ulysses Sheet
  • Attach to Ulysses Sheet
  • Get Details of Ulysses Sheet
  • Get Ulysses Sheet
  • New Ulysses Group
  • New Ulysses Sheet
  • Open Ulysses

Health

Health

  • Find Health Samples
  • Get Details of Health Sample
  • Log Health Sample
  • Log Workout

Home

Home

  • Run Home Scene

Location

  • Filter Locations
  • Get Current Location
  • Get Details of Locations

Maps

  • Get Addresses from Input - ๐Ÿ’™ @gcordalis
  • Get Distance
  • Get Halfway Point
  • Get Maps URL - ๐Ÿ’™ @JB1905
  • Get Travel Time
  • Search Local Businesses
  • Show Directions
  • Show in Maps - ๐Ÿ’™ @JB1905
  • Street Address

Weather

  • Get Current Weather
  • Get Details of Weather Conditions
  • Get Weather Forecast

BlindSquare

  • Show in BlindSquare

Music

iTunes Store

  • Get Details of iTunes Artist
  • Get Details of iTunes Product
  • Search iTunes Store
  • Show in iTunes Store - ๐Ÿ’™ @gcordalis

Music

  • Add to Playlist
  • Add to Up Next
  • Clear Up Next - ๐Ÿ’™ @gcordalis
  • Clear Playlist
  • Find Music
  • Get Current Song - ๐Ÿ’™ @gcordalis
  • Get Details of Music
  • Get Playlist
  • Play Music
  • Select Music

Playback

Photos & Video

Audio

  • Record Audio

Camera

  • Take Photo
  • Take Video

Editing

  • Combine Images
  • Crop Image
  • Flip Image
  • Markup - ๐Ÿ’™ @JB1905
  • Mask Image
  • Overlay Image
  • Resize Image
  • Rotate Image

GIFs

  • Add Frame to GIF
  • Get Frames from Image - ๐Ÿ’™ @gcordalis
  • Make GIF
  • Make Video from GIF

Images

  • Convert Image
  • Filter Images
  • Get Details of Images
  • Get Images from Input - ๐Ÿ’™ @gcordalis

Photos

  • Delete Photos - ๐Ÿ’™ @gcordalis
  • Find Photos
  • Get Last Import - ๐Ÿ’™ @gcordalis
  • Get Latest Bursts - ๐Ÿ’™ @gcordalis
  • Get Latest Live Photos - ๐Ÿ’™ @gcordalis
  • Get Latest Photos
  • Get Latest Screenshots - ๐Ÿ’™ @gcordalis
  • Get Latest Videos - ๐Ÿ’™ @gcordalis
  • Save to Photo Album
  • Select Photos

Video

Imgur

  • Upload to Imgur

Lightroom

  • Import to Lightroom

Sharing

Clipboard

  • Copy to Clipboard
  • Get Clipboard - ๐Ÿ’™ @gcordalis

Mail

  • Send Email

Messaging

  • Send Message

Notes

Photos

  • Post to Shared Album

System

Facebook

  • Post on Facebook - ๐Ÿ’™ @JB1905

Instagram

  • Post on Instagram - ๐Ÿ’™ @JB1905

Tumblr

  • Post to Tumblr - ๐Ÿ’™ @JB1905

Tweetbot

  • Open Tweetbot
  • Search Text
  • Tweet
  • View Profile in Tweetbot

Twitter

WhatsApp

  • Send Message via WhatsApp
  • Send Photo via WhatsApp

WordPress

  • Post to WordPress - ๐Ÿ’™ @JB1905

Text

  • Detect Language with Microsoft - ๐Ÿ’™ @gcordalis
  • Dictate Text
  • Generate QR Code
  • Get Name of Emoji - ๐Ÿ’™ @gcordalis
  • Get Text from Input - ๐Ÿ’™ @gcordalis
  • Scan QR/Barcode - ๐Ÿ’™ @gcordalis
  • Show Definition - ๐Ÿ’™ @gcordalis
  • Speak Text
  • Text
  • Translate Text with Microsoft

Rich Text

  • Make HTML from Rich Text
  • Make Markdown from Rich Text - ๐Ÿ’™ @gcordalis
  • Make Rich Text from HTML - ๐Ÿ’™ @gcordalis
  • Make Rich Text from Markdown - ๐Ÿ’™ @gcordalis

Text Editing

  • Change Case
  • Combine Text
  • Correct Spelling - ๐Ÿ’™ @gcordalis
  • Get Group from Matched Text
  • Match Text - ๐Ÿ’™ @gcordalis
  • Replace Text
  • Split Text

2Do

  • Add 2Do Task

Captio

  • Append to Note
  • Send Note

Clear

  • Add Clear List
  • Add Clear Task

Day One

  • Create Day One Entry

Due

  • Add Due Reminder

iTranslate

  • Show in iTranslate

OmniFocus

  • Add OmniFocus Item
  • Add TaskPaper to OmniFocus

The Hit List

  • Add Task to The Hit List

Things

  • Add Things To-Do

Todoist

  • Add Todoist Item

Trello

  • Add Trello Card
  • Create Trello Board
  • Create Trello List
  • Get Details of Trello Item
  • Get Trello Items

Wunderlist

  • Add Wunderlist Task

Web

Articles

  • Filter Articles
  • Get Details of Diffbot Article
  • Get Diffbot Article from Web Page - ๐Ÿ’™ @gcordalis

Giphy

  • Search Giphy

Safari

  • Add to Reading List - ๐Ÿ’™ @gcordalis
  • Get Contents of Web Page - ๐Ÿ’™ @gcordalis
  • Get Details of Safari Web Page
  • Open URLs - ๐Ÿ’™ @gcordalis
  • Run JavaScript on Web Page - ๐Ÿ’™ @gcordalis
  • Search Web
  • Show Web Page

URLs

  • Expand URL - ๐Ÿ’™ @gcordalis
  • Get Component of URL
  • Get Contents of URL
  • Get Headers of URL - ๐Ÿ’™ @gcordalis
  • Get Items from RSS Feed
  • Get RSS Feeds from Page
  • Get URLs from Input - ๐Ÿ’™ @gcordalis
  • URL

Associate

  • Convert URL with Associate
  • Search in Associate

Blink

  • Convert URL with Blink
  • Search in Blink

Chrome

  • Open URLs in Chrome - ๐Ÿ’™ @JB1905

CloudApp

  • Upload to CloudApp

Instapaper

  • Add to Instapaper
  • Get Instapaper Bookmarks

Opener

  • Open URL in Opener

Overcast

  • Add to Overcast

Pinboard

  • Add to Pinboard
  • Get Pinboard Bookmarks

Pocket

  • Add to Pocket
  • Get Items from Pocket
  • Set Mobile Data - ๐Ÿ’™ @JB1905

@joshfarrant, just a small update: in Actions > Device, "Set Mobile Data" should be "Set Cellular Data" now ๐Ÿ™‚ (#24)

@xAlien95 ๐Ÿค˜

With the update to 2.1.2 today there is a new action to add to the list!
Post to Tumblr

30% of the way there! ๐ŸŽ‰

  • Date
  • Format Date

@joshfarrant, Date and Format Date actions have been added in #47 ๐Ÿ™‚

@xAlien95 I just noticed that there was a discrepancy in counts and was cursing myself for making a mistake somewhere. Thanks for spotting it and saving me having to check them one-by-one! ๐Ÿ’™

Some minor errors I've found while working on the documentation:

  • "Scripting" > "Choose From Menu" section should be named "Control Flow"
  • "Scripting" > "Device" > "Set Value" action should be named "Set Volume"
  • There's an "a" missing in "Apps" > "App Store" > "Get Detils of App Store App"
  • "Photos & Video" > "Editing" > "Markup" has already been implemented by @JB1905, that action is repeated twice in the "Actions" and "Content Types" sections.

I don't seem to find the "Photos & Video" > "Lightroom" > "Import to Lightroom" action. I also tried setting the language to English-US and downloading Adobe Lightroom CC, but that action didn't pop up.

Thanks! Iโ€™ll fix these tomorrow ๐Ÿ‘

  • Set Volue

@joshfarrant, "Set Volume" ๐Ÿ‘

๐Ÿคฆโ€โ™‚๏ธ๐Ÿคฆโ€โ™‚๏ธ๐Ÿคฆโ€โ™‚๏ธ

"Set volume" is duplicated (is visible as Device and Playback action) and it has already been implemented by @ikaikastine.

  • "Calendar" > "Clock" > "Create Alarm" has been implemented by @jakebathman in #55
  • there's a misspelling in "Sharing" > "WhatsApp" > "Send Mesage via WhatsApp"
  • "Photos & Video" > "Lightroom" > "Import to Lightroom" is available again, it should be added to the list

Sorted!

@joshfarrant, there's probably an extra space in "Import to Lightroom" since the checkmark markdown is off.
Then I think (hope) everything will be in place ๐Ÿ˜

@joshfarrant Thanks for this. Any idea when send SMS will be available. That would help me a lot. Thanks again.
Love and peace,
Joe

@joshfarrant the Contributing Guide link on this issue points to an old location.

Good spot, thanks @rowellx68 - fixed now ๐Ÿ‘

@JoeCodeswell I'll take a look at that for you, no guarantee on timeframe but it'll be the next thing I do

Waiting for repeat with each action ๐Ÿ˜„

I am thinking those definitions can be auto generated, anyone tried that before? Otherwise I will try to jump into it.

@bluesign I'm not sure if it's been looked into before, but if it's possible it would be a big help. If you want to take a look then please do feel free, and let me know if I can help at all.

@joshfarrant, I finished the first part with dumping possible actions, I am using iOS 13, so there are total 335 actions there, with 83 different parameter types.

Also there are some constraints on values to provide (WFCommentActionText cannot accept user input or variable for example) or like some functions are available only iPad etc.

I think it is totally possible to generate js class files from this functions.

I am attaching the dump. When I have some free time, I will try to generate

PS: some actions can be missing, as I dumped from the simulator.

sc.txt

@bluesign It's been a while, but is there any chance you could give me a quick rundown of how you pulled that data from the simulator? I'd be interested in grabbing the latest data and seeing if I can generate some code from it.

@joshfarrant, you can get the WFActions.plist following @pfgithub's guide at here.

I will implement Replace Text Action. Please mark it.