• 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: Current date in standard additions dictionary
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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]


  • Prev by Date: Re: Current date in standard additions dictionary
  • Next by Date: Re: applescript-users digest, Vol 2 #723 - 14 msgs
  • Previous by thread: Re: Current date in standard additions dictionary
  • Next by thread: Re: Current date in standard additions dictionary
  • Index(es):
    • Date
    • Thread