rob213 Posted July 23, 2022 Share Posted July 23, 2022 3 minutes ago, vitor said: Have you seen the annotated screenshot? Now I understand. thanks to you. Link to comment
rob213 Posted July 23, 2022 Share Posted July 23, 2022 1 hour ago, raguay.customct said: In the environment variables, there is one called `compiled`. If it’s zero, you have to have nodejs on your system and set it’s path in the `nodeapp` environment variable. If it’s one, it will try to run the compiled program I made for it. It was already set to 1 when I sent you the error debug Do I have to change script to Alfred 5 somewhere ? thank you Link to comment
raguay.customct Posted July 25, 2022 Author Share Posted July 25, 2022 On 7/23/2022 at 8:34 PM, rob213 said: It was already set to 1 when I sent you the error debug Do I have to change script to Alfred 5 somewhere ? thank you Okay. It is set to use the compiled program I wrote (a compiled version of the JavaScript code), but that program isn’t with the workflow for some reason. You can try to re-download the workflow to get the program or install nodejs, set `compiled` to 0, and set `nodeapp` to the complete path to your copy of nodejs. Link to comment
raguay.customct Posted July 25, 2022 Author Share Posted July 25, 2022 I use the compiled program on my M1 system and my Intel system. One system is using Alfred 5 and the other is still using Alfred 4. So the program should work on both types of systems and both builds of Alfred. Therefore, it looks like the program is missing or messed up in the download. rob213 1 Link to comment
rob213 Posted July 26, 2022 Share Posted July 26, 2022 @raguay.customct OK thanks very much Link to comment
AndrewKornberg Posted August 5, 2022 Share Posted August 5, 2022 Hi I get an error which stops the workflow. My environment is as below - I have the full version (V9) and I have changed it from textsoapagent.app to textsoap8 to no avail. I also changed compiled fro 1 to 0 and back. Thanks for your help. Andrew Link to comment
raguay.customct Posted August 5, 2022 Author Share Posted August 5, 2022 If you change `compiled` to 0, you have to have nodejs installed and the path to in in the nodeapp variable. The error is that I compiled the program. You have to click cancel, go to System Preferences and the Security & Privacy, and then on the General. At the bottom, it gives you the option to run anyway. Click it and rerun the workflow and it should work. Link to comment
AndrewKornberg Posted August 5, 2022 Share Posted August 5, 2022 Great - that fixed that issue. I changed the variable to textsoap8 as I have the direct full version. I then used tc:get a list of cleaners I get a message the list is saved However, when I run tc:select from a list of cleaners, nothing happens - it does a google search. Should I leave it as textsoapagent? Thanks Andrew Link to comment
AndrewKornberg Posted August 5, 2022 Share Posted August 5, 2022 Further to the last post, if I do use textsoapagent.app, I do get a list of all the cleaners but nothing happens on the selected text. Link to comment
raguay.customct Posted August 6, 2022 Author Share Posted August 6, 2022 I would need the debugger output to see what is happening. Link to comment
AndrewKornberg Posted August 6, 2022 Share Posted August 6, 2022 I turned on the debugger - husge amount of data. I have tried selecting a work in word and then running TC:Uppercase (the cleaner appears) - the word in word, gets pasted by what was on the Textsoap clipboard. The word wasn't copied and then acted on and repasted. What do you need from the debug? Thanks Link to comment
raguay.customct Posted August 6, 2022 Author Share Posted August 6, 2022 (edited) Okay, it works. The `tc:clean` leaves the processed text in the clipboard so the user can select text to remove and paste it themselves. I use that a lot to first look at it in the clipboard before pasting. `tc:fulla` will paste it into the topmost application. This can be ran by a hotkey to take the current selection, process it, and paste it in the place of the selection. You will have to set the hotkey yourself. That is very handy for processing that we don’t have to inspect first. The debugger showed the text you were passing around. That is way it has a lot of data. Try it out on small data first to get used to the different triggers. Edited August 6, 2022 by raguay.customct spelling mistake Link to comment
AndrewKornberg Posted August 6, 2022 Share Posted August 6, 2022 Unfortunately doesn't. Image 1 is what is on the Textcleaner clipboard. Image 2 is the text selected: I then run tc:full All I see is a google search. This workflow is really important to me as I do a lot of TC transformations. My current environement is this: So sorry being a bother - thanks for helping me. Andrew Link to comment
raguay.customct Posted August 8, 2022 Author Share Posted August 8, 2022 (edited) I’m sorry, you miss understood my last comment. You have to use the hotkey (you have to set it yourself in the workflow) in order to copy the selection into the cleaner. It will not show inside of the TextSoap program, but will be in your clipboard. `tc:full` and `tc:fulla` uses the text in the current system clipboard. You then select the cleaner. `tc:fulla` will then paste the result into the topmost application while `tc:full` leaves it in the system clipboard. A keyword in the Alfred Prompt isn’t able to acquire the current selection. Only a hotkey can do that. I don’t understand why your first inquiry shows tc:full showing your cleaners, but the latest picture doesn’t show any. Did you change something? In my config using TextSoap 9, the agents name is textsoapAgent.app. I don’t remember the other versions names were. It looks to me that you have it set to the TextSoap.app itself which will not work. You have to have it set to the name of your TextSoap Agent (which means it needs to be running on your system as well). You have to download it separately (See the Agent tab in the TextSoap configuration). Edited August 8, 2022 by raguay.customct Spelling Link to comment
raguay.customct Posted August 8, 2022 Author Share Posted August 8, 2022 This shows where you set your hotkey in the workflow. You will have to scroll down to it. Link to comment
AndrewKornberg Posted August 9, 2022 Share Posted August 9, 2022 It works!!! Perfect with a big thanks. Just one question: Edit list of cleaners - how does that work? When I select that, nothing seems to happen. Thanks again Andrew Link to comment
raguay.customct Posted August 9, 2022 Author Share Posted August 9, 2022 (edited) Run the `tc:seteditor` command. Start typing the name of your editor you want to use. It should show it in the dropdown area. Select the editor you would like to use and then you can use the `tc:editlist` to edit the list of you most used cleaners. Edited August 9, 2022 by raguay.customct Link to comment
AndrewKornberg Posted August 9, 2022 Share Posted August 9, 2022 Figured that one out - if I edit the list and move the cleaners around in an order I like, will that sort the cleaners for use? Link to comment
raguay.customct Posted August 10, 2022 Author Share Posted August 10, 2022 The first time it would, but after that Alfred sorts them by which one you use the most. Link to comment
AndrewKornberg Posted August 10, 2022 Share Posted August 10, 2022 Thanks and have a great day Link to comment
MariaPaula Posted November 21, 2022 Share Posted November 21, 2022 Hi! First I just wanted to say I love your workflow, I've been using it for a long time, thank you. With TextSoap, I only ever use two custom cleaners. I wonder if it's possible to change 'tc: fulla' to trigger a specific cleaner trough a hotkey, instead of showing a list of all cleaners available. Is that doable? I don't have a lot of knowledge in programming. Link to comment
raguay.customct Posted November 22, 2022 Author Share Posted November 22, 2022 If you download the new version for Alfred 5: https://github.com/raguay/MyAlfred/blob/master/Alfred 5/TextSoap Cleaners 9.alfredworkflow The topmost hotkey shows how you can make a hotkey for a particular cleaner. Just put the cleaner name in the "Text" parameter. Also, if you check the "paste" toggle, it will automatically paste into the top application. Link to comment
AndrewKornberg Posted November 22, 2022 Share Posted November 22, 2022 I broke it! Never ever upgrade without making sure you know your variables. I upgraded to the latest version as above and TC: has stopped working tc:full brings up google. Please help! Link to comment
AndrewKornberg Posted November 22, 2022 Share Posted November 22, 2022 Hi I ran get a list of cleaners I then ran setthe editor I then ran edit list of cleaners and it was empty!!! What have I done? Thanks Andrew Link to comment
Stephen_C Posted November 22, 2022 Share Posted November 22, 2022 (edited) @AndrewKornberg do you by any chance use Dropbox to sync your Alfred preferences? If so, this thread may help. Edit: I have just seen your last post - posted at the same time as mine - which sounds as though my recommendation is irrelevant (as you can run the workflow itself): sorry. Stephen Edited November 22, 2022 by Stephen_C Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now