GoldenChaos-BTT Support and Feedback Thread

Making progress. First step is you need to get the folder ID inside Outlook for each of the inboxes. Create this script in Script Editor.

tell application "Microsoft Outlook"
get selected folder
end tell

With Outlook open, select and highlight the folder you want the count from in each account in the Folder Pane and run the script in Script Editor
You should see something like

mail folder id XXX of Application "Microsoft Outlook"

Repeat with all your account inboxes or folders you wish and record the numbers. Now you have the folder ID's you can call for each unreadCount

I got started on the script but work keeps distracting me, so I'll post here as is:

tell application "Microsoft Outlook"
	set allMailFolders to get mail folders
	repeat with currentFolder in allMailFolders
		if id of currentFolder is XXX then
			set unreadCount1 to the (unread count) of currentFolder
			if unreadCount1 is not 0 then return unreadCount1
                    if unreadCount1 is 0 then return ""
		end if
	end repeat 
end tell

It returns the correct folder counts when the folderIDs are substituted for XXX. Just need to figure out how to assign and nest multiple folderIDs and add them to an aggregate final total in the script. Ran out of time before I could figure the rest of it out though...

1 Like

Think you could figure out a solution where people don't have to edit in folder names? Maybe a way to get the folder IDs programmatically? Although @liamb did you confirm whether or not your script is returning the correct number?

Great work, thanks!

I've just imported 2.557 and see two issues which were present for me on the previous version as well.

  1. The extended weather shows:

  2. I don't see any Safari browser tabs on the touchbar. Is there a configuration setting I've missed?

I'm on 2016 15" Macbook Pro running High Sierra.

Chris

You need the latest BTT alpha for the temperature widget to work

Perfect - thanks - quick fix!

Browser Tabs is still WiP, so not enabled by default yet. Aiming to have it working for Safari for the next release!

1 Like

Another couple of requests:

  1. Unread mail count for Airmail
  2. An option to include all day events in the Calendar scripts so I don't have to edit out -ea
1 Like

hopefully u can figure this out for chrome as well. u been killing it lately

1 Like

Progress! Supports up to 10 tabs at a time. I absolutely hate not being able to generate the correct amount of buttons in a single script, but I tried the add_new_trigger function and it permanently adds new buttons so... can't go that route.

What I really want to do is recreate (as closely as possible) Apple's Safari tabs widget. So I just need to somehow get a cropped screenshot of the page and display that in the button... simple :crazy_face:

If I can't do that, I want to at least get the favicon and find a way to make all tab buttons the same length.

Will make sure to include all-day events in the calendar widget by default next update @chrisparker! And Airmail and Spark are actually next on my list :slight_smile:

You're a star. I've just been to PayPal. :gift:

1 Like

Thanks for the tip - it was a network issue in that I didn't have location services enabled for locateme.

Thanks for your help!

And thanks @GoldenChaos!

1 Like

I'm having issues with the calendar widget and Fantastical 2. When I long press on the date, I get the following output:

Also, the calendar widget does not show up on the touch bar even tho it is enabled:

I've already downloaded icalBuddy, so I'm not sure what may be causing this issue.

Also will support for the Spark mail app be added soon?

This means that something is wrong with your icalBuddy installation. Make sure it's installed to /usr/local/bin/icalBuddy. The other option is you have no calendar events in the next week? :stuck_out_tongue:

icalBuddy seems to give people a lot of issues and is difficult to troubleshoot, this might be the next logical widget to knock off the list @Andreas_Hegenberg - native reminders/calendar support

Spark support coming soon, yep! Working on it and Airmail right now, actually. I'm so frustrated with Airmail that I think I'll take a break and do Spark lol

EDIT: Wow, Spark was easy. Airmail y u so annoying

I went through the Calendar Actions and removed all instances of -ea which worked for me on the last version.

Thanks for the Safari tabs!

Yep a native calendar widget should be doable :slight_smile: Will work on this next week. However if everything goes well I'll probably do a public release by the end of the week, then start a new alpha phase next week.

Btw. the add_new_trigger function returns a UUID which you can use to delete the trigger again later. Not sure if that would help.

1 Like

It would be amazing to see an example, especially of buttons being generated/destroyed inside of a button group. Another thing that would be useful is knowing how to set the button in the series to have the correct corner radius on the right edge. I think I'm just having a tough time getting started here.

I'm working on a new version for 2.559. Some spacing/padding broke again :stuck_out_tongue: but I got Chrome tabs working in the browser tabs widget! So that'll be in the next release, too.

EDIT: Button highlighting is not working for me in 2.559. Additionally, all conditional widgets are displayed at all times. Whoops :stuck_out_tongue: I downgraded for now @Andreas_Hegenberg

1 Like

I think with some editing it would be, currently, it counts all unread emails in all folders in All Accounts from what I can gather:
Weirdly it seems to be out 1 everytime, regardless of how many emails I open (it'll update but be under by 1), perhaps an array issue or something where it's counting the first email as 0?

Welp, time to go get outlook and see if I can help out :stuck_out_tongue:

Got it! Here's a working multi-account no-config Outlook unread mail count script. It loops through each account inbox and then sums the different unread counts together :slight_smile: this will be included in the next GC-BTT release. @liamb @Harrumph

if application "Microsoft Outlook" is running then
	try
		tell application "Microsoft Outlook"
			set unreadCounts to the unread count of every mail folder whose name is "Inbox"
		end tell
		set unreadCount to 0
		repeat with this_item in unreadCounts
			set unreadCount to unreadCount + this_item
		end repeat
		if unreadCount is not 0 then
			return unreadCount
		else
			return ""
		end if
	on error
		return ""
	end try
else
	return ""
end if

EDIT: Also figured out a small workaround to cap the ends of tab lists, which has also inspired me to figure out how to make multi-component buttons out of widgets with no space between them. Definitely gonna play around with being able to close browser tabs from here.

2 Likes