MACRO: [KMFAM] Favorite Actions and Macros

search
workflow
tools

#121

Tom -

Thanks for the reply, and I’m really glad you posted it.

First, let me say that you owe it to yourself to not let the distraction prevent you from using the macro. I know you missed it, but here’s a link to a video that demonstrates the macro:

OK, now on to your criticism(s). Please know that this is all done with a huge smile on my face.

all-caps words/phrases

  1. I always capitalize the first “MACRO:”. KMFAM is an acronym, and as such is a valid use of capitalization.
  2. UPDATED. Calling attention to the fact that the macro has been updated.
  3. UPDATED. Calling attention to the fact the Video has been updated.

That’s it. Unless you’re complaining about capitalizing “OS/X” or “PDT”. :slight_smile:

This has to be the shortest macro post I’ve ever made.

a cheaply flashing GIF

Valid. It was one of my first attempts. Perhaps I should just feature the video.

When we’re done having fun with this, I’ll edit the post, assuming I can still edit it.


#122

@DanThomas, @Tom, and all:

First, let me reaffirm this is one of the best KM tools that has ever been produced. I use it many, many times a day (when writing macros), and it greatly reduces my workflow time, while making my macros more consistent, robust, bug-free.


[quote="Tom, post:119, topic:4854"]
cheaply flashing GIF, which didn't tell me anything of interest.

The GIF made me so nervous that I killed the tab
[/quote]

@Tom, I don't see anything "cheap" about it, and of course animated GIFs do "flash" as they change frames.

While I found it distracting, it certainly did not make me nervous.

@DanThomas,

Having said that, although in general I like animated GIFs, in this case it moves too fast through a complex process, so that the uninformed user can't really learn much from it.

Since you have a great video, I'd lose the GIF, replace it with a succinct outline of the purpose and use of your tool, and then have the link to the video.  I don't know how others might view this, but I usually won't bother with a video (because it always takes more time) unless I have been first convinced by a brief description of the video.

Hope this helps.

#123

@Tom - I’ve changed the original post.

This discussion has helped me a lot, and it will help with future macros, so I can’t thank you enough.

But I can, at least, thank you, so… Thanks! :smile:


#124

I just read this and think this is a fabulous piece of work! Hats of to @DanThomas:)

I then tried to install, downloaded zipfile, unpacked it, moved it to desktop and clicked the installer i get an apple event time out error.
The install works just fine and i can set the resource files. But….when i want to use the macro’s they simply don’t fire/work. If i change the triggers to F13 it doesn’t work. If i go into the kmfam macro and use ‘try’ it DOES work…? What’s happening here? I do work on a retina mac so maybe that’s the problem. I tried quitting the KM engine, reboot and reinstall but no joy…

I’d love to work with this so maybe there’s a solution to be found somewhere or something i missed. Any help is appreciated, thanx.

os x 10.12.6
imac (retina 5k, 27-inch, late 2014)
memory 16gb
amd radeon r9 m295x 4096mb

KM 7.3.1


#125

Obviously a nit but can you correct the spelling of “Actions” on the installer? You have “Actions”. :slight_smile:


#126

That is very strange. I have installed the KMFAM macro system on several Macs now without any issues.

I’d suggest that you reboot your Mac and run the KMFAM Macros Installer.v1.1.app again.

The “Try” button is just for one Action, it is NOT to try running a macro.
By default I believe that @DanThomas uses the following hotkeys to trigger his macros:

  • ⌘F15 – trigger the [KMFAM] Add Action(s)
  • F15 – trigger the [KMFAM] Select or Switch to Insert Action by Name

Of course, you will need to run the “Add Actions()” macro first to add some Actions to the system.

You may want to view @DanThomas’ video to understand how to use his macros:


#127

As i already noted in my previous post, quitting km engine, reboot and reinstall didn’t work (the same problem).

I did watch the video. I thought maybe it would work if i changed the triggers to use f13 (to rule out keyboard issues).

I used ‘try’ on one action, namely ‘execute macro’ within one of the kmfam macros. It fired up and i added the action as a test, which worked…

(As a side note: i have used ‘try’ on all actions within a macro at the same time and this worked. I have to say these macro’s were not very big…)

So the problem remains:
The macros simply won’t trigger. The log files also mention nothing, as in nothing is being triggered.


#128

That most likely means one or both of these:

  1. Make sure the macos are in a group that is global, and is enabled.
  2. Make sure the macros are enabled.

For more info, see Troubleshooting (KM Wiki)


#129

Thanx for the quick response, this i haven’t checked properly (aarrgh!). I will check when i’m at work (the Netherlands here, it’s 08:00 in the morning) and report back.

Though this still doesn’t explain the time-out error? Any ideas why that happens? It comes up the moment i run the installer.

EDIT:
After some more testing i found the unlikely culprit. It seems the app Keyboard Maestro was duplicated in my Applications folder (ahem…:rolling_eyes:). And so i had two KM apps, the second one was called Keyboard Maestro 2. This was the app that was opened each time, opening from the dock…sigh

I deleted the second app, rebooted and installed KMFAM again (still got the time-out error ?) but this time everything seems to work fine. I’ll leave it at that and start enjoying this fine set of macro’s.


#130

Is it possible to share a bundle of all the favourite actions and macros I created with other people?

Something that other KM users can open and all the favourite actions/macros will be loaded into their library?


#131

Just thinking out loud here…

If you’re familiar with JSON, then it would be doable.

  1. Make a copy of your FavoriteActions.json file (paths are listed below).

  2. Open the copied JSON file in an editor, and apply some sort of JSON formatter to it.

  3. Edit the file to include only the actions you want to share.

  4. Find the associated images in the Images folder.

  5. Package everything up and give it to someone.

  6. They’d have to merge the JSON into their own, probably by hand.

  7. And they’d need to copy the images into their Images folder.

They should probably back up their KMFAM Resources folder first. :slight_smile:

  • You can find out where your Resources folder is by inspecting the KM variable “DND__kmfamResourcesFolderPath”.

  • The current prefs are in a subfolder of the “prefs” folder, with a name like “.prefs”.

  • From there, you can find the FavoriteActions.json file, and the Images folder.

That’s all I have time for. Someone could definitely automate this, if they were so inclined. If someone wants to tackle this, I’ll answer questions (to a reasonable degree).


#132

This is absolute wizardry. Thanks for making it available to everyone here.

I know @peternlewis has seen this, and it could very well be an official feature one day. My only worry is that this is so well polished that Peter has no incentive to actually code the feature himself :sweat_smile:


#133

Tried to use this installer on Sierra; launched from the Downloads folder; app first requested I help it find itself??? Very weird; would have expected an Applet to use ‘Path to Me’ in its script to find itself. Anyway, crashed when I selected it in the Downloads folder.

Next attempt it skipped the path dialog; assume it is now in a property; it then asked where to store the macros; defaulted to Documents folder. I navigated to ~/Library/Application Supprt/Keyboard Maestro/Third Party Macros; it promptly crashed again.

Tried again, navigated to the same folder; now it repeatedly reports 'Can’t locate [file names] in ‘/private/var/tmp[…, etc.]’

What’s the trick to getting this installer to work?


#134

Whoops, found the suggestion to add to Applications folder first; now I get the ‘timed out’ message. Reboot brings no joy.

Can I manually extract the files from the applet package? I see them, but can’t tell what folder hierarchy they require in final resting place.


#135

It’s been a while since I looked at the code, but see if this helps:

Inside the installer package, find this file:

Contents/Resources/Scripts/KMFAM Macros Installer.kmmacros

Double-click it to import it into KM. Then try running the macro it imported, and see if that works. Let me know if you need more info.


#136

This is outrageously brilliant!

I can’t believe I put off looking at this for so long!

A very belated thank you @DanThomas!


#137

FYI if I try to install the support files in a desired location (vs default), the installation app fails :stuck_out_tongue:


#138

@DanThomas, yeah, the above (KMFAM install failing if try to specify default resource folder) is a big problem: if I accept the default location, the support files are in a temp folder that disappears, and then KMFAM doesn’t work anymore. Just happened again. (Which is why I’d stopped using KMFAM for awhile!)

Is there an easy way to re-download the support files and put them where I want, and then tell KMFAM where they are so I don’t have to lose my customizations?


#139

@JMichaelTX - Jim, do you have any ideas here? You know more about how the Mac OS works with stuff like this than I do.

Thanks!


#140

A KM.D. is not an easy task at all. It takes blood, sweat and a lot of coffee. Congratulations on this outstanding feat. Well done!