I have a apple script which runs fine when it is run from the Script
Editor window. But when I run the same script from Terminal the script
fails.
Following is the code:
set currentAttendeeStatus to (participation status of attendee
loop_count of Find_event) as string
if (currentAttendeeStatus = item user_no of users_status_list) then
display dialog "Do nothing"
else
display dialog "False condition reached"
set AttVerifcationStatus to false
exit repeat
end if
"participation status of attendee loop_count of Find_event" variable
belongs to constant class and "item user_no of users_status_list"
belongs to class string. I am coercing "participation status of
attendee loop_count of Find_event" into a string while copying it to
currentAttendeeStatus.
The above piece of code works fine when run from the script editor Run
button. But it fails when it is run from the Terminal.
Please suggest some pointers for this problem.
Regards,
SKT.