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

Re: Coerce time


  • Subject: Re: Coerce time
  • From: Graff <email@hidden>
  • Date: Mon, 01 Dec 2003 04:49:44 -0500

The command "short date string" is apparently part of AppleScript 1.9.2. The months being coerced into numbers is also part of AppleScript 1.9.2.
<http://www.apple.com/applescript/releasenotes/192OSX.html>

So yeah, it's not available to earlier versions of AppleScript. It's a shame too, it's very useful. Ahh well, there are definite advantages to using the latest and greatest.

- Ken

On Dec 1, 2003, at 3:57 AM, Harald E Brandt wrote:

+--> Graff wrote 03-11-30:
First of all if you want to change a long date to a short date and you want to follow the localization for the user, do this:
---------
set myDate to date "August 20, 2003"
set myShortDate to short date string of myDate
+-------- -----------------

You have an osax somewhere! 'short date string' does not compile.

+--
set theMonth to the (month of myDate) as integer
+- ----------

Probably the same osax. '(month of myDate) as integer' will not make it into an integer on my system.
_______________________________________________
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.

References: 
 >Re: Coerce time (From: Harald E Brandt <email@hidden>)
 >Re: Coerce time (From: Harald E Brandt <email@hidden>)

  • Prev by Date: Re: Formatting Text Size in Filemaker Pro
  • Next by Date: Re: Coerce time
  • Previous by thread: Re: Coerce time
  • Next by thread: Re: Coerce time
  • Index(es):
    • Date
    • Thread