Hi,
Script:
if application "BetterTouchTool" is running then
tell application "BetterTouchTool"
set statued to get_number_variable "BTTCurrentlyPlaying"
if statued is 1.0 then
set currentInfo to {"Music", get_string_variable "BTTNowPlayingInfoArtist", get_string_variable "BTTNowPlayingInfoAlbum", get_string_variable "BTTNowPlayingInfoTitle", get_number_variable "BTTNowPlayingInfoElapsedTime", "playing", get_number_variable "BTTNowPlayingInfoDuration"}
else
set currentInfo to {"Music", get_string_variable "BTTNowPlayingInfoArtist", get_string_variable "BTTNowPlayingInfoAlbum", get_string_variable "BTTNowPlayingInfoTitle", get_number_variable "BTTNowPlayingInfoElapsedTime", "pasued", get_number_variable "BTTNowPlayingInfoDuration"}
end if
end tell
end if
BTTCurrentlyPlayingApp: com.tencent.QQMusicMac
Result:
{"Music", "吕方", "旧情人•老情歌 精选", "流浪花", 0.0, "playing", 301.0}
????:
BTTNowPlayingInfoElapsedTime=0.0
Thanks