πŸ†• [v3.6.9] AquaTouch – The Powerful Touch Bar Redesign.

probably the apple script editor auto-completes to installed apps only when compiling? However you do not necessarily need to compile in order to save the script. (Sorry I don't know much about the internals of the editor, as it is completely undocumented)

It compiles when I click save...

@Link, Any luck? Maybe it's because I don't have the app installed

ah true, it does :slight_smile:
I think the editor in the new UI doesn't. (But working on Apple Scripts without having the referenced app installed is always weird because it shows those stupid app selectors everytime it tries to compile or run the script)

@Link

Try this (maybe) fixed Discord Canary Notification badge.

Delete the current buggy widget, then
Copy all the code below, then in the BTT window, right click and select paste JSON from Clipboard

  {
    "BTTWidgetName" : "Mentions (Discord Canary)",
    "BTTTriggerType" : 639,
    "BTTTriggerTypeDescription" : "Apple Script Widget",
    "BTTTriggerClass" : "BTTTriggerTypeTouchBar",
    "BTTPredefinedActionType" : 195,
    "BTTPredefinedActionName" : "Run Apple Script (async in background)",
    "BTTInlineAppleScript" : "tell application \"System Events\"\r\ttell process \"Dock\"\r\t\ttry\r\t\t\tclick UI element \"Discord Canary\" of list 1\r\t\tend try\r\tend tell\rend tell",
    "BTTEnabled2" : 1,
    "BTTUUID" : "3659ED94-928F-4FEC-B482-36D6081BDBB8",
    "BTTEnabled" : 1,
    "BTTModifierMode" : 0,
    "BTTOrder" : 38,
    "BTTDisplayOrder" : 1,
    "BTTIconData" : "iVBORw0KGgoAAAANSUhEUgAAAIwAAABmCAYAAAAZH3naAAAKM2lDQ1BJQ0MgUHJvZmlsZQAASImVlgdUE+kWx7+Z9AYJCVVKqKFLJ4D03gSRIohKSCDUGEIoKioiiyuwooiIgLKgKyIKri5F1oooKiwCFuwbZFFQ1sWCqKh5E1nX3ffOee+8e86d+_vuzLn3ft_MOfMHgCTmCIVpMBWAdIFYFObrwVwWHcPEPQJ4QAdUoAMAh5spdA8NDQKIfYn_tDe3ACSL181ktf7z_n81Gi8hkwsAFIqwiJfJTUe4B+EArlAkBkA2GdDNEQtlbIMwQ4QMiLCfjPnzHCvj+HkWfn4mPMwT4UIA8GQOR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0fhkqKsTAmsyHoatRuq8fVb67NeUsyibtvhXYYbBv3w6Hg2kIW8bp1YV84Ha4AE6PzvpkFu9u19fXWtrVBW3xatW0dyOOTMfg7BLtbLYhG9wf95ngTGFRcWs4iI7joO3AqrAQ2UpQEm6bRwE_hRvC1MY8M4+JVwK7ct78NYHyNMWw9Nwr0xadYQjLdBhv0cxEobufXeJutPxuw13gZXqzxPNt5YG_pOYeQPOJbkMXliu0utRuLjrW+uOh3NviADSohMINelDi5Lfsq3q12rChnkna5UPULuBZMUizxIRgJw2s4PNiuxyw4xYS_C_rpE2pAxWP2JLHEN5GD4ETYPqG06Pjaq9gROKwXJj4FXwGfJh0KwWzU5bVyPOh3+wz8EDaGXhGHAH16GpK+thKzwe4NbZg7c5hc1+FjsTIa9WfCSxAMGczYVs+FNv5DezfAHtCtou0OtQ4Hwa9W4zPY_aENc3UmmLuOifOEH4HjdjDM7WAOtHJO3Q4LU6BbRdv1oeg4hXzMpi1zZK5KI+OwxJ8yPAzB0CICok7H+m4XfSgqPiH+5uJkcOJfWvGNYy+4DOZBMD5GcNRxKfSK6EusuIQ4G3NjvyeYi64Se51j4WpwbSI4FbZ5hibveQxWh14RfdEnfcsbixBDt8b2KjgGjHlPiBOtA+FccEHKV+Sk08n9dPA852R3O+g10Sd908d6fifjEvaNnTE0lsa0bZPYpWmsEzKMRvvA10oDtiWsB07KXJNwTSQpBuokOD95sIf2nc_8HNL5WMQx36R8oZgB9kauSz0BM8HzbZW0gW1tPNXYCD6vBa7IrgObws6wBdwHPkk+gb0oPiDXgg_Po3AnTIdZ8CK8Cgug4_I_hqnfatSIA7sAAAAASUVORK5CYII=",
    "BTTKeySequence" : {

    },
    "BTTTriggerConfig" : {
      "BTTScriptType" : 0,
      "BTTTouchBarButtonColor" : "113.648694, 137.378254, 217.755873, 255.000000",
      "BTTTouchBarItemIconWidth" : 24,
      "BTTTouchBarButtonFontSize" : 3,
      "BTTTouchBarItemPlacement" : 2,
      "BTTTouchBarAlternateBackgroundColor" : "75.323769, 75.323769, 75.323769, 255.000000",
      "BTTTouchBarButtonCornerRadius" : 15,
      "BTTTouchBarFontColor" : "255.000000, 255.000000, 255.000000, 255.000000",
      "BTTTouchBarScriptUpdateInterval" : 5,
      "BTTTBWidgetWidth" : 400,
      "BTTTouchBarAppleScriptStringRunOnInit" : false,
      "BTTTouchBarAppleScriptString" : "tell application \"BetterTouchTool\" to set LCL_DNDStatus to get_string_variable \"DNDStatus\"\rif LCL_DNDStatus is \"OFF\" then\r\t\r\tif application \"Discord Canary\" is running then\r\t\ttell application \"System Events\"\r\t\t\ttell process \"Dock\"\r\t\t\t\ttry\r\t\t\t\t\tset badgeNumber to value of attribute \"AXStatusLabel\" of UI element \"Discord Canary\" of list 1\r\t\t\t\t\tif badgeNumber exists then\r\t\t\t\t\t\tif badgeNumber contains \"iPhone\" then\r\t\t\t\t\t\t\treturn \"iPhone\"\r\t\t\t\t\t\telse if badgeNumber contains \"iPad\" then\r\t\t\t\t\t\t\treturn \"iPad\"\r\t\t\t\t\t\telse if badgeNumber contains \"watch\" then\r\t\t\t\t\t\t\treturn \"Watch\"\r\t\t\t\t\t\telse if badgeNumber contains \"Mac\" then\r\t\t\t\t\t\t\treturn \"Mac\"\r\t\t\t\t\t\telse\r\t\t\t\t\t\t\treturn \"{\\\"text\\\":\\\"\" & badgeNumber & \"\\\",\\\"font_size\\\": 15}\"\r\t\t\t\t\t\tend if\r\t\t\t\t\telse\r\t\t\t\t\t\treturn \"\"\r\t\t\t\t\tend if\r\t\t\t\ton error\r\t\t\t\t\treturn \"\"\r\t\t\t\tend try\r\t\t\tend tell\r\t\tend tell\r\telse\r\t\treturn \"\"\r\tend if\relse\r\treturn \"\"\rend if",
      "BTTTouchBarButtonName" : "Mentions (Discord Canary)",
      "BTTTouchBarAppleScriptUsePath" : 0,
      "BTTTouchBarFreeSpaceAfterButton" : 5,
      "BTTTouchBarItemIconHeight" : 24,
      "BTTTouchBarItemPadding" : -8
    }
  }

Once I press Paste JSON it crashed the BTT.

Hmm not sure what I can do here...

@Andreas_Hegenberg?

Seems to paste fine here :man_shrugging:

Update:
I tried with another app like WhatsApp and it also don't show any badges.
However, when I tried the other preset (GoldenChaos), it shows Discord Canary and WhatsApp badge.
I switched back to your preset and it still not show any badges. I am not sure what's wrong here.

There seems to be a code error within my preset.

Try open the widget up and paste this code:

tell application "BetterTouchTool" to set LCL_DNDStatus to get_string_variable "DNDStatus"
if LCL_DNDStatus is "OFF" then
	if application "Discord Canary" is running then
		tell application "System Events"
			tell process "Dock"
				try
					set badgeNumber to value of attribute "AXStatusLabel" of UI element "Discord Canary" of list 1
					if badgeNumber exists then
						if badgeNumber contains "iPhone" then
							return "iPhone"
						else if badgeNumber contains "iPad" then
							return "iPad"
						else if badgeNumber contains "watch" then
							return "Watch"
						else if badgeNumber contains "Mac" then
							return "Mac"
						else
							return "{\"text\":\"" & badgeNumber & "\",\"font_size\": 15}"
						end if
					else
						return ""
					end if
				on error
					return ""
				end try
			end tell
		end tell
	else
		return ""
	end if
else
	return ""
end if

Edit: Could you also send me the code for your whatsapp widget? Mine is working fine

Post Improvements

In an effort to get AQT ready for it's big release with promotions to the wider community, and to make it more presentable, i've touched up the preset page above. Any comments or possible improvements?

Also redirecting all downloads to the now previously 'updates only thread' to simplify my uploading process and to keep things less cluttered.
It now acts as an AQT Download and Updates centre where you can download a copy for the first time, see all versions and sign up to updates with no clutter.

(I will improve those ancient v2 images soon!)

@Dom

Hei @yuuiko! In my opinion ...

  1. To simplify and to clean the original post you could delete the poll because off it's a little bit intrusive and a new user isn't interested into reading it but he want to read what can he does with AQT.

  2. You could update screenshots because they refer to AQT 2.0

  3. Maybe adding into the gesture tips that you can use shift + option to control more precisely volume/brightness ecc ecc

  4. Maybe i'll change titles ("about", "take a look", ecc ecc") color to make them even more visibile


This advices are really subjective so you can take it or not!... In my opinion in these months you had already improved a lot the first page so at the moment you can't do much more XD

Great advice!

I pretty much have those suggestions planned for 2, 3 and 4, I may even make them animate-in if free time permits!

I think 1 is a good thing to keep though as it makes someone go β€œwhoa thiis is going well, what’s this about?” and gives me feedback from more people since it’s easier for them to submit and without needing to write a comment.

And oops, my mistake: you can peep into my hidden post testing thread if you use the contents XD, will fix!

1 Like

Sorry for the long time no answering.
I tested it in Script Editor and it shows that LCL_DNDStatus is ON. I think I enabled DND by mistake?

Great. That should be the issue. All notification badges don't show up if that is set to on. Try pressing the moon button in the controls and see what happens.

But MacOS says that DND is off (I checked via Notification Center). I wonder why it says it's ON. Is BTT has its own DND setting or what?

My preset sets that variable based on whether DND is on or off. Maybe it's bugged out for you.....

Make sure the DND Handler widget exists and is active (should be found at the top of the notification badge group)


As a temporary fix, you can run this code to reset the variable:

 tell application "BetterTouchTool" to set_persistent_string_variable "DNDStatus" to "OFF"

If you use this workaround then disable DND sensing by disabling the DND Handler Widget to avoid the variable switching back

I am feeling this is more of OS specific issue rather than your script issue.
What OS are you using? I am using macOS Mojave 10.14.4 . I think your script isn't working on this specific version.
After I "disable" your DND handling script (by telling it to return OFF instead of ON), it shows the badge, at last!
Before:

After:

Edit: How about reversing the check? So if it sees DND enabled, hide the badge, else show the badge

Hello everyone, I love AquaTouch and all the customizability, I've just been using it last couple of days. What I would like to know concerning the future updates, I did quite a lot of custiomisations, mostly turning buttons and options off, but also adding some of them, also doing some visualization changes with rounded corners and margins to make a setup suited to my work process.

So if I in the future update to some future version, will all of this be lost and I will need to do it again? Or can this somehow be saved as user profile?

Thank you!

Hi @Link and sorry for the late reply.

I'm running Mojave 10.14.3. I'll update and check if it's working. For now disable that DND handler and keep the variable set to off.

Reversing the check wouldn't do much as i suspect the check isn't working properly anyway.

Thanks for the time! I'll get back sometime soon with any results. This may be a few weeks though as i'm quite busy.

Hi @komeci!

Glad you're enjoying AquaTouch!

Unfortunately any changes that are not set via the AQT settings won't carry over to next versions.. (the triggers you've added directly into the preset itself. (explanation soon)

You'd need to manually redo the changes for any updates, since I don't have a way to know of any edits and handle them from my end. There are ways to make the manual redo-ing easier however.


Using more than one preset

BTT allows you to have more than one preset active at one time. One should be set as master, which all new triggers will go to, but the triggers from other active preset will be merged into the current setup.

You can use this function to somewhat preserve any new triggers and apps across updates on my side. (but not edits (changes) to AQT as they will go to the AQT preset, which will be replaced on update. It can only work for things that can be seperate from AQT, new triggers that are added in.)

Doing this means that you can preserve your added triggers and more easily merge them into the new update, (as you can keep your changes but update AQT separately since they are seperate presets but merged).

I can probably guarantee, however, a rough transition especially if I change anything where you've added things... e.g. if you put additional buttons into an app, then I completely change how that app works. You'd need to clean up that section as your buttons may get misplaced. But at least it's not as hard as starting over and instead just fixing things up :confused:


Adapting your current setup

In theory, you'd do this before starting any edit:
You'd make a new preset for your additions and have AQT as non-master. You'd add your new triggers to that personal preset then have them both active at the same time (Your Custom as Master, AQT as a background active) so they merge for daily use.

But since you already have things in AQT, you'd need to move them out to it's own preset.
I recommend backing up your current customised AQT (very important since BTT likes to stuff up when deleting things), then delete everything that isn't yours from your current AQT leaving your new triggers behind in the right place. (to put it visually, pluck all the AQT off and leave your triggers behind)

Then you can load a fresh copy of AQT as a seperate preset, set your personal preset as master and clean up any mishaps there. Like this:

(you can also color-code each preset so you can easily keep track of which belongs to which in the UI in that last column)


Sorry for the wall of text as it's a complicated matter, but I hope it's helpful to you. Tell me how it goes!

Lastly, I'm also interested to see what you've added to your preset! If you don't mind, could you attatch your version here so I could take a look? If I find anything that could help a wide audience then I'll add it in to the official preset, credited of course!

Good luck preparing for updates!

1 Like