GatorMapi Posted October 30, 2021 Share Posted October 30, 2021 How would I randomize a group of text in a paragraph with the phrases separated by commas? Is there such a thing/workflow? Link to comment
vitor Posted October 31, 2021 Share Posted October 31, 2021 (edited) It’s definitely doable. Could you provide an example input and desired output? And how would you like it to work? Where would the text come from (e.g. the clipboard)? Edited October 31, 2021 by vitor Link to comment
GatorMapi Posted October 31, 2021 Author Share Posted October 31, 2021 2 hours ago, vitor said: It’s definitely doable? Could you provide an example input and desired output? And how would you like it to work? Where would the text come from (e.g. the clipboard)? Sure. For example I'd like to turn The, cat, jumps, over, the, dog, and, the cow, jumps, over, the, moon into moon, dog, jumps, cat, over, the cow, the Link to comment
vitor Posted October 31, 2021 Share Posted October 31, 2021 You haven’t specified the interface, so I built it so that you select the text → press the keyboard shortcut → the text is replaced with the randomised words. Only the Run Script must remain intact, so if you want to change how the input is fed into it and where it goes to after, you can adapt it with Alfred’s GUI tools, no further coding necessary. GatorMapi 1 Link to comment
GatorMapi Posted November 1, 2021 Author Share Posted November 1, 2021 On 10/31/2021 at 4:35 PM, vitor said: You haven’t specified the interface, so I built it so that you select the text → press the keyboard shortcut → the text is replaced with the randomised words. Only the Run Script must remain intact, so if you want to change how the input is fed into it and where it goes to after, you can adapt it with Alfred’s GUI tools, no further coding necessary. It works beautifully. Thank you. 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