Re: Split string
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>) |