Re: Address Book Scripts
Re: Address Book Scripts
- Subject: Re: Address Book Scripts
- From: Will Gosney <email@hidden>
- Date: Tue, 15 Mar 2005 18:54:36 -0500
Ok, I saved this scrip to the address book scripting folder, and it shows up in the script menu, but doesn't appear to do anything to the contact.
I even tried on a contact I named steiner.
How do I adjust this script to refer to the current contact?
When I run it in script editor, it says the variable "if" is not defined.
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 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
end tell
Will
On Mar 15, 2005, at 5:01 PM, Paul Berkowitz wrote:
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 to people whose name contains ""
set to short date string of (current date) & ", " & time string of (current date)
repeat with in
set note of to
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 in
set to note of bar
if is not "" then set now to (now & lf & lf)
set note of to (now &
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