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
End If
COMMENT
Apple Watch Setup END
COMMENT
Set up constants and such
DICTIONARY
<inline variable>
<inline variable>
<inline variable>
<inline variable>
VARIABLES
Set variable
ROUTINEHUB_INFO
to
Dictionary
DICTIONARY
<inline variable>
True
<inline variable>
False
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
Otherwise
TEXT
MAIN_MENU
End If
VARIABLES
Set variable
INTENT
to
If Result
DICTIONARY
VARIABLES
Set variable
INTENT_ARGUMENTS
to
Dictionary
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
End Repeat
DICTIONARY
SCRIPTING
Set
members
to
Repeat Results
in
Dictionary
VARIABLES
Set variable
INTENT_ARGUMENTS
to
Dictionary
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
GET_MEMBER_VCF
BUILD_MEMBER_VCF
SELECT_SWITCH_MEMBERS
REGISTER_SWITCH
GET_CURRENT_FRONTERS
CHECK_FOR_SHORTCUT_UPDATES
Otherwise
LIST
MAIN_MENU
SETTINGS_MENU
GET_MEMBER_VCF
BUILD_MEMBER_VCF
CLEAR_CACHE
SELECT_SWITCH_MEMBERS
REGISTER_SWITCH
HELP_VIEWER
MODIFY_SENSITIVE_NAMES
GET_CURRENT_FRONTERS
DETERMINE_IF_CACHE_OUTDATED
CHECK_FOR_SHORTCUT_UPDATES
End If
SCRIPTING
VARIABLES
Set variable
INTENT
to
Dictionary Value
SCRIPTING
Get
Value
for
ARGUMENTS
in
Shortcut Input
VARIABLES
Set variable
INTENT_ARGUMENTS
to
Dictionary Value
Otherwise
SCRIPTING
Get the
Device Is Watch
SCRIPTING
If
Device Is Watch
is
<value>
TEXT
SELECT_SWITCH_MEMBERS
Otherwise
TEXT
MAIN_MENU
End If
VARIABLES
Set variable
INTENT
to
If Result
DICTIONARY
VARIABLES
Set variable
INTENT_ARGUMENTS
to
Dictionary
End If
Otherwise
SCRIPTING
Get the
Device Is Watch
SCRIPTING
If
Device Is Watch
is
<value>
TEXT
SELECT_SWITCH_MEMBERS
Otherwise
TEXT
MAIN_MENU
End If
VARIABLES
Set variable
INTENT
to
If Result
DICTIONARY
VARIABLES
Set variable
INTENT_ARGUMENTS
to
Dictionary
End If
End If
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
End If

Showcuts

Magic Vars

Screenshot

Submitted Anonymously 10 months ago

Visit iCloud (iOS)

Copy iCloud Link

Scan QR Code

0

1081 more actions