Re: Question from a proverbial newbie
Re: Question from a proverbial newbie
- Subject: Re: Question from a proverbial newbie
- From: Philip Aker <email@hidden>
- Date: Sat, 8 Aug 2009 13:19:19 -0700
On 2009-08-08, at 13:14:12, Angelo wrote: How can I take the text variable phone, which is comprised of the ten digits of a phone #, and split it up into 3 variables in which I can insert dashes?
ie: phone_no_with_dashes = var1 + "-" + var2 + "-" + var3
set tel to "0123456789" ((text items 1 thru 3 of tel) & "-" & (text items 4 thru 6 of tel) & "-" & (text items 7 thru 10 of tel)) as text
Philip Aker echo email@hidden@nl | tr a-z@. p-za-o.@ Democracy: Two wolves and a sheep voting on lunch.
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden