• 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: Simple text question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple text question


  • Subject: Re: Simple text question
  • From: KOENIG Yvan <email@hidden>
  • Date: Mon, 7 Jul 2008 19:37:32 +0200

set thisText to "6000[F]this is test (#1).

6001[F]this is test (#2)."


set nb to count of my decoupe(thisText, "[F]") if nb > 1 then set nb to nb - 1

log nb
--=============

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

--=============

Yvan KOENIG (from FRANCE lundi 7 juillet 2008 19:37:18)
_______________________________________________
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
References: 
 >Simple text question (From: "Script2" <email@hidden>)

  • Prev by Date: Re: Simple text question
  • Next by Date: RE: Simple text question
  • Previous by thread: RE: Simple text question
  • Next by thread: Re: Simple text question
  • Index(es):
    • Date
    • Thread