![]() |
Looking for an app (script?) to alphabetize a list - Printable Version +- MacResource (https://forums.macresource.com) +-- Forum: My Category (https://forums.macresource.com/forumdisplay.php?fid=1) +--- Forum: Tips and Deals (https://forums.macresource.com/forumdisplay.php?fid=3) +--- Thread: Looking for an app (script?) to alphabetize a list (/showthread.php?tid=225146) Pages:
1
2
|
Looking for an app (script?) to alphabetize a list - DeusxMac - 01-25-2019 Haven't needed this ability for a looong time, but I'm sure I used to have something that could alphabetize a selected list of words/sentences, but I'm not seeing this capability in anything I've now got installed. Not in TextEdit. Not in Notes. Not in Pages. Not in TextWrangler. Search of the Apple App Store doesn't zero in on anything, nor does MacUpdate. Am I just overlooking this capability somewhere, or is it now only in high end word processing apps? TIA Re: Looking for an app (script?) to alphabetize a list - kurtzie - 01-25-2019 Paste into a spreadsheets and sort? Numbers, Libre Office, Excel? Re: Looking for an app (script?) to alphabetize a list - Buzz - 01-25-2019 Go into Word (or other word processing program w/ adequate functionality), do a Find & Replace for the space character " " with a carriage return... in Word it's "^p". That gives you a giant list of your words. Use the Sort function (in Word it's under the "Table" menu) to sort by 'Text' in ascending order, and you have an alphabetized list. == Re: Looking for an app (script?) to alphabetize a list - dfilpus - 01-25-2019 BBEdit can sort text lines. Re: Looking for an app (script?) to alphabetize a list - NewtonMP2100 - 01-25-2019 .....fave app is potato skins....filled with........ Re: Looking for an app (script?) to alphabetize a list - TheTominator - 01-25-2019 DeusxMac wrote: My version of TextWrangler has it. (version 5.5.2) Select text. Select from the menu Text->Sort Lines... Of course, Terminal can do it. $ sort unsorted.txt > sorted.txt Re: Looking for an app (script?) to alphabetize a list - Bernie - 01-25-2019 Try this. Works within the app you are presently using in most cases. Old school Mac software. TextSoap 8 TextSoap 8 Overview Automatically remove unwanted characters, fix messed up carriage returns, and pretty much anything else you can imagine. Save time & effort. Be more productive. Stop manually fixing text documents and emails. TextSoap can automate away all that tediousness. Download the trial now. Requires macOS (OS X) 10.10 or later Clean Interface Integrated Text Editor 100+ Built-in Cleaners Powerful Regular Expression Support Custom Cleaners for customized solutions Custom Grouping for personal organization TextSoap Menu integrates into your favorite app AppleScript support More⦠Cleaning Your Text For 19 Years! Re: Looking for an app (script?) to alphabetize a list - gabester - 01-26-2019 TheTominator wrote: This is the way to do it with least effort. You can drag your input file to the Terminal.app window after typing sort then type > then drag the folder you want the output file to go into to the Terminal.app window and be sure to append a filename there e.g. /sorted.txt with no spaces... Something that looks like this: $ sort /Users/username/Desktop/source.txt > /Users/username/Desktop/sorted.txt Oh, and it's available on any Mac, no extra apps needed. At the Apple Store? You can run this. Bonus points for eliminating duplicates by piping through the uniq command! Re: Looking for an app (script?) to alphabetize a list - TheTominator - 01-26-2019 If you already have the text inside a program such as a word processor and don't want to save it to a separate plain text file... Highlight the text. Copy. At the Terminal command prompt type "pbpaste | sort | pbcopy" and hit return. Go back to your word processor and Paste. The selection will be replaced with the text sorted. By default it will be sorted alphabetically in ascending order. To sort in descending order use "pbpaste | sort -r | pbcopy" To sort in ascending numerical order use "pbpaste | sort -n | pbcopy" To sort in descending numerical order use "pbpaste | sort -nr | pbcopy" Re: Looking for an app (script?) to alphabetize a list - TheTominator - 01-26-2019 Bernie wrote: macOS 10.10 seems pretty new school to me. I run 10.6.8 on my primary productivity machine. |