• 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
FW: Question from a proverbial newbie
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FW: Question from a proverbial newbie


  • Subject: FW: Question from a proverbial newbie
  • From: Angelo <email@hidden>
  • Date: Sat, 08 Aug 2009 21:49:45 -0500
  • Thread-topic: Question from a proverbial newbie

Title: FW: Question from a proverbial newbie
It took me a sec to catch the P.R. connotation :)

A
BIG TEXAS thanks to all!.   I had no idea it could be so easy.

Angelo

On Aug 8, 2009, at 1:14 PM, 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 phone to "4089742042" --Apple Public Relations
set var1 to text 1 through 3 of phone
set var2 to text 4 through 6 of phone
set var3 to text 7 through 10 of phone
set phone to var1 & "-" & var2 & "-" & var3

-- Michelle
--
We learn from history that we do not learn anything from history.





_______________________________________________
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

------ End of Forwarded Message
 _______________________________________________
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

  • Follow-Ups:
    • Re: FW: Question from a proverbial newbie
      • From: "Mark J. Reed" <email@hidden>
References: 
 >Re: Question from a proverbial newbie (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Question from a proverbial newbie
  • Next by Date: Re: FW: Question from a proverbial newbie
  • Previous by thread: Re: Question from a proverbial newbie
  • Next by thread: Re: FW: Question from a proverbial newbie
  • Index(es):
    • Date
    • Thread