Raccourcis permettant de contrôler sa musique, rechercher sur Shazam, contrôler le volume, etc…
What's New
Version 1.0
First release
What it does
54 actions-
Choose from MenuQue voulez-vous faire ?
-
Choose from MenuLancer une playlist
-
Get Playlist
-
Play Music
-
Choose from MenuAjouter la chanson à une playlist
-
Start Shazam
-
Choose from Menu… - Voulez-vous l'ajouter à votre playlist
-
Choose from MenuOui
-
Add to Music
-
Run ShortcutMusique Chris
-
Choose from MenuNon
-
Run ShortcutMusique Chris
-
Choose from MenuRégler le volume
-
Choose from Menu
-
Choose from Menu10%
-
Set Volume
-
Choose from Menu20%
-
Set Volume
-
Choose from Menu30%
-
Set Volume
-
Choose from Menu40%
-
Set Volume
-
Choose from Menu50%
-
Set Volume
-
Choose from Menu60%
-
Set Volume
-
Choose from Menu70%
-
Set Volume
-
Choose from Menu80%
-
Set Volume
-
Choose from Menu90%
-
Set Volume
-
Show NotificationAttention, à ce volume il y a des risques pour vos oreilles
-
Choose from Menu100%
-
Set Volume
-
Show NotificationAttention, à ce volume il y a des risques pour vos oreilles
-
Choose from MenuChoisir l’audio de sortie
-
Setplaybackdestination
-
Choose from MenuProchaine chanson
-
Skip Forward
-
Choose from MenuChanson précédente
-
Skip Back
-
Choose from MenuRéécouter la chanson actuelle
-
Skip Back
-
Choose from MenuMettre en pause / redémarrer
-
Play/Pause
-
Choose from MenuMute
-
Set Volume
-
Choose from MenuTransferer la musique
-
Handoffplayback
-
Choose from MenuObtenir details de la musique
-
Start Shazam
-
Find Music
-
Quick Look
View as code
Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.
#include 'actions/music'
#define color blue
#define glyph musicNoteList
menu "Que voulez-vous faire ?" {
item "Lancer une playlist":
const Playlist = getPlaylistSongs(Ask)
playMusic(Playlist, "Songs", "None")
item "Ajouter la chanson à une playlist":
const MdiasShazam = startShazam(true)
menu "{MdiasShazam} - Voulez-vous l'ajouter à votre playlist" {
item "Oui":
const PlaylistMiseJour = addToPlaylist("Shazam", MdiasShazam)
runSelf(PlaylistMiseJour)
item "Non":
runSelf()
}
item "Régler le volume":
menu nil {
item "10%":
setVolume(0.10011184)
item "20%":
setVolume(0.20078298)
item "30%":
setVolume(0.30480984)
item "40%":
setVolume(0.4010067)
item "50%":
setVolume(0.50391495)
item "60%":
setVolume(0.6045861)
item "70%":
setVolume(0.70190156)
item "80%":
setVolume(0.799217)
item "90%":
setVolume(0.90212524)
showNotification("Attention, à ce volume il y a des risques pour vos oreilles")
item "100%":
setVolume(1)
showNotification("Attention, à ce volume il y a des risques pour vos oreilles")
}
item "Choisir l’audio de sortie":
rawAction("is.workflow.actions.setplaybackdestination", {
"WFMediaRoute": "Ask"
})
item "Prochaine chanson":
skipFwd()
item "Chanson précédente":
skipBack()
item "Réécouter la chanson actuelle":
skipBack()
item "Mettre en pause / redémarrer":
pause()
item "Mute":
setVolume(0)
item "Transferer la musique":
rawAction("is.workflow.actions.handoffplayback", {
"WFDestinationMediaRoute": "Ask",
"WFSourceMediaRoute": "Ask"
})
item "Obtenir details de la musique":
const MdiasShazam1 = startShazam(false)
rawAction("is.workflow.actions.filter.music", {
"WFContentItemFilter": "",
"WFContentItemInputParameter": "MdiasShazam1"
})
quicklook(Musique['Title'])
}
Open in Cherri Playground
Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.
Ratings & Reviews
Write a Review–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings
No reviews yet. Be the first to share what you think!
Advertisement
More by chtimi92
You Might Also Like
Advertisement