• 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
stupid coertion bug on dates
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

stupid coertion bug on dates


  • Subject: stupid coertion bug on dates
  • From: kai <email@hidden>
  • Date: Sun, 03 Aug 2003 17:55:45 +0100

on Sun, 3 Aug 2003 16:50:34 +0200, Reinforced Darkness <email@hidden>
wrote:

> try this :
> //
> (current date) - "Sunday 3 August 2003 16:16:21"
> //
> it works fine

Not here. I need something like:

--------------------------------

(current date) - (date "Sunday 3 August 2003 16:16:21")

--------------------------------

> try now this :
> //
> set x to "Sunday 3 August 2003 16:16:21"
> (current date) - x
> //
> --> error : can't make of "Sunday 3 August 2003 16:16:21" a date

This works for me:

--------------------------------

set x to "Sunday, August 3, 2003 4:16:21 pm"
(current date) - (get date x)

--------------------------------

---
kai
_______________________________________________
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.

  • Prev by Date: Re: Really delete a file via AppleScript
  • Next by Date: Re: Really delete a file via AppleScript
  • Previous by thread: Re: stupid coertion bug on dates
  • Next by thread: OT: Dittoing Resource Forks (WasLRe: Really delete a file via AppleScrip
  • Index(es):
    • Date
    • Thread