• 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: Date Method(Handler)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Date Method(Handler)


  • Subject: Re: Date Method(Handler)
  • From: Ed Stockly <email@hidden>
  • Date: Sat, 24 Nov 2007 18:09:57 -0800

Is there a way to get the current date with an AppleScript Handler, returning the current date, the current time, or both?  For my purposes, I only want to return the current date.


Current date is a command in the standard additions OSAX.

It's fairly flexible, and can give you date and time information in a variety of formats.
Below are a few examples of how it works. Date string and Time String use the format set by the user in the international preferences.
HTH, 

ES

{dateInfo(), GetDate(), GetTime()}
on dateInfo()
return {day, month, year, time, date string, time string, hours, minutes, seconds} of (current date)
end dateInfo
on GetDate()
return date string of (current date)
end GetDate

on GetTime()
return time string of (current date)
end GetTime
 
=
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Prev by Date: OT: What'd my kids do to my prefs?
  • Next by Date: re: bundle objects
  • Previous by thread: Re: Date Method(Handler)
  • Next by thread: Path of documents
  • Index(es):
    • Date
    • Thread