Re: Comma delimited paragraph
Re: Comma delimited paragraph
- Subject: Re: Comma delimited paragraph
- From: 2551phil <email@hidden>
- Date: Thu, 18 May 2017 22:12:34 +0700
> On 18 May 2017, at 22:08, David Gregg <email@hidden> wrote:
>
> Here is a method using standard AppleScript. This is assuming the original content is already on the clipboard.
>
> set originalContent to the clipboard
> set values to every word of originalContent
> set csvContent to ""
> repeat with i from 1 to count of values
> set csvContent to csvContent & item i of values
> if i < (count of values) then set csvContent to csvContent & ","
> end repeat
> set the clipboard to csvContent
>
> return the clipboard
Nice! That wins my ‘neat script of the week’ award! :)
Best
Phil
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden