You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: workflows/sonos-toolkit/src/info.plist
+38-20Lines changed: 38 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -244,7 +244,9 @@
244
244
<key>config</key>
245
245
<dict>
246
246
<key>applescript</key>
247
-
<string>on alfred_script(q)
247
+
<string>---- Raise Volume--
248
+
249
+
on alfred_script(q)
248
250
tell application "System Events" to tell process "Sonos" set value of slider 1 of window 1 to get (value of slider 1 of window 1) + 5
249
251
end tell
250
252
end alfred_script</string>
@@ -314,7 +316,9 @@ end alfred_script</string>
314
316
<key>config</key>
315
317
<dict>
316
318
<key>applescript</key>
317
-
<string>on alfred_script(q)
319
+
<string>---- Search--
320
+
321
+
on alfred_script(q)
318
322
activate application "Sonos"
319
323
tell application "System Events" to tell process "Sonos"
320
324
set frontmost to true delay 1 set the value of text field 1 of window 1 to q
@@ -385,7 +389,9 @@ end alfred_script</string>
385
389
<key>config</key>
386
390
<dict>
387
391
<key>applescript</key>
388
-
<string>on alfred_script(q) tell application "System Events" to tell process "Sonos" set value of slider 1 of window 1 to get (value of slider 1 of window 1) - 5 end tellend alfred_script</string>
392
+
<string>---- Lower Volume--
393
+
394
+
on alfred_script(q) tell application "System Events" to tell process "Sonos" set value of slider 1 of window 1 to get (value of slider 1 of window 1) - 5 end tellend alfred_script</string>
389
395
<key>cachescript</key>
390
396
<false/>
391
397
</dict>
@@ -442,7 +448,9 @@ end alfred_script</string>
442
448
<key>config</key>
443
449
<dict>
444
450
<key>applescript</key>
445
-
<string>on alfred_script(q)try tell application "System Events" tell process "Sonos" set frontmost to true click menu item "Mini Controller" of menu 1 of menu bar item "Window" of menu bar 1 (* if exists (window 2 of process "Sonos") then*) click button 10 of window 2 (* Close Main Window *) end tell (* end if*) end tell return trueon error return falseend tryend alfred_script</string>
451
+
<string>---- Switch to Mini Player--
452
+
453
+
on alfred_script(q)try tell application "System Events" tell process "Sonos" set frontmost to true click menu item "Mini Controller" of menu 1 of menu bar item "Window" of menu bar 1 (* if exists (window 2 of process "Sonos") then*) click button 10 of window 2 (* Close Main Window *) end tell (* end if*) end tell return trueon error return falseend tryend alfred_script</string>
446
454
<key>cachescript</key>
447
455
<false/>
448
456
</dict>
@@ -488,7 +496,9 @@ end alfred_script</string>
488
496
<key>config</key>
489
497
<dict>
490
498
<key>applescript</key>
491
-
<string>on alfred_script(q)
499
+
<string>---- Toggle Mute--
500
+
501
+
on alfred_script(q)
492
502
tell application "System Events" tell process "Sonos" click button 1 of window 1
<string>on alfred_script(q)try tell application "System Events" tell process "Sonos" set frontmost to true click button "Button" of window 1 click menu item "Sonos Controller" of menu 1 of menu bar item "Window" of menu bar 1 end tell end tell return trueon error return falseend tryend alfred_script</string>
561
+
<string>---- Switch to Main Window--
562
+
563
+
on alfred_script(q)try tell application "System Events" tell process "Sonos" set frontmost to true click button "Button" of window 1 click menu item "Sonos Controller" of menu 1 of menu bar item "Window" of menu bar 1 end tell end tell return trueon error return falseend tryend alfred_script</string>
552
564
<key>cachescript</key>
553
565
<false/>
554
566
</dict>
@@ -706,7 +718,9 @@ fi</string>
706
718
<key>config</key>
707
719
<dict>
708
720
<key>applescript</key>
709
-
<string>on alfred_script(q) tell application "System Events" tell process "Sonos" click button 3 of window 1 end tell end tellend alfred_script</string>
721
+
<string>---- Play/Pause--
722
+
723
+
on alfred_script(q) tell application "System Events" tell process "Sonos" click button 3 of window 1 end tell end tellend alfred_script</string>
710
724
<key>cachescript</key>
711
725
<false/>
712
726
</dict>
@@ -742,7 +756,9 @@ fi</string>
742
756
<key>config</key>
743
757
<dict>
744
758
<key>applescript</key>
745
-
<string>on alfred_script(q) tell application "System Events" tell process "Sonos" click button 7 of window 1 end tell end tellend alfred_script</string>
759
+
<string>---- Toggle Shuffle--
760
+
761
+
on alfred_script(q) tell application "System Events" tell process "Sonos" click button 7 of window 1 end tell end tellend alfred_script</string>
746
762
<key>cachescript</key>
747
763
<false/>
748
764
</dict>
@@ -778,7 +794,9 @@ fi</string>
778
794
<key>config</key>
779
795
<dict>
780
796
<key>applescript</key>
781
-
<string>on alfred_script(q) tell application "Sonos" to activate tell application "System Events" to tell process "Sonos" set frontmost to true tell application "System Events" to tell process "Sonos" key code 123 using command down delay 0.2 key code 123 using command down end tell end tellend alfred_script</string>
797
+
<string>---- Go to Previous Track--
798
+
799
+
on alfred_script(q) tell application "Sonos" to activate tell application "System Events" to tell process "Sonos" set frontmost to true tell application "System Events" to tell process "Sonos" key code 123 using command down delay 0.2 key code 123 using command down end tell end tellend alfred_script</string>
782
800
<key>cachescript</key>
783
801
<false/>
784
802
</dict>
@@ -876,8 +894,8 @@ fi</string>
876
894
<key>config</key>
877
895
<dict>
878
896
<key>applescript</key>
879
-
<string>on alfred_script(q)
880
-
tell application "Sonos" to activate tell application "System Events"key code 124 using {command down} end tell
897
+
<string>---- Go to Next Track--on alfred_script(q)
898
+
tell application "Sonos" to activate tell application "System Events" to tell process "Sonos" delay 1 trykey code 124 using {command down} end try end tell
881
899
end alfred_script</string>
882
900
<key>cachescript</key>
883
901
<false/>
@@ -1135,7 +1153,7 @@ Inspired by Jeff Johns’s [Sonos Sound Controls workflow](https://github.com/ph
0 commit comments