我刚开始使用applescript,并听说过子程序。所以我决定编写一个测试程序,它将一个数字加起来,将它增加9,减去27,除以3,然后返回结果。只有它不返回结果;它将返回一个StackOverFlow
错误。什么是StackOverFlow错误?AppleScript - StackOverflow错误
程序编译正确,我不知道什么是错的。就像我说的,我是非常适合新的applescript。下面是我运行代码:
calculate_result(text returned of (display dialog "Enter a number:" default answer ""))
on calculate_result(this_result)
set this_result to this_result + 9
set this_result to this_result - 27
set this_result to this_result/3
return calculate_result(this_result)
end calculate_result
不公平...有人高举我然后把它拿走:( – fireshadow52
+1来平衡:) – Mahesh
+1的所有答案;他们都很好:) – fireshadow52