• 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: Steve Mills <email@hidden>
  • Date: Thu, 18 May 2017 12:05:09 -0500

On May 18, 2017, at 11:27:49, Yvan KOENIG <email@hidden> wrote:
>
> As was already written, your code fail to reset the original text item delimiters.

It's a snippet to do what needs to be done. When I asked how to do something in Objective-C on cocoa-dev, I don't expect someone to give me an entire finished application. Same here. Any AppleScript knows how to fit it into their own script. Resetting the ATID every time is only necessary if you're working with a large script that potentially has subscripts and such. I don't know about you, but I never use text items without first setting the delimiters, because to do so would be a bad decision.

> Worse, it's awfully verbose 🙄

Yep. It uses one variable, because that's all it needs. It doesn't to compare the final text to the original text or anything like that. Decades of writing code has taught me to be memory conscious and not litter it with extra, unnecessary variables.

--
Steve Mills
Drummer, Mac geek

 _______________________________________________
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: 2551phil <email@hidden>
References: 
 >Comma delimited paragraph (From: "email@hidden" <email@hidden>)
 >Re: Comma delimited paragraph (From: David Gregg <email@hidden>)
 >Re: Comma delimited paragraph (From: Yvan KOENIG <email@hidden>)
 >Re: Comma delimited paragraph (From: Steve Mills <email@hidden>)
 >Re: Comma delimited paragraph (From: Yvan KOENIG <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