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

Re: Split string


  • Subject: Re: Split string
  • From: Christopher Stone <email@hidden>
  • Date: Fri, 12 Mar 2004 05:23:34 -0600

At 11:46 +0100 03/12/2004, Gvtz Verdieck wrought:

I don9t understand why / is a so special character in a string ?
Can someone help me to get the result 300/500 from spg_erdkabel.
How can I set the word separater only to ' ' ?
______________________________________________________________________

Greetings,

You could do something like this:

----------------------------------------------------------------------
set spg_yvsty to "300 1000"
class of spg_yvsty -- output: string
set wd to word 1 of spg_yvsty -- output: 300
count words in spg_yvsty -- output: 2
set spg_erdkabel to "400/500 1000"
set AppleScript's text item delimiters to {" "}

set x to text item 1 of spg_erdkabel
set AppleScript's text item delimiters to {""}
set theQuotient to run script x
----------------------------------------------------------------------


Chris
_______________________________________________
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: 
 >Split string (From: Götz Verdieck <email@hidden>)

  • Prev by Date: Thanks for the help
  • Next by Date: Adding a category to an item in Entourage
  • Previous by thread: Split string
  • Next by thread: Re: Split string
  • Index(es):
    • Date
    • Thread