I am building a script to template the creation of a number of tasks within a recurring type of project. This works fine, but for one thing: I am unable to capture the users input to determine the due date. Preferably I’d be able to ask a user for the input in the format “dd/mm” and/or “dd/mm/yy”. When captured, I plan to make a number of calculations on this date before using these as due dates for tasks to be created.
I have been attempting to do this using:
display dialog "What's the due date of the project?" default answer "" with title "Project's due date"
That doesn’t return a date, but a string.
Any idea? (And no, Google nor manual seem to provide an answer. And yes, I am happy to share the code when this script is more or less finished.)