Now Playing Widget — long press action to active current player

Is there any way to long press Now playing widget to active current player?

there is option for tapped, but i want to use long press to brging active player to front, use tap to play/pause music


(widget specific)


(widget specific)

image
(common)

tell application "BetterTouchTool"
	set playerBundleIdentifier to get_string_variable "BTTCurrentlyPlayingApp"
end tell
tell application id playerBundleIdentifier
	activate
	reopen
end tell

I use this code and put it in a named trigger to use with the long press action.

2 Likes

thank you