• 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: How to extract the domain of an email address
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to extract the domain of an email address


  • Subject: Re: How to extract the domain of an email address
  • From: Michelle Steiner <email@hidden>
  • Date: Fri, 20 Mar 2009 22:28:57 -0700

On Mar 20, 2009, at 10:19 PM, • Angelo • wrote:

I’m able to script the extraction of the name portion of the string variable “email ” ( which contains misc. email addresses), but now I need to do some stuff which requires that I capture just the domain.  Can someone help me create a script that captures only the portion after the @ sign? 

set email to "email@hidden"
set text item delimiters to {"@"}
set domain to text item 2 of email

-- Michelle

-- 
Windows was always a mystery to me; the biggest mystery being "Why does anyone want to use this?"

 _______________________________________________
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: How to extract the domain of an email address
      • From: • Angelo • <email@hidden>
References: 
 >How to extract the domain of an email address (From: • Angelo • <email@hidden>)

  • Prev by Date: How to extract the domain of an email address
  • Next by Date: Re: Can someone explain this?
  • Previous by thread: How to extract the domain of an email address
  • Next by thread: Re: How to extract the domain of an email address
  • Index(es):
    • Date
    • Thread