Re: Current date in standard additions dictionary
Re: Current date in standard additions dictionary
- Subject: Re: Current date in standard additions dictionary
- From: "Marc K. Myers" <email@hidden>
- Date: Sun, 03 Jun 2001 23:56:18 -0400
- Organization: [very little]
>
From: email@hidden
>
Date: Sun, 3 Jun 2001 12:07:57 EDT
>
Subject: Current date in standard additions dictionary
>
To: email@hidden
>
>
I want to get the time only from current date command, without the seconds
>
added. Does anybody know if/how I can do this? Thanks.
>
>
John
set x to time string of (current date)
if x ends with "PM" then
set y to " PM"
else if x ends with "AM" then
set y to " AM"
else
set y to ""
end if
set {od, AppleScript's text item delimiters} to [optn-L]
{AppleScript's text item delimiters, {":"}}
set z to (text items 1 thru 2 of x) as text
set AppleScript's text item delimiters to od
set theTime to z & y
In place of "[optn-L]" use the continuation character.
Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074
[6/3/01 11:51:43 PM]