# Enhanced Dock for macOS

**URL:** <https://community.folivora.ai/t/enhanced-dock-for-macos/22364>\
**Category:** Setup/Preset Sharing\
**Tags:** media-controls, window-management, dock, version-0-4-1, app-management\
**Created:** [April 15, 2021, 4:46pm UTC](https://community.folivora.ai/t/enhanced-dock-for-macos/22364 "2021-04-15T16:46:36Z")\
**Posts on this page:** 12\
**Page:** 2

<div class="post-metadata">

**Author:** ![yw4z](https://community.folivora.ai/user_avatar/community.folivora.ai/yw4z/32/10483_2.png) [@yw4z](https://community.folivora.ai/u/yw4z)\
**Post date:** [July 22, 2024, 1:04pm UTC](https://community.folivora.ai/t/enhanced-dock-for-macos/22364/21 "2024-07-22T13:04:28Z")

</div>

@derhausmeister i didnt add a global setting for that because it reduces "snappiness". but you can disable notifications with adding "//" to beginning of `setTimeout(e=>NT(),150)` in every real javascript action in BTT \> Automations & Named & Other presets \> Enhanced dock

but i dont recommend to disable hud because it shows you is gesture correctly reconized or not

---

<div class="post-metadata">

**Author:** ![spitfire](https://community.folivora.ai/letter_avatar_proxy/v4/letter/s/a5b964/32.png) [@spitfire](https://community.folivora.ai/u/spitfire)\
**Post date:** [December 4, 2024, 10:43pm UTC](https://community.folivora.ai/t/enhanced-dock-for-macos/22364/22 "2024-12-04T22:43:28Z")

</div>

Hi, thanks for making this!  
Believe it or not, but not everyone uses English as their OS language, and that seems to stop many triggers for working. I'm using Polish and while Safari is called the same, Music is called Muzyka, Messages is called Wiadomości, etc. How/where can I change these names so actions are triggered properly instead of getting information they're not supported?

---

<div class="post-metadata">

**Author:** ![yw4z](https://community.folivora.ai/user_avatar/community.folivora.ai/yw4z/32/10483_2.png) [@yw4z](https://community.folivora.ai/u/yw4z)\
**Post date:** [December 7, 2024, 4:31am UTC](https://community.folivora.ai/t/enhanced-dock-for-macos/22364/23 "2024-12-07T04:31:51Z")

</div>

@spitfire i will try to use app paths to make preset a bit more universal but not sure it will fix fully. code already uses app paths on some parts but uses dock icon title on other parts

BTT \> Automations & Named & Other triggers \> Enhanced dock Actions \> Primary Action Dock

can you replace this lines

```auto
}else if(N=="Music"||N=="Spotify"||N=="TV"){
		AS(`tell app "`+N+`" to `+(S?`playpause`:`play (next track)`))

```

to

```auto
}else if(P=="/System/Applications/Music.app"||N=="Spotify"||N=="TV"){
		AS(`tell app "`+P+`" to `+(S?`playpause`:`play (next track)`))

```

press verify and save

Music should be functional for primary action with this change

if it solves i will try to fix other ones

---

<div class="post-metadata">

**Author:** ![spitfire](https://community.folivora.ai/letter_avatar_proxy/v4/letter/s/a5b964/32.png) [@spitfire](https://community.folivora.ai/u/spitfire)\
**Post date:** [December 7, 2024, 12:16pm UTC](https://community.folivora.ai/t/enhanced-dock-for-macos/22364/24 "2024-12-07T12:16:29Z")

</div>

Thank, that worked really well!  
It's a good idea, but please keep in mind there's a potential downside (at least to some apps). While a system app like Music will always be in /System/Applications, some people may put their applications somewhere else than in /Applications. Some may be in ~ /Applications, and there's now a new option to [Download and install large apps to a separate disk - Apple Support](https://support.apple.com/en-us/guide/app-store/fir06754f864/mac)

---

<div class="post-metadata">

**Author:** ![yw4z](https://community.folivora.ai/user_avatar/community.folivora.ai/yw4z/32/10483_2.png) [@yw4z](https://community.folivora.ai/u/yw4z)\
**Post date:** [December 7, 2024, 8:33pm UTC](https://community.folivora.ai/t/enhanced-dock-for-macos/22364/25 "2024-12-07T20:33:48Z")

</div>

i assume 3rd party apps doesnt use localization on their names

---

<div class="post-metadata">

**Author:** ![Andreas\_Hegenberg](https://community.folivora.ai/user_avatar/community.folivora.ai/andreas_hegenberg/32/39221_2.png) [@Andreas\_Hegenberg](https://community.folivora.ai/u/Andreas_Hegenberg)\
**Post date:** [December 7, 2024, 8:38pm UTC](https://community.folivora.ai/t/enhanced-dock-for-macos/22364/26 "2024-12-07T20:38:26Z")

</div>

personally I solve the localization problem by using the bundle identifier of an app instead of the name:

```auto
 tell application id "com.google.Chrome" to set currentTabUrl to URL of active tab of front window

```

---

<div class="post-metadata">

**Author:** ![yw4z](https://community.folivora.ai/user_avatar/community.folivora.ai/yw4z/32/10483_2.png) [@yw4z](https://community.folivora.ai/u/yw4z)\
**Post date:** [December 7, 2024, 8:50pm UTC](https://community.folivora.ai/t/enhanced-dock-for-macos/22364/27 "2024-12-07T20:50:05Z")

</div>

@Andreas_Hegenberg i get application info from hovered UI element but AXDockItem doesnt have an property for bundle identifier. AXDockItem has a property for url(app path). i think its the fastest way to launch script. otherwise i have to convert path to bundle identifier that will add additional step. at least on my script. i didnt fully edit script yet but that will be optional path for me if i got any problems. thanks

---

<div class="post-metadata">

**Author:** ![Andreas\_Hegenberg](https://community.folivora.ai/user_avatar/community.folivora.ai/andreas_hegenberg/32/39221_2.png) [@Andreas\_Hegenberg](https://community.folivora.ai/u/Andreas_Hegenberg)\
**Post date:** [December 7, 2024, 8:50pm UTC](https://community.folivora.ai/t/enhanced-dock-for-macos/22364/28 "2024-12-07T20:50:40Z")

</div>

ah in that case your approach should be fine!

---

<div class="post-metadata">

**Author:** ![spitfire](https://community.folivora.ai/letter_avatar_proxy/v4/letter/s/a5b964/32.png) [@spitfire](https://community.folivora.ai/u/spitfire)\
**Post date:** [December 7, 2024, 9:45pm UTC](https://community.folivora.ai/t/enhanced-dock-for-macos/22364/29 "2024-12-07T21:45:09Z")

</div>

Makes sense. 3rd pary apps don't use generic names like "Mail".  
Do you plan to update the preset for the system apps though?  
So far I've noticed Calculator, Calendar, Clock, Contacts, Mail, Maps, Messages, Notes, Podcast Preview, Reminders, Script Editor, Shortcuts, Stickies, Voice Memos have localized names and won't work with the preset. That's pretty much most of the Apple's built-in apps.

---

<div class="post-metadata">

**Author:** ![donjuanal](https://community.folivora.ai/user_avatar/community.folivora.ai/donjuanal/32/39346_2.png) [@donjuanal](https://community.folivora.ai/u/donjuanal)\
**Post date:** [May 23, 2025, 9:03pm UTC](https://community.folivora.ai/t/enhanced-dock-for-macos/22364/30 "2025-05-23T21:03:17Z")

</div>

First off I want to say thank you for this, these gestures are great and make the dock so much more versatile. I'm not familiar with Javascript and am unable to decode a specific portion of the edockpri trigger to make it perform a different action.

```auto
	if(N=="Finder"){
		SK("58,55,45")//CMP+OPT+N

```

I believe this is some javascript key code event to run CMD+OPT+N in Finder, however, I'd like it to run CMD+T instead as currently it just opens multiple Finder windows rather than new tabs, despite my Finder settings set to open folders in new tabs.

Any help would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![yw4z](https://community.folivora.ai/user_avatar/community.folivora.ai/yw4z/32/10483_2.png) [@yw4z](https://community.folivora.ai/u/yw4z)\
**Post date:** [May 29, 2025, 6:07pm UTC](https://community.folivora.ai/t/enhanced-dock-for-macos/22364/31 "2025-05-29T18:07:40Z")

</div>

you can use this codes as reference

> **[Complete list of AppleScript key codes](https://eastmanreference.com/complete-list-of-applescript-key-codes)**
>
> All of the AppleScript key codes. Ever. Maybe. All of the key codes I could find on a MacBook. If I missed something, please let me know.

---

<div class="post-metadata">

**Author:** ![donjuanal](https://community.folivora.ai/user_avatar/community.folivora.ai/donjuanal/32/39346_2.png) [@donjuanal](https://community.folivora.ai/u/donjuanal)\
**Post date:** [May 29, 2025, 6:57pm UTC](https://community.folivora.ai/t/enhanced-dock-for-macos/22364/32 "2025-05-29T18:57:22Z")

</div>

Thank you, this is exactly what I needed!

I was able to adjust the behavior to my liking by modifying the section of code to the following:

```auto
if(N=="Finder"){
		SK("55,17")//CMD+T

```

[Previous page](https://community.folivora.ai/t/enhanced-dock-for-macos/22364.md?page=1)
