Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/arrays/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
编程AppleScript编辑器,代码_Applescript - Fatal编程技术网

编程AppleScript编辑器,代码

编程AppleScript编辑器,代码,applescript,Applescript,到目前为止,我有这个,但我想让它的finder窗口将打开多次,变量“金额”设置为 set volume 10 set amount to text returned of (display dialog "How many times?" default answer "More than 10") tell application "Finder" to make new Finder window repeat amount times end repeat 如果有人能帮助我,我将不胜感激

到目前为止,我有这个,但我想让它的finder窗口将打开多次,变量“金额”设置为

set volume 10
set amount to text returned of (display dialog "How many times?" default answer "More than 10")
tell application "Finder" to make new Finder window
repeat amount times
end repeat
如果有人能帮助我,我将不胜感激

(脚本尚未完成)

快速回答: 将要重复的零件移动到重复区域内。。结束重复块:

set amount to text returned of (display dialog "How many times?" default answer "More than 10")
repeat amount times
    tell application "Finder" to make new Finder window
end repeat
也许您应该在接下来的步骤中检查用户是否真的输入了一个数值,以及它是否大于10


享受吧,Michael/Hamburg

我怎样才能发现我已经尝试了“”符号?请使用一个试用错误结束试块<代码>尝试在错误返回“非数字”时将amt\u as\u int设置为amount as integer结束尝试