I don’t know where the error is, to be honest, these codes and files were generated by chatGPT for me. (A macOS folder that you have configured as a vault in Obsidian.) The vault name. (Info on Obsidian community plugins) You must know the name of the destination vault in Obsidian. The Advanced Obsidian URI community plug-in for Obsidian must be installed. To get the missing extensions back: Make sure you are running the latest version of PopClip (2021.10). This extension snippet will copy and insert the current selection in a document or web page to Obsidian. The default region is Australia, but you can choose between Italy, US and UK (or you can add your favorite regions by changing values: au, it, us, uk). Those of you testing the betas of macOS Monterey may have discovered some PopClip extensions missing, and the message Cannot Install Extension No such executable file: /usr/bin/php when trying to install them. I installed this plugin normally, but when I selected text and the pop-up dialog box appeared, the Translate to English button was grayed out and I couldn’t click it. Hi, I made the extension for JustWatch because I needed it for myself. There is another icon.png file, but it’s not important. This file works properly in the Terminal.app. Prompt=sys.argv + "\nTranslate the above text to English:", This is the content of translation.py: #!/Users/zmke/opt/anaconda3/bin/python And writing it back modified even nicer.I am trying to write a PopClip extension to translate selected text into English. Having got this far anything else is just a getting the text is quite a big deal. PopClip appears when you select text with your mouse on your Mac. PopClip for Mac allows you to have Cut, Copy, and Paste at your fingertips amongst many other features. Obvious examples where this would be useful include Markdown. This is a collection of my own extensions for the Mac app PopClip. PopClip puts Cut, Copy and Paste (and more) at your fingertips, with a popover menu which appears when you select text. I’ve tested this with Sublime Text and it wraps the selected text nicely and substitutes back in. The second uses Insert Text By Typing to wrap the input text with "BLAH"s. The trigger value is indeed filled in with the selected text. One uses Display Text with the following in it: Right now I’ve got two actions working in the test script: That shell variable is what PopClip uses to pass the selected text when it’s invoked. Osascript -e “tell application “Keyboard Maestro Engine” to do script “Test One” with parameter “$POPCLIP_TEXT”” It uses a one-line shell script with the following in: Thanks happy to report I’ve got a VERY basic PopClip extension working… It would just be a shame to have to re-implement the PopClip extensions and functions. However, I can see KM and PC “clashing” in this case, so PC would have to go. No, if a trigger for a KM workflow could be text selection then PopClip isn’t needed. Quite possibly Option 1 is better than Option 2. What would be really nice would be to build an extension that connected to a Keyboard Maestro workflow.Īs PC extension actions can be shell scripts, (built in interpreter) PHP scripts, likewise Ruby, I don’t think this is beyond the realms of possibility. You can build your own PopClip extensions very easily - and indeed I cloned the “upper case” one and examined its contents yesterday. A third is to do the arithmetic in the selected text. A simple example of an installable one is changing the text to upper case. Please be aware that PopClip extensions can contain arbitrary executable code. Run the following command at the Terminal, then Quit and restart PopClip: defaults write LoadUnsignedExtensions -bool YES. The built in ones do things like copiying to the clipboard. If you find this gets annoying while you are testing your work, you can turn off the warning. A few are built in but many are installable. … When you select some text it immediately pops up a bar of actions.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |