# touch bar web player cover image

**URL:** <https://community.folivora.ai/t/touch-bar-web-player-cover-image/7804>\
**Category:** Configuration Help & General Discussion\
**Tags:** touch-bar\
**Created:** [April 10, 2019, 8:31am UTC](https://community.folivora.ai/t/touch-bar-web-player-cover-image/7804 "2019-04-10T08:31:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![11127](https://community.folivora.ai/user_avatar/community.folivora.ai/11127/32/5228_2.png) [@11127](https://community.folivora.ai/u/11127)\
**Post date:** [April 10, 2019, 8:31am UTC](https://community.folivora.ai/t/touch-bar-web-player-cover-image/7804/1 "2019-04-10T08:31:03Z")

</div>

if application "Google Chrome" is running then  
tell application "Google Chrome"  
repeat with t in tabs of windows  
tell t  
if URL starts with "[http://www.mnet.com/player/aod/](http://www.mnet.com/player/aod/)" then  
set s to title of t as text  
set AppleScript's text item delimiters to " | 엠"  
set s to text item 1 of s  
set cover to execute javascript "document.getElementById('player').getElementsByTagName('img')[0].src"  
return "{"text":"" & s & "","icon\_data": "base64\_icon\_data", "icon\_path":"" & cover & ""}"  
end if  
end tell  
end repeat  
end tell  
end if

--run script--  
"{"text":"주인공 / 선미","icon\_data": "base64\_icon\_data", "icon\_path":"[http://cmsimg.mnet.com/clipimage/album/480/002/778/2778228.jpg"}"](http://cmsimg.mnet.com/clipimage/album/480/002/778/2778228.jpg%22%7D%22)

I want to display the image on the touch bar.
