Re: Address Book Scripts
Re: Address Book Scripts
- Subject: Re: Address Book Scripts
- From: Paul Berkowitz <email@hidden>
- Date: Tue, 15 Mar 2005 14:01:42 -0800
Title: Re: Address Book Scripts
On 3/15/05 1:40 PM, "Michelle Steiner" <email@hidden> wrote:
On Mar 15, 2005, at 11:24 AM, Will Gosney wrote:
Does anyone have a script that adds a date-time stamp to a contact into the notes section?
I didn't, but now I do:
tell application "Address Book"
set foo to people whose name contains "steiner"
set now to short date string of (current date) & ", " & time string of (current date)
repeat with bar in foo
set note of bar to now
end repeat
end tell
And just in case you don't want to erase an existing note, begin by
set lf to (ASCII character 10 as Unicode text)
Then, in the repeat loop
repeat with bar in foo
set goo to note of bar
if goo is not "" then set now to (now & lf & lf)
set note of bar to (now & goo)
end repeat
--
Paul Berkowitz
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden