KittenPetter wrote:
I have a lot of names separated by Comma-Space and I want a list of names separated by CarriageReturns [CR].
One of the easiest ways is to use a simple script. Just select, copy, click, and copy-paste. No need to know AppleScript to use. A few seconds and you're done.
- Copy-paste script below into Script Editor (in Applications > Utilities)
- Select the comma space-separated names and command-c to copy them to the clipboard.
- Click the triangle 'run' button in Script Editor.
- Click in Pages (or wherever you want the list) and command-v to paste.
(If you've not run a script on your machine before yyou may need to make sure Script Editor is checked at System Preferences > Security & Privacy > Privacy > Accessibility.)
SG
(*
converts text in form of name1, name2, name3, name 4
to:
name1
name2
name3
etc.
*)
set inText to the clipboardastext
set text item delimiters to ", "
set tempList to inText'stext items
set text item delimiters to return
set outText to tempList as text
set the clipboard tooutText
display notification "Click somewhere and command-v to paste"