diff --git a/sonos-previous-song.lbaction/Contents/Info.plist b/sonos-previous-song.lbaction/Contents/Info.plist new file mode 100644 index 0000000..3bc3901 --- /dev/null +++ b/sonos-previous-song.lbaction/Contents/Info.plist @@ -0,0 +1,39 @@ + + + + + CFBundleIconFile + previous-song.png + CFBundleIdentifier + com.jasonrudolph.LaunchBar.action.SonosPreviousSong + CFBundleName + Sonos - Previous Song + CFBundleVersion + 1.0 + LBDescription + + LBAuthor + Jason Rudolph + LBRequirements + Sonos Controller for Mac v7.1 + LBSummary + Go back to the previous song in the macOS Sonos app + LBTwitter + @jasonrudolph + LBWebsiteURL + http://jasonrudolph.com + + LBRequiredApplication + com.sonos.macController + LBRequirements + Sonos Controller for Mac v7.1 + LBScripts + + LBDefaultScript + + LBScriptName + default.scpt + + + + diff --git a/icons/previous-song.png b/sonos-previous-song.lbaction/Contents/Resources/previous-song.png similarity index 100% rename from icons/previous-song.png rename to sonos-previous-song.lbaction/Contents/Resources/previous-song.png diff --git a/sonos-previous-song.lbaction/Contents/Scripts/default.scpt b/sonos-previous-song.lbaction/Contents/Scripts/default.scpt new file mode 100644 index 0000000..41a63e0 --- /dev/null +++ b/sonos-previous-song.lbaction/Contents/Scripts/default.scpt @@ -0,0 +1,5 @@ +tell application "System Events" + tell process "Sonos" + click button 2 of window 1 + end tell +end tell