Login About Gallery
PluralKit Switch
COMMENT
‎This shortcut was made by Annie of The Apple System (@theaaplfreak on Twitter). If you like this, please consider supporting us at https://ko-fi.com/theapplefreak! Thanks!
COMMENT
‎FILL THESE IN IF YOU'RE USING AN APPLE WATCH BEGIN Apple Watch Setup
SCRIPTING
‎Get the ‎Device Is Watch
SCRIPTING
‎If ‎Device Is Watch ‎is ‎<value>
COMMENT
‎PluralKit token You can get this by running pk;token in any Discord server with PluralKit.
TEXT
‎Text
VARIABLES
‎Set variable ‎TOKEN ‎to ‎Text
COMMENT
‎Sort mode This will change the order of members in the sort screen. Valid options are (CASE SENSITIVE) nameAsc - alphabetical sort, A to Z nameDesc - alphabetical sort, Z to A registeredAsc - oldest to newest registeredDesc - newest to oldest totalFront - most front time to least lastFront - whoever fronted most recently, alphabetical sort after
TEXT
‎nameAsc
VARIABLES
‎Set variable ‎PREF_SORT ‎to ‎Text
COMMENT
‎Show the current fronters at the switch select screen This can slow down switch menu selection a little, depending on the number of fronters. It will also take up more screen space. Valid options are (case insensitive) yes / true / 1 (default) no / false / 0
TEXT
‎yes
VARIABLES
‎Set variable ‎PREF_SHOW_CURRENT_FRONTERS ‎to ‎Text
COMMENT
‎Show member avatars in the member select screens. Depending on the size of your system, this can make load times a LOT worse and can potentially cause the shortcut to stop if the watch runs out of memory. Not recommended. Valid options are (case insensitive) yes / true / 1 no / false / 0 (default)
TEXT
‎no
VARIABLES
‎Set variable ‎PREF_SHOW_AVATARS ‎to ‎Text
SCRIPTING
‎End If
COMMENT
‎Apple Watch Setup END
COMMENT
‎Set up constants and such
DICTIONARY
VARIABLES
‎Set variable ‎ROUTINEHUB_INFO ‎to ‎Dictionary
DICTIONARY
VARIABLES
‎Set variable ‎TRUE ‎to ‎true
VARIABLES
‎Set variable ‎FALSE ‎to ‎false
TEXT
‎/PluralKit Switch
VARIABLES
‎Set variable ‎DATA_DIR ‎to ‎Text
TEXT
‎https://api.pluralkit.me/v2
VARIABLES
‎Set variable ‎PK_API ‎to ‎Text
COMMENT
‎Configure default intent/arguments
SCRIPTING
‎If ‎TRUE ‎is ‎<value>
SCRIPTING
‎Get the ‎Device Is Watch
SCRIPTING
‎If ‎Device Is Watch ‎is ‎<value>
TEXT
‎SELECT_SWITCH_MEMBERS
SCRIPTING
‎Otherwise
TEXT
‎MAIN_MENU
SCRIPTING
‎End If
VARIABLES
‎Set variable ‎INTENT ‎to ‎If Result
DICTIONARY
VARIABLES
‎Set variable ‎INTENT_ARGUMENTS ‎to ‎Dictionary
SCRIPTING
‎End If
COMMENT
‎Determine the intent
SCRIPTING
‎If ‎TRUE ‎is ‎<value>
SCRIPTING
‎Get type of ‎Shortcut Input
COMMENT
‎If the type is text, we can assume the user wishes to perform a switch, in which case it should be interpreted as a comma separated list of member IDs to register as switching in.
SCRIPTING
‎If ‎Type ‎is ‎Text
TEXT
‎REGISTER_SWITCH
VARIABLES
‎Set variable ‎INTENT ‎to ‎Text
TEXT
‎Split ‎Shortcut Input ‎by ‎Custom ‎,
SCRIPTING
‎Repeat with each item in ‎Split Text
DOCUMENTS
‎Replace ‎with ‎World ‎in ‎Repeat Item
Case Sensitive
Regular Expression
SCRIPTING
‎End Repeat
DICTIONARY
SCRIPTING
‎Set ‎members ‎to ‎Repeat Results ‎in ‎Dictionary
VARIABLES
‎Set variable ‎INTENT_ARGUMENTS ‎to ‎Dictionary
SCRIPTING
‎Otherwise
SCRIPTING
‎If ‎Type ‎is ‎Dictionary
SCRIPTING
‎Get ‎Value ‎for ‎INTENT ‎in ‎Shortcut Input
SCRIPTING
‎Get the ‎Device Is Watch
SCRIPTING
‎If ‎Device Is Watch ‎is ‎<value>
LIST
SCRIPTING
‎Otherwise
LIST
SCRIPTING
‎End If
SCRIPTING
‎If ‎If Result ‎contains ‎Dictionary Value
VARIABLES
‎Set variable ‎INTENT ‎to ‎Dictionary Value
SCRIPTING
‎Get ‎Value ‎for ‎ARGUMENTS ‎in ‎Shortcut Input
VARIABLES
‎Set variable ‎INTENT_ARGUMENTS ‎to ‎Dictionary Value
SCRIPTING
‎Otherwise
SCRIPTING
‎Get the ‎Device Is Watch
SCRIPTING
‎If ‎Device Is Watch ‎is ‎<value>
TEXT
‎SELECT_SWITCH_MEMBERS
SCRIPTING
‎Otherwise
TEXT
‎MAIN_MENU
SCRIPTING
‎End If
VARIABLES
‎Set variable ‎INTENT ‎to ‎If Result
DICTIONARY
VARIABLES
‎Set variable ‎INTENT_ARGUMENTS ‎to ‎Dictionary
SCRIPTING
‎End If
SCRIPTING
‎Otherwise
SCRIPTING
‎Get the ‎Device Is Watch
SCRIPTING
‎If ‎Device Is Watch ‎is ‎<value>
TEXT
‎SELECT_SWITCH_MEMBERS
SCRIPTING
‎Otherwise
TEXT
‎MAIN_MENU
SCRIPTING
‎End If
VARIABLES
‎Set variable ‎INTENT ‎to ‎If Result
DICTIONARY
VARIABLES
‎Set variable ‎INTENT_ARGUMENTS ‎to ‎Dictionary
SCRIPTING
‎End If
SCRIPTING
‎End If
SCRIPTING
‎End If
COMMENT
‎RESET_TOKEN Clear the stored user token. Will set the intent to the default afterwards.
SCRIPTING
‎If ‎INTENT ‎is ‎RESET_TOKEN
DOCUMENTS
‎Get File
Service
‎iCloud Drive
Show Document Picker
Select Multiple
DOCUMENTS
‎Delete ‎File
Confirm Before Deleting
TEXT
‎MAIN_MENU
VARIABLES
‎Set variable ‎INTENT ‎to ‎Text
DICTIONARY
VARIABLES
‎Set variable ‎INTENT_ARGUMENTS ‎to ‎Dictionary
SCRIPTING
‎End If

Showcuts

Magic Vars

Screenshot

Submitted Anonymously over a year ago

Visit iCloud (iOS)

Copy iCloud Link

Scan QR Code

0

1081 more actions