• 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: Address Book Scripts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Address Book Scripts
      • From: Will Gosney <email@hidden>
References: 
 >Re: Address Book Scripts (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Simple date question
  • Next by Date: Re: AppleScript feature request - encryption
  • Previous by thread: Re: Address Book Scripts
  • Next by thread: Re: Address Book Scripts
  • Index(es):
    • Date
    • Thread