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

Re: Converting Date?


  • Subject: Re: Converting Date?
  • From: John Delacour <email@hidden>
  • Date: Tue, 27 Aug 2002 09:19:24 +0100

At 10:16 pm -0400 26/8/02, Jacki Barineau wrote:

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

Only because you have left AppleScript's text item delimiters at {":"} at some previous stage instead of resetting the default:

set AppleScript's text item delimiters to {""}


-- This is what I get:

tell app "Outlook Express"
the time sent of the first message in the folder "Inbox"
--> date "Saturday, July 27, 2002 9:14:55 pm"
end
copy the words of ("" & the result) to {_1, _2, _3, _4, _5, _6, _7, _8}
--> {"Saturday", "July", "27", "2002", "9", "14", "55", "pm"}
get _1 & ", " & _3 & space & _2
--> "Saturday, 27 July"

-- JD
_______________________________________________
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: Malcolm Fitzgerald <email@hidden>
References: 
 >Converting Date? (From: Jacki Barineau <email@hidden>)

  • Prev by Date: Re: Photoshop Scripting
  • Next by Date: Re: Generating HTML emails with Eudora
  • Previous by thread: Converting Date?
  • Next by thread: Re: Converting Date?
  • Index(es):
    • Date
    • Thread