Login About Gallery
Action Volume Toggle
COMMENT
Initial cleanup just for me. Remove this entire ‘Repeat’. You can replace this with variables you might want to import with Shortcut Inputs. I heavily recommend setting ‘knownFirstVolume’ by importing the Current Volume using Shortcut Inputs from the beginning of the very first shortcut that was called after you pressed the Action Button.
SCRIPTING
Repeat
Count
Under Construction
SCRIPTING
If
flashlightStatus
is
<value>
SCRIPTING
Turn torch
On
Under Construction
SCRIPTING
Exit shortcut with
Result
End If
SCRIPTING
Get dictionary from
Shortcut Input
SCRIPTING
Get
Value
for
knownFirstVolume
in
Dictionary
VARIABLES
Set variable
knownFirstVolume
to
knownFirstVolume
End Repeat
COMMENT
See comments below. Put actions you want to perform *directly* after the comments. (Remove my actions after the comments first if needed)
VARIABLES
Set variable
initVol
to
WFInput?
SCRIPTING
If
knownFirstVolume
has any value
VARIABLES
Set variable
initVol
to
knownFirstVolume
End If
Under Construction
MEDIA
Set volume to
clampedVol
SCRIPTING
Repeat
12 times
SCRIPTING
If
hasChangedVolume
has any value
MEDIA
Set volume to
initVol
SCRIPTING
Exit shortcut with
Result
Otherwise
VARIABLES
Set variable
newVol
to
WFInput?
calculateexpression Under Construction
Under Construction
SCRIPTING
If
volumeChange
is greater than
0.0001
VARIABLES
Set variable
hasChangedVolume
to
Boolean
COMMENT
Action Button -> Volume Up:
End If
SCRIPTING
If
volumeChange
is less than
-0.0001
VARIABLES
Set variable
hasChangedVolume
to
Boolean
COMMENT
Action Button -> Volume Down:
SCRIPTING
Open
com.youneedabudget.evergreen.YNAB-Evergreen
End If
End If
Under Construction
NOTHING
Nothing
End Repeat
COMMENT
Action Button:
SCRIPTING
If
hasChangedVolume
is
<value>
Otherwise
SHORTCUTS
Run
Focus State Toggle
Show While Running
End If
COMMENT
Cleanup
MEDIA
Set volume to
initVol

Showcuts

Magic Vars

Screenshot

Submitted Anonymously a month ago

Visit iCloud (iOS)

Copy iCloud Link

Scan QR Code

0