• 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: Missing ampersand
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Missing ampersand


  • Subject: Re: Missing ampersand
  • From: Yvan KOENIG <email@hidden>
  • Date: Fri, 24 Mar 2017 17:07:30 +0100


Le 24 mars 2017 à 16:33, Jeremy Roussak <email@hidden> a écrit :

If I write

words of (“eric v smith & jones”)

I get

{"eric", "v", “smith", “jones”}

Where’s my ampersand gone? What am I doing wrong?

Jeremy


Jeremy Roussak

The character ampersand is not a word.

You may achieve your goal with :

set theItems to my decoupe("eric v smith & jones", space)


#=====

on decoupe(t, d)
local oTIDs, l
set {oTIDs, AppleScript's text item delimiters} to {AppleScript's text item delimiters, d}
set l to text items of t
set AppleScript's text item delimiters to oTIDs
return l
end decoupe

#=====



Yvan KOENIG running Sierra 10.12.3 in French (VALLAURIS, France) vendredi 24 mars 2017 17:07:25



 _______________________________________________
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: Missing ampersand
      • From: Jeremy Roussak <email@hidden>
References: 
 >Missing ampersand (From: Jeremy Roussak <email@hidden>)

  • Prev by Date: Re: Missing ampersand
  • Next by Date: Re: Missing ampersand
  • Previous by thread: Re: Missing ampersand
  • Next by thread: Re: Missing ampersand
  • Index(es):
    • Date
    • Thread