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

Re: text item delimiters question


  • Subject: Re: text item delimiters question
  • From: Paul Skinner <email@hidden>
  • Date: Wed, 5 Mar 2003 07:49:38 -0500

On Wednesday, March 5, 2003, at 07:18 AM, Jacco Rens wrote:

Hi all,

I got an question regarding the use of text item delimiters,

i want to get the first part of the following data: "GEIND*E10,71/KOSTEN*E0,08"
So that i get "GEIND*E10,71" in my var.


this doesn't work :(

// part of script
set geind to item 11 of theLine as text // "GEIND*E10,71/KOSTEN*E0,08"
set text item delimiters to "/"
set x to item 1 of geind
// end part of script


Best,
Jacco Rens
Netherlands
http://www.jaccorens.com/

You asked for item 1 not text item 1.

text 1 thru 12 of "GEIND*E10,71/KOSTEN*E0,08"
-->GEIND*E10,71

set applescript's text item delimiters to "/"
text item 1 of "GEIND*E10,71/KOSTEN*E0,08"
-->GEIND*E10,71

Paul Skinner
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >text item delimiters question (From: Jacco Rens <email@hidden>)

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