MGHollander Posted May 11, 2021 Share Posted May 11, 2021 (edited) An Alfred 4 workflow for generating lorem ipsum dummy text using joshtronic/php-loremipsum. Installation Alfred Powerpack is required to use workflows. PHP is no longer supported out of the box since MacOS Monterey. Therefore you need to install PHP 7 or above, for example via [Homebrew](https://brew.sh/). Download the workflow Double click the .alfredworkflow file to install Usage Use the keyword lip to trigger the workflow. Select format you want to generate (characters, words, sentences, or paragraphs). (Optional) Add options to the format you would like to generate. Press enter to copy to clipboard and paste into the forefront application. Options There are multiple options to enhance the output. Option Usage Description length lip 5 Default: 1 Generates 5 instances of the format you have chosen tags lip 5 p Default: no tags Generates 5 instances of the format you have chosen and wraps each instance in a <p> tag. You can wrap an instance in multiple tags by comma separating the tags like lip 5 div,p. array lip 5 p true Default: false Generates 5 instances of the format you have chosen, wraps each instance in a <p> tag and outputs it as a PHP array with a value for each instance. You can set the tags to false or 0 if you do not want to wrap the output into tags. Credits Thanks to joshtronic/php-loremipsum Forked from alexchantastic/alfred-lipsum-workflow Source: https://github.com/MGHollander/alfred-lipsum-workflow Edited November 5, 2021 by MGHollander New version Link to comment
nemrod Posted November 3, 2021 Share Posted November 3, 2021 Hello MGHollander It doesn't work in Monterey (like all other lipsum workflow) but with yours I don't get the usr/bin/php error… I get nothing… no feedback so for me, it's encouraging! https://loom.com/share/3a517bd7e3fa4005ae0372dea6a73461Can you do something? please Link to comment
paulw Posted November 3, 2021 Share Posted November 3, 2021 4 hours ago, nemrod said: Hello MGHollander It doesn't work in Monterey (like all other lipsum workflow) but with yours I don't get the usr/bin/php error… I get nothing… no feedback so for me, it's encouraging! https://loom.com/share/3a517bd7e3fa4005ae0372dea6a73461Can you do something? please Alex Chan's workflow, which this one was forked from, was just updated to use Python instead of PHP, and it works with Monterey now Link to comment
MGHollander Posted November 3, 2021 Author Share Posted November 3, 2021 Hi guys, I haven't updated to Monterey myself, yet. I will do so soon and I will look into the issue then as well. I'm not familiar with Python, so I don't know if that will be a short term option for my version of the workflow. I'll keep you posted. Link to comment
deanishe Posted November 3, 2021 Share Posted November 3, 2021 3 minutes ago, MGHollander said: I'm not familiar with Python, so I don't know if that will be a short term option for my version of the workflow. Python's in much the same place as PHP on macOS right now. You either need Apple's developer tools or Homebrew to install Python 3. AFAIK, Ruby's still installed by default, but I wouldn't count on that lasting long, either. Link to comment
nemrod Posted November 4, 2021 Share Posted November 4, 2021 @paulwthanks I've tried this one without success. I didn't see the update. Now it works, but I've to install Command Line developer tools Link to comment
MGHollander Posted November 4, 2021 Author Share Posted November 4, 2021 I've done some research and I think that I will continue using PHP for now. So if you have installed PHP, you will be able to use my version of the workflow. I do need to make some changes, though. I expect to update the workflow in the next 48 hours. paulw 1 Link to comment
MGHollander Posted November 5, 2021 Author Share Posted November 5, 2021 (edited) I've updated the workflow. You need to have PHP installed to use it. For the rest it's the same. You can download the new version here: https://github.com/MGHollander/alfred-lipsum-workflow/releases/latest Edited November 5, 2021 by MGHollander paulw 1 Link to comment
Sridhar Katakam Posted January 5, 2023 Share Posted January 5, 2023 Get these above the copied text: Deprecated: Implicit conversion from float 26.293248036859712 to int loses precision in /Users/sridharkatakam/Library/Mobile Documents/com~apple~CloudDocs/Alfred/Alfred.alfredpreferences/workflows/user.workflow.C6A59FFF-2BC0-4534-AE04-9524798EA5E8/lib/LoremIpsum.php on line 138 Deprecated: Implicit conversion from float 27.211744218534562 to int loses precision in /Users/sridharkatakam/Library/Mobile Documents/com~apple~CloudDocs/Alfred/Alfred.alfredpreferences/workflows/user.workflow.C6A59FFF-2BC0-4534-AE04-9524798EA5E8/lib/LoremIpsum.php on line 138 Deprecated: Implicit conversion from float 29.565581188953264 to int loses precision in /Users/sridharkatakam/Library/Mobile Documents/com~apple~CloudDocs/Alfred/Alfred.alfredpreferences/workflows/user.workflow.C6A59FFF-2BC0-4534-AE04-9524798EA5E8/lib/LoremIpsum.php on line 138 Deprecated: Implicit conversion from float 26.374212109504338 to int loses precision in /Users/sridharkatakam/Library/Mobile Documents/com~apple~CloudDocs/Alfred/Alfred.alfredpreferences/workflows/user.workflow.C6A59FFF-2BC0-4534-AE04-9524798EA5E8/lib/LoremIpsum.php on line 138 Deprecated: Implicit conversion from float 27.043958976941635 to int loses precision in /Users/sridharkatakam/Library/Mobile Documents/com~apple~CloudDocs/Alfred/Alfred.alfredpreferences/workflows/user.workflow.C6A59FFF-2BC0-4534-AE04-9524798EA5E8/lib/LoremIpsum.php on line 138 Deprecated: Implicit conversion from float 24.748645167314802 to int loses precision in /Users/sridharkatakam/Library/Mobile Documents/com~apple~CloudDocs/Alfred/Alfred.alfredpreferences/workflows/user.workflow.C6A59FFF-2BC0-4534-AE04-9524798EA5E8/lib/LoremIpsum.php on line 138 Grug 1 Link to comment
Vero Posted February 16 Share Posted February 16 For anyone seeking a Lorem Ipsum workflow, this is a simple one with no dependencies by @alexchantastic which you can download from the Gallery: https://alfred.app/workflows/alexchantastic/lorem-ipsum/ paulw 1 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