• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Comma delimited paragraph
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Comma delimited paragraph


  • Subject: Re: Comma delimited paragraph
  • From: Yvan KOENIG <email@hidden>
  • Date: Thu, 18 May 2017 18:02:39 +0200

A fair comparison would compare :

set values to every word of (the clipboard as text)
set csvContent to ""
repeat with i from 1 to count values
set csvContent to csvContent & item i of values
if i < (count values) then set csvContent to csvContent & ","
end repeat
set the clipboard to csvContent


to

set oTids to text item delimiters
set text item delimiters to ","
set the clipboard to every word of (the clipboard as text) as text
set text item delimiters to oTids


The first one require 264 characters in 7 lines.
The second one require 166 characters in 4 lines.


Yvan KOENIG running Sierra 10.12.5 in French (VALLAURIS, France) jeudi 18 mai 2017 18:00:43








 _______________________________________________
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

  • Follow-Ups:
    • Re: Comma delimited paragraph
      • From: Steve Mills <email@hidden>
    • Re: Comma delimited paragraph
      • From: 2551phil <email@hidden>
References: 
 >Comma delimited paragraph (From: "email@hidden" <email@hidden>)
 >Re: Comma delimited paragraph (From: David Gregg <email@hidden>)

  • Prev by Date: Re: Comma delimited paragraph
  • Next by Date: Re: Comma delimited paragraph
  • Previous by thread: Re: Comma delimited paragraph
  • Next by thread: Re: Comma delimited paragraph
  • Index(es):
    • Date
    • Thread