Here’s one to pop up a palette and pass the text along: You could run any macro you like at this point. In the AppleScript above a Keyboard Maestro macro ‘PopclipKeyboardMaestroBridge’ is invoked and the selected text passed to it. And, of course, you can get PopClip extensions to do much more, using various scripting languages, for example Ruby or Shell Script. More information on this topic is available here. If you double click on this it will – possibly after a warning – install the extension into PopClip. Then zip them up into a file with extension ‘popclipext’. In fact I want you to feel free to edit the file: Go ahead and cut the above two from this page and paste them into your editor as ist and KMBridge.applescript. Which is why I haven’t attempted to furnish a single file for you to download. You can create these two files with any plain text editor, add them to a zip file and rename that zip file to have the extension ‘popclipext’. Tell application "Keyboard Maestro Engine"ĭo script "PopclipKeyboardMaestroBridge" with parameter " is substituted for by the selected text when the PopClip menu was popped up. The PopClip ExtensionĪ PopClip Extension is a zip file, containing at least two other files. I’m going to describe how you build all three. The Keyboard Maestro macros that can be invoked from the palette.This Keyboard Maestro macro that pops up a palette, which enables you to select another Keyboard Maestro macro.A PopClip extension that invokes a Keyboard Maestro macro.The first thing to say is that you could build some of this without Keyboard Maestro – though the palette of actions in the second graphic wouldn’t be possible. You could do anything you please with the text. (It’s the ‘AB’ icon.) But that’s just a simple example. The result of the text transformation is typed in over the selected text. Under the banner ‘Popclip Bridge Macro Group’ you see a whole palette of macros you can choose from. One in particular is the first asterisk (‘*’) – because I’m too lazy or unskilled to create an icon – which is the PopClip extension I built. Some of the items on the menu are standard and some are from among the many that others have built. In the above the white on a black background is the pop up that PopClip offers you. You would select the text with the cursor and up would pop a menu: Suppose you are typing text in an editor and you want to uppercase a portion of it. Here’s an example of this automation in action. Given its extensibility as a method, it seemed more appropriate to dedicate this post to how to build. Since I mentioned it on various forums people have wanted it – or at least to know how I built it. About 18 months ago I built some automation on Mac that I found rather handy.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |