• 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: parsing string in apple script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: parsing string in apple script


  • Subject: Re: parsing string in apple script
  • From: Michelle Steiner <email@hidden>
  • Date: Wed, 18 Jun 2003 08:49:18 -0700

On Wednesday, June 18, 2003, at 07:22 AM, Bhanja, Sanjeeb wrote:

Please help in parsing the following

string before parsing : " 12,34,56,78,"

After parsing : x = 12 , y = 34 , z = 56 ....

please send me some code

set b to " 12,34,56,78,"
set text item delimiters to ","
set d to {}
set c to text items of b
repeat with a in c
copy a as number to end of d
end repeat
--reset text item delimiters if you wish
d

Then all you have to do is extract each of the items of d to the variables.

--Michelle

--
"There's some good in the world, Mr. Frodo, and it's worth fighting for."
_______________________________________________
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.
  • Follow-Ups:
    • Re: parsing string in apple script
      • From: Emmanuel <email@hidden>
References: 
 >parsing string in apple script (From: "Bhanja, Sanjeeb" <email@hidden>)

  • Prev by Date: Re: How to convert string to int in Apple script
  • Next by Date: Re: AppleScript Timed Events
  • Previous by thread: parsing string in apple script
  • Next by thread: Re: parsing string in apple script
  • Index(es):
    • Date
    • Thread