Re: How to extract the domain of an email address
Re: How to extract the domain of an email address
- Subject: Re: How to extract the domain of an email address
- From: Angelo <email@hidden>
- Date: Sat, 21 Mar 2009 17:15:07 -0500
- Thread-topic: How to extract the domain of an email address
Title: Re: How to extract the domain of an email address
Geez! I could have saved a ton of time a few months ago, if I’d known that. Thanks so much for the tip. So I’m assuming that I can streamline my existing script which extracts the name portion of the email by assigning text item 1 to a different variable, correct?
set email to "email@hidden"
set text item delimiters to {"@"}
set domain to text item 2 of email
Thanks again,
Angelo
From: Michelle Steiner <email@hidden>
Reply-To: Applescript Users <email@hidden>
Date: Fri, 20 Mar 2009 22:28:57 -0700
To: Applescript Users <email@hidden>
Subject: Re: How to extract the domain of an email address
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
_______________________________________________
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