• 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: Get the address data without Address Book running?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Get the address data without Address Book running?
      • From: Christopher Stone <email@hidden>
References: 
 >Get the address data without Address Book running? (From: fortepianissimo <email@hidden>)

  • Prev by Date: Re: styled text to record, ok. But record to styled text?
  • Next by Date: Filemaker 'whose' clause broken?
  • Previous by thread: Get the address data without Address Book running?
  • Next by thread: Re: Get the address data without Address Book running?
  • Index(es):
    • Date
    • Thread