Jump to content

Recommended Posts

Say if you’re the author or submitting someone else’s workflow.

I am the author of the workflow.

 

Share a link to its thread on the Alfred Forum.

Not aware of any thread.

 

Share a link to its main page (e.g. GitHub).

https://www.thoughtasylum.com/alfred/alfred_conductor_for_keyboard_maestro/

 

If it has dependencies, say what those are unless they are explicit in the About or README.

This workflow is for controlling the Mac app Keyboard Maestro, so that app is a dependency.

 

Provide screenshots, unless valid ones are in the About or README.

image.thumb.png.c13076529c72902255595cc2f753e6f8.png

 

image.thumb.png.1682fdb79e443b1f0c46bb46b94b0324.png

 

How to use it

The readme directs users to use the inbuilt command kmdocs which takes the user to the download page referenced above which documents all of the keyword triggers, external triggers and the fallback search option.

 

From the readme:

Conductor is a workflow for interacting with Keyboard Maestro and specifically for working with macros.

Keyboard Maestro is a third party utility that allows you to build and run macro-based automations to interact with other applications and the operating system. It provides an Automator-like user interface with a large array of triggers and actions, and with support for triggering scripts and targeting actions on user interface elements (e.g. buttons and menus).

---

You can find out everything you need to know about the workflow by entering the keyword kmcondocs. This will take you to the online documentation for this workflow at thoughtasylum.com.

---

Conductor icon created by Freepik - Flaticon
https://www.flaticon.com/free-icon/conductor_1776612

 

Link to comment
Share on other sites

Marking as in progress too while waiting for screenshots.

 

Could you provide the first one without Keyboard Maestro as the top result? I understand it’s a dependency of the workflow and that’s perfectly fine: in the Gallery that will be explicit including a link to its homepage. It’s just so it’s not confused with the output of the workflow itself.

Link to comment
Share on other sites

Revised screenshots:

 

image.thumb.png.094dd00ac356c2d45042134eb51e22b3.png

 

image.thumb.png.27e44b977a1261fce7b9ae7e26141307.png

 

8 hours ago, vitor said:

Just noticed this workflow is using Workflow Environment Variable instead of User Configuration. I’d submit a PR, but there seems to be no repo.

 

I don't tend to manage my workflows in repos - hence there are none.

 

The workflow predates Alfred v5 and has a single variable to specify a delay period for executing macros. The workflow also includes commands to change that variable. The workflow also specifies a default value for the variable.

 

Having read the user configuration documentation for Alfred 5 when it became available, I didn't see any benefit or any need to migrate away from using the variable. The user configuration documentation strongly indicates it to be geared more towards an initial set it and forget it initialisation, whereas I'd already dealt with this and the option (e.g. "kmdelay 10") to easily change it in the workflow.

 

Environment variables are still 'a thing' (you set them in the same window - just different tabs), so what would be the advantage of switching from environment variables to user configuration be? Have I missed some particular benefit?

Link to comment
Share on other sites

Thank you for the screenshots, but they have no shadow. Perhaps you have disabled it?

 

7 minutes ago, sylumer said:

geared more towards an initial set it and forget it initialisation

 

It’s configuration. It’s to be set whenever you need to change the setting, be it at first usage or later on when you change your mind.

 

8 minutes ago, sylumer said:

Environment variables are still 'a thing'

 

There are still situations where they make sense, but for user-facing features User Configuration is the way to go. Plus, outright removing them wouldn’t make sense, as older workflows continue to be supported.

 

9 minutes ago, sylumer said:

so what would be the advantage of switching from environment variables to user configuration be?

 

Vastly clearer for users, in a standard location in the editor, with documentation included in context (e.g. setting a description), plus simplified code which does not need to check for absent variables or empty values, or invalid strings (checkboxes; popover buttons).


You can still have your keyword (kmdelay, which I’ve had to recheck several times while replying, as opposed to User Configuration which is just there) change the setting via AppleScript (the latest pre-release adds support for it, with no code changes necessary).

Link to comment
Share on other sites

5 minutes ago, vitor said:

Thank you for the screenshots, but they have no shadow. Perhaps you have disabled it?

Hmmm, I guess I mights have disabled it some time in the dim and distant past. I don't use the macOS screenshot functionality and I haven't done so for a very long time. I've used a few different apps over the years - ones that have given me more options for multiple saves and annotations.

That being said, if I run the terminal command to force enablement and screenshot my terminal, I get a shadow

image.png.f430d861259398c74dd5d4e556911264.png

Whereas, with this setting still in place, if I pop my Alfred window up alongside it and use the exact same keyboard commands, I get Alfred with no shadow I can see

image.png.013cc0c29432ef7debfa3f4e9b519a62.png

Though if I paste the image into an image editor, or highlight it here as I'm editing, it does have the space around it to hold the shadow. I wondered if my theme was messing things up, so I thought I'd try changing it.

 

If I change to the default theme I get ... a third(?)... of a shadow?

image.png.7a4f30e323d1136076795a59e4977ee2.png

If I restart Alfred, I get a full shadow.

image.png.2018688e07f6c5ae05c6cb38d2ea5fb6.png

But then if I change back to my previous theme, I get no shadow again.
image.png.aee48052a8559bc84438a13461d03030.png

Any known issues with themes (I'm on 5.0.4 FWIW) affecting screenshot shadows? 🤔

 

Its late and I need to get to bed so I'll tackle the screenshots tomorrow - probably with an alternate shadowable theme.

 

6 minutes ago, vitor said:

It’s configuration. It’s to be set whenever you need to change the setting, be it at first usage or later on when you change your mind.

I would suggest that with the contrinued existence rather than migration of the variables and how the documentation describes it, that it could be clearer.

 

I think "vastly clearer for users" and "kmdelay, which I’ve had to recheck several times while replying" are a point for new users. I'm not discounting it asa positive point, but it isn't globally applicable. For example, keywords to set values is much faster to do (and ingrained for existing users) than accessing the user configuration. That's like keyboard shortcuts and menus - but most Alfred users are keyboard nerds right? 😁

 

The "documentation included in context" is a double edged sword. I suspect usually it is a good thing, but there are times when you need to walk people through a variable in more detail (I realise you can add the details, but it feels like it'll become off putting for someone new if there's too much info). So, not a universal plus, but certainly more pro than con and there are ways to deal with providing such documentation (e.g. "DO NOT CHANGE THIS ... unless you read the manual first, in which case go ahead" 😉).

 

14 minutes ago, vitor said:

plus simplified code which does not need to check for absent variables or empty values, or invalid strings (checkboxes; popover buttons)

 

This one I think is something I haven't really thought through to date. I'd already solved the problems I needed to so I probably haven't really thought deeply about it from this angle. But simpler is better, and that's something that now I've started considering it is the single most persuasive point for me. I'll sleep on it (and probably come to the conclusion it is worth a change) and figure out next step, timelines for doing it (updating docs, etc.) for this and the other workflows.

 

Link to comment
Share on other sites

A reboot didn't help (I did try that a day or do after), and yesterday I updated to Ventura and the missing shadow persists, which suggests to me it is tied to some property of my theme. I've been using it since maybe v1 or v2 - it's been so long and I haven't wanted to change it or have any issues with it until now.

 

It can be downloaded here.

 

The blur is set as "No Blur", not the deprecated classic blur.

 

2022-10-30-11_45_49.png.db52fe41391e163a947c48215a092bf0.png

 

I've had a quick scan through the JSON that seems to specify the format, and I don't see any obviously spurious values. I duplicated the Alfred theme, reordered a few sections to aklign them and did a side-by-side comparison. The only structural difference looks to be the inclusion of the credit attribute. 

 

2022-10-30-11_52_14.thumb.png.289c64df6ea68c3568441f9eef233465.png

 

In terms of moving to using user configuration over environment variables, I'm going to switch things over. I've done some preliminary testing (and I think longer term I'll switch to the simpler AppleScript code, but the JavaScript I have in place does appear to work) and it seems to be working okay on a test workflow I've created, but I'll need to ensure I'm doing more thorough testing on the existing workflows - I don't want to inadvertently break something and miss it through lack of testing. I'll update the posts on the forum with the screenshots and note updates to use user configuration as I apply them.

Link to comment
Share on other sites

  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...