• 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: Emmanuel <email@hidden>
  • Date: Wed, 18 Jun 2003 19:47:59 +0200

At 8:49 AM -0700 18/06/03, Michelle Steiner wrote:
>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.

In case it helps:

set {x,y,z,t} to d

Emmanuel
_______________________________________________
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: 
 >Re: parsing string in apple script (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: [OT] Only three things (was Re: Why save text item delimiters?)
  • Next by Date: Re: [OT] Only three things (was Re: Why save text item delimiters?)
  • Previous by thread: Re: parsing string in apple script
  • Next by thread: Path string interpretation with 'as alias'
  • Index(es):
    • Date
    • Thread