• 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: Help with validating a date input to a dialog
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help with validating a date input to a dialog


  • Subject: Re: Help with validating a date input to a dialog
  • From: Rob Jorgensen <email@hidden>
  • Date: Fri, 30 Mar 2001 20:29:00 -0500

On 3/30/01, Michelle Steiner commented:

Here's the script:

display dialog (my setthedate("Please enter the date in format
"mm/dd/yyyy"."))

on setthedate(prompt)
set DateToSend to (text returned of (display dialog prompt default
answer ""))
try
date DateToSend
on error
my setthedate("Please us the correct format "mm/dd/yyyy"")
end try
return DateToSend
end setthedate


This script performs as expected on my system (OS 9.1/AppleScript 1.6/No Language kits installed/No OS X). I tried it in Script Editor, Script Debugger and as an application.

--
Later,

Rob Jorgensen
Ohio, USA


References: 
 >Help with validating a date input to a dialog (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Script editor/Finder weirdness
  • Next by Date: Re: Help with validating a date input to a dialog
  • Previous by thread: Help with validating a date input to a dialog
  • Next by thread: Re: Help with validating a date input to a dialog
  • Index(es):
    • Date
    • Thread