• 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
Date formatter for me does NOT work
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Date formatter for me does NOT work


  • Subject: Date formatter for me does NOT work
  • From: Marco Ippoliti <email@hidden>
  • Date: Thu, 11 Jul 2002 11:51:33 +0200

This simple test, where field "t" is date formatted in a window with a
button and the field:

on clicked theObject
try
set the nDate to (contents of text field "t" of window "w")
set cDate to date nDate
on error result
log result
end try
end clicked

will always end with error "NSReceiverEvaluationScriptError: 3", no
matter the kind of format used and a good value entered.

That the value is good for the formatter can be proved by tabbing away
from the field, for invalid values it beeps.
Interesting to observe is that when using the debugger cDate shows a
correct date conversion anyway.

If for somebody of you this works, please indicate your system date
format and language set in system preferences.

Thank you,

Marco
_______________________________________________
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: Cocerce Date
  • Next by Date: Re: Mail.app script query
  • Previous by thread: Re: Cocerce Date
  • Next by thread: Photoshop 7 and Save for Web
  • Index(es):
    • Date
    • Thread