• 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
Converting Date?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Converting Date?


  • Subject: Converting Date?
  • From: Jacki Barineau <email@hidden>
  • Date: Mon, 26 Aug 2002 22:16:31 -0400

Hi Everyone,

I'm trying to use an Applescript to take e-mail messages within Outlook
Express and adding them to a Filemaker Pro database. Everything is working
fine, except the "date" ("time sent") field sends the day of week, month,
day, year, and time. I only need the date itself because I want the
Filemaker "date" type in that field definition so I can do searches by date.
Is there a way to do this? It's getting old having to manually edit the date
field!

For example, the following code in AppleScript:

set message_date to time sent of message i of folder "Workshop Notification
List" of folder "OO Mail" of folder "Inbox" as text

Returns the following:

Monday, August 26, 2002 12:28 AM

The following script code:

set entry_date to words 2 through 4 of message_date

Returns the following:

August: 26: 2002

Is there a way to either have the script bring in the correct date format to
begin with or to somehow edit the returned string to remove the ":"'s and
put the "," after the day number...?

Thanks for any help!

Jacki
_______________________________________________
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: Converting Date?
      • From: John Delacour <email@hidden>
  • Prev by Date: Re: [the great right-tool-for-the-job debate] Re: Running Subroutines from Other Scripts
  • Next by Date: Re: Interacting with Project Builder via AppleScript
  • Previous by thread: Droplets don¹t launch?
  • Next by thread: Re: Converting Date?
  • Index(es):
    • Date
    • Thread