If it is all helpful to anyone, here is one with just the folding portion and a prompt for the name of the fold, which I found myself using often. You can copy part of the text of the macro you are uploading and then have that be ready to paste into the prompt before you select your text and run the macro.
You put me on a hunt. I use Ultra Claw (Command+Option+Control+Shift (⌘⌥⌃⇧)) + key (hyper key is a new name for me).
I also added this to your macro so you can easily remove modifiers if you are ever referencing them and easier to read then what I have been using above to discribe them with TextExpander.
If you type in K on the pop up search and then the down arrow once you will see this option.
⌘+⌥+⌃+⇧+key
I may have referenced it more complicated than it needs to be.
There may be something wrong with my system but this link Immediate Actions doesn't work properly for me. Also for what it is worth some of these "Immediate Actions" already have shortcuts like bold ⌘+band italics ⌘+i as I am sure you well know.
⌘+⌥+⌃+⇧+L: Doesn't make a link but it looks like there are two link generators perhaps of different formats?
Can you explain this portion of your macro? When holding Control+Shift or is that just typing those modifiers?
That action opens this macro (Augment or Transform Text) in the Keyboard Maestro Editor. That occurs per the instructions in the main Prompt With List.
BTW, @skillet, here's a tip when uploading screenshots/images to the forum...
If you set the editor to a narrower width before you take the screenshot (or upload a macro), the actions will be easier to read. For example, here's the Switch/Case action at a narrower width.
Sure. Some that you want might already be in a version I’m testing that I’ll be sharing on a day or two. But please suggest now and I’ll try to get them in that version.
Oh good point, funny thing is I actually did shrink that down but not enough. That is a lot easier to read!
Oh great, nice to know.For some reason I get this pop up when I press that keyboard shortcut. Probably a system setting I can change though. Sounds like you don't get that popup.
In local_Additions added Big, Small, Superscript, Subscript, Acronym, Heading 1 to Heading 6.
A Hyper+l (i.e., ⌃⌥⇧⌘+l) Immediate Action trigger was configured and intended for Link [text](𝘜𝘙𝘓), but there was a configuration error in local_Additions: the <hk>l: prefix was missing. It has been corrected and is now: <hk>l:[<text>](A_URL)__l1 • Link [text](𝘜𝘙𝘓)
Uses the Copy action and the %ActionResult% token rather than the CLIPBOARDSEED() function. A 0.5 second Pause is no longer required due to the new approach.
If no text is selected and the Copy action (or Type a Keystroke [⌘C] action) runs, macOS generates a pop sound (at low volume).
I love your references to things like this, it is very helpful to see where these things changed without having to search them. Thank you for your updates and notes.
In this forum, wrapping code in JavaScript or AppleScript appears the same. On the old AppleScript forum, code would open in your default AppleScript editor, and on their new Discourse-based forum, a box appears at the bottom with an "Open in Script Editor" option.
If the code block formatting doesn't provide any of these functions and simply copies the code like plain text, what is the purpose of specifying a particular language when wrapping code?Saving Persistent Values - Code Exchange - MacScripter
use framework "Foundation"
use scripting additions
--the preference value is retrieved at the beginning of the script
set thePreference to getPreference()
--the body of the script goes here and typically sets a preference value
set preferenceValue to {"aa", 3}
--the preference value is saved at the end of script
writePreference(preferenceValue)
on getPreference()
set theDefaults to current application's NSUserDefaults's alloc()'s initWithSuiteName:"com.peavine.test"
theDefaults's registerDefaults:{keyOne:{"", 0}} --set default value as desired
return keyOne of theDefaults as list
end getPreference
on writePreference(theValue)
set theDefaults to current application's NSUserDefaults's alloc()'s initWithSuiteName:"com.peavine.test"
set keyOne of theDefaults to theValue
end writePreference
Inspect the page -- you'll see it's a button with an applescript:// URL and the (URL-encoded) script as a parameter.
You're into JavaScript at the moment -- it shouldn't take much to have JS rewrite any code block in your frontmost document window to include the button and script. Whether that's any easier than parsing the Clipboard on any change (macro only active for a KM Forum page) and acting according to content is another matter...
I'm saying that when you load the page in your browser you could run some JS to add the button for you. Not that you should inflict such on every reader of the Forum
It makes sense to have an "open in your AppleScript editor" button on an AppleScript forum -- not so much here where the snippet may not be AS, may not make sense outside of a KM action, etc.