brunch

애플뮤직에서 뉴진스 노래가 나오면 스킵

스크립트 돌림

by 손호성

cron 으로 돌리는 애플스크립트...

애플뮤직에서 뉴진스 노래가 나오면 스킵 다른 노래 틀어줌


tell application "Music"

if player state is playing then

set currentTrack to current track

set artistName to artist of currentTrack

if artistName is equal to "뉴진스" then

next track

return "뉴진스 노래 넘김"

else

set trackName to name of currentTrack

set albumName to album of currentTrack

set trackInfo to "현재 재생중: " & trackName & " | 아티스트: " & artistName & " | 앨범: " & albumName

return trackInfo

end if

else

return "노래가 더 이상 없습니다."

end if

end tell


이제 폰에도 자동화 하면 됨


아이폰 단축어 기능을 활용하면 됩니다. 음악없음


keyword
작가의 이전글주식툰 - 2024 5월 결산하고 나 뭐한거지?