# 📺 AirPlay Screen Mirroning Toggle Preset

**URL:** <https://community.folivora.ai/t/airplay-screen-mirroning-toggle-preset/16336>\
**Category:** Setup/Preset Sharing\
**Tags:** touch-bar, preset\
**Created:** [May 20, 2020, 7:54pm UTC](https://community.folivora.ai/t/airplay-screen-mirroning-toggle-preset/16336 "2020-05-20T19:54:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![K2DesignLab](https://community.folivora.ai/user_avatar/community.folivora.ai/k2designlab/32/5468_2.png) [@K2DesignLab](https://community.folivora.ai/u/K2DesignLab)\
**Post date:** [May 20, 2020, 7:54pm UTC](https://community.folivora.ai/t/airplay-screen-mirroning-toggle-preset/16336/1 "2020-05-20T19:54:09Z")

</div>

Touch Bar Preset to toggle AirPlay Screen Mirroring. I have been able to hack together this AppleScript preset. Button Icon will change blue when airplay is active, and on press, will toggle on/off airplay.

This preset requires you to change the AppleScript Action script/code to reflect the NAME of your AppleTV (same name in Display Menu) or other AirPlay video device. Also requires you have the **"Show mirroring options in the menu bar when available"** selected in MacOS System Preferences | Display Preferences.

**Still working out the bugs...** Sometimes you need to press twice to activate or deactivate AirPlay Mirroring.

Preset Download: Updated: 05/14/2020  
[K2 AirPlay Mirroring.bttpreset](https://community.folivora.ai/uploads/short-url/aO1P9MtFRPuemdFidnzDzlX4Bye.bttpreset) (4.1 MB)

AirPlay Icon on Far Left:

 ![Touch Bar Shot 2020-05-20 at 2.50.33 PM](https://community.folivora.ai/uploads/default/original/2X/3/38c54e24a8d3d9df09558877eda600b9525ad585.png)

 ![Touch Bar Shot 2020-05-20 at 2.50.12 PM](https://community.folivora.ai/uploads/default/original/2X/b/babec03ea176f9e9df9672fcce532310c5104300.png)  
**NOTE:** Requires you have the Display Menu in MacOS Menu Bar  
 ![Screen Shot 2020-05-20 at 3.28.41 PM](https://community.folivora.ai/uploads/default/original/2X/b/bf931dbcbd55e0f4652f6c6c3d3411308f52ed73.jpeg)

**Enjoying This Preset?** [PayPal.me/K2DesignLab](http://paypal.me/K2DesignLab)

---

<div class="post-metadata">

**Author:** ![K2DesignLab](https://community.folivora.ai/user_avatar/community.folivora.ai/k2designlab/32/5468_2.png) [@K2DesignLab](https://community.folivora.ai/u/K2DesignLab)\
**Post date:** [May 20, 2020, 9:41pm UTC](https://community.folivora.ai/t/airplay-screen-mirroning-toggle-preset/16336/2 "2020-05-20T21:41:49Z")

</div>

Updated Preset in OP... Working to fix Minor Bug.

---

<div class="post-metadata">

**Author:** ![George1](https://community.folivora.ai/user_avatar/community.folivora.ai/george1/32/26799_2.png) [@George1](https://community.folivora.ai/u/George1)\
**Post date:** [December 25, 2024, 5:49pm UTC](https://community.folivora.ai/t/airplay-screen-mirroning-toggle-preset/16336/3 "2024-12-25T17:49:34Z")

</div>

# DO NOT INSTALL THIS.

- It doesn't have anything related to airplay (that I could find)
- It will add HUNDREDS of random triggers.
  - It takes forever to undo the mess it creates
  - If you do install it, MAKE A BACKUP FIRST so it's easy to undo the mess it causes

Hopefully this wasn't malware. I didn't have time to read the hundreds of scripts it added. If all my passwords are hacked then I guess I'll know later.

Most likely, it was just OP not knowing how to save triggers, and they saved their entire BTT.
