System Date

I need to capture the Current Date appearing on the application screen. If i have to run the same the next day the script will not run. As the application will be showing the next date. Is there any way to handle this with changing the script on daily basis.

If you are trying to check that the app is showing today’s date, then you can do this using the TextImage feature. Here’s an example:

put formattedTime("%1m/%e/%y") into theDate
if not imageFound(Text:theDate, TextSize:"12", TextFont:"Helvetica") then
	logError "Date incorrect"
end if

You’ll need to change the format to match the way your date is displayed and change the Text settings to match those used by your application.