Hi All,
Please look into this script, where I am making mistake.
tell application "Finder"
set EMP_CODE to text returned of (display dialog "Please enter your code" default answer "XXX") as string
if EMP_CODE is not string then
display dialog "Invalid Code Entered"
end if
end tell
I want to chek if user will input any interger type value, it give three try and after three try, program should terminated automatically.
One more think I would like to do:
There is a file named “EMP_CODE.TXT”, which contains employee code. As user will enter code, it will search in this text file and if the code does not exist then it shows a dialog box “You are not a valid user”.
The “EMP_CODE.TXT” is a my startup disk.
Thanks
Rajeev