• 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
Creating a date
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Creating a date


  • Subject: Creating a date
  • From: Nicolas Silvestre <email@hidden>
  • Date: Wed, 6 Apr 2005 07:32:54 +0200

I want to create a date using the day and month of the birth date in address book, and with the current year.
The script starts with :


*********************
tell application "Address Book"
set foundset to people
repeat with theperson in foundset
if the birth date of theperson exists then

set thedate to the birth date of theperson
set theday to the day of thedate
set themonth to the (month of thedate)

**********************


When I display dialog thedate, the day and themonth, I get :
mercredi 28 septembre 1949 12:00:00
28
September





After that, how do I create a date that is theday/themonth/2005, as a date ?

I can get a string, but not a date.
Could it be because the initial date is displayed in french ?

Thank you for your help.

 _______________________________________________
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: Creating a date
      • From: Neil Faiman <email@hidden>
  • Prev by Date: Re: Mac vs unix Carriage returns on a text file format
  • Next by Date: Re: minimum function?
  • Previous by thread: clipboardICAS and daylight saving time
  • Next by thread: Re: Creating a date
  • Index(es):
    • Date
    • Thread