# Now Playing Widget — long press action to active current player

**URL:** <https://community.folivora.ai/t/now-playing-widget-long-press-action-to-active-current-player/16824>\
**Category:** Configuration Help & General Discussion\
**Created:** [June 7, 2020, 5:28am UTC](https://community.folivora.ai/t/now-playing-widget-long-press-action-to-active-current-player/16824 "2020-06-07T05:28:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hu\_hao](https://community.folivora.ai/user_avatar/community.folivora.ai/hu_hao/32/12640_2.png) [@hu\_hao](https://community.folivora.ai/u/hu_hao)\
**Post date:** [June 7, 2020, 5:28am UTC](https://community.folivora.ai/t/now-playing-widget-long-press-action-to-active-current-player/16824/1 "2020-06-07T05:28:07Z")

</div>

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

 ![image](https://community.folivora.ai/uploads/default/original/2X/e/e1074c4bc735fcbde66bb568160421aa1623eee9.jpeg)  
(widget specific)

 ![image](https://community.folivora.ai/uploads/default/original/2X/e/e1a000b2ff4a5f9179661905116fa15939254c6b.png)  
(widget specific)

![image](https://community.folivora.ai/uploads/default/original/2X/d/dfa77d10cdf245243e4079e73c7378b8c25078c4.png)  
(common)

---

<div class="post-metadata">

**Author:** ![rishifter](https://community.folivora.ai/user_avatar/community.folivora.ai/rishifter/32/11656_2.png) [@rishifter](https://community.folivora.ai/u/rishifter)\
**Post date:** [June 7, 2020, 8:11pm UTC](https://community.folivora.ai/t/now-playing-widget-long-press-action-to-active-current-player/16824/2 "2020-06-07T20:11:04Z")

</div>

```auto
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.

---

<div class="post-metadata">

**Author:** ![hu\_hao](https://community.folivora.ai/user_avatar/community.folivora.ai/hu_hao/32/12640_2.png) [@hu\_hao](https://community.folivora.ai/u/hu_hao)\
**Post date:** [June 8, 2020, 6:07am UTC](https://community.folivora.ai/t/now-playing-widget-long-press-action-to-active-current-player/16824/3 "2020-06-08T06:07:51Z")

</div>

thank you
