Re: Get the address data without Address Book running?
Re: Get the address data without Address Book running?
- Subject: Re: Get the address data without Address Book running?
- From: Christopher Stone <email@hidden>
- Date: Sat, 24 Jan 2004 11:47:38 -0600
At 21:27 -0800 01/23/2004, fortepianissimo wrought:
Maybe it's out of the realm of AppleScript, but is it possible to get a
complete list of email addresses stored in Address Book without firing
up Address Book?
______________________________________________________________________
Greetings,
This regex may not cover all the possibilities, but it gives the general idea.
set abData to alias
"YourHardDrive:Users:YourUserName:Library:Application
Support:AddressBook:AddressBook.data"
try
set findIt to find text
"[^a-z0-1]([a-z0-9._\\-]+@[^.]+\\.([a-z]{2}|[a-z]{3}))" in abData using
"\\1" with regexp, all occurrences and string result without case
sensitive
on error
set findIt to false
end try
It requires the Satimage osax:
http://www.satimage.fr/software/en/downloads_osaxen.html
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.