I was testing out this macro (the vs.1 version), and ended up with a lot of new "LOCAL_..." variables showing up in the list that I won't be using, and can't remove via accessing the Variables section in preferences. Is there some way to batch remove dictionary values/variables from the variables list (or altogether)?
Window Information Tools - Macro Library - Keyboard Maestro Discourse
AppleScript and KM measure windows’ bounds differently.
KM uses Width and Height whereas AS uses Distance from the Left and Distance from the top.
Usage: Anytime you need to position 1 or more Finder windows on your screen, first set the relevant windows where you want it/ them - then run the macro and you'll get the AppleScript bounds.
Should you need the bounds for a KM macro where you use "Move and Resize Window" you have to do some math (simple ~).
See this explanation here Copy the AppleScript Bounds Property of the Front Finder Window to the Clipboard
Dictionaries are deleted when they are empty. Perhaps the easiest way to do that is:
Okay great. Looks like I should only have to do this about 80 times for the following dictionaries:
These all got created by these "Zabobon's Dynamic Workspaces v5.02" macros that I was testing out but no longer want to use due to the hard limitation of only being able to save something like 8 windows maximum per app for any saved workspace.
I found them all by searching the Keyboard Maestro Macros.kmsync file. I think these are the ones that contain all of the "LOCAL__" variables that keep showing up in the variable name lookup list (⌃⌘v).
I'm guessing the ones like "DCT__WindowName%Variable%LOCAL__Slot%" are just part of the macros to set up the dictionaries, so I probably can skip those.
Actually, after deleting the "Zabobon's Dynamic Workspaces v5.02" macro group, it looks like all the variables associated with it are no longer in the variable lookup list.
If you’re still looking to delete a bunch of dictionaries have a look at this post
General caution: Because you are fixed on KM 9.2 you'll have triage any answers to make sure they don't contain v10-only actions etc... Also worth a review of the "Dictionaries" Wiki page and, since there's some confusion about "local" variables, a look at "Scope" in the "Variables" section of the KM manual would be useful.
As @tiffle's pointed out, you can automate this in KM.
If you mean "in the Variables pane of KM's Preferences" -- Dictionaries don't show up there. But it is easy enough to generate a list:
List Dictionaries.kmmacros (2.9 KB)
You may want to go through the list in a text editor to remove entries for Dictionaries you want to keep, then process your edited list. But I'll take a punt that any Dictionary whose name starts with
DCT__ is one of @Zabobon's and:
Delete Zab's Dicts.kmmacros (3.8 KB)
...and you can easily change the "If" action's condition for more precision or a different match string.
Insert Variable by Name... ⌃⌘V seems to work this way:
It will list the names of all Variables (Global, Local, Instance) used in any Macro in the Library.
It will also list the name of any Global Variable that is storing a value - even if that Global Variable is no longer used in any Macro.
@Nige_S Is there any way to do something similar to hide variables based on the variable name? I am trying to find a way to hide all of the "
local" variables in the ⌃⇧V (variable selection) list (also listed under
Variable when using the
Insert Token dropdown selector, but can't seem to find a way. Using the
Set Variable action doesn't seem to work when trying to set the variable to
%Delete%, even though the variables have no value, and are only listed in one macro that I've never used.