注册 登录
编程论坛 JavaScript论坛

初学者 出现了点问题 忘坛内高手帮忙啊

se7en_hang 发布于 2013-09-10 17:12, 516 次点击
if testuuid() is not 1 then     
display dialog "程序正常退出。" buttons {"好的"} giving up after 5     
continue quit
 else         
.
.
.
.
.
.
.
.
.
.

.
..
.
.
end if
on testuuid()     
do shell script "system_profiler SPHardwareDataType | grep 'Hardware UUID:'"     
set uuid to text ((offset of ":" in result) + 2) thru -1 of result     
do shell script "system_profiler SPHardwareDataType | grep 'Serial Number (system):'"     
set snid to text ((offset of ":" in result) + 2) thru -1 of result     
set TestUUIDrtu to 0     +if uuid & snid = "1F527C9B-1666-5400-AEC9-CCA9B460FAB8C02JP0K3DH2G" then         
set TestUUIDrtu to 1     
end if     
return TestUUIDrtu
 end testuuid on

这个程序为什么把if testuuid() is not 1 then     
display dialog "程序正常退出。" buttons {"好的"} giving up after 5     
continue quit
 else          删了就可以进去
不删就出现程序正常退出?
2 回复
#2
love云彩2013-09-10 23:17
你的代码好凌乱啊,能不能整理一下
#3
java小蚂蚁2013-09-12 20:41
相当乱
1