编程 AppleScript 编辑器,代码
Programming AppleScript Editor, Code
到目前为止我已经有了这个,但我想把它带到取景器 window 将打开多次并且变量 "amount" 设置为
的地方
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
如果有人能帮助我,我将不胜感激。
(脚本尚未完成)
快速回答:
将要重复的部分移到 repeat .. 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。
享受吧,迈克尔/汉堡
到目前为止我已经有了这个,但我想把它带到取景器 window 将打开多次并且变量 "amount" 设置为
的地方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
如果有人能帮助我,我将不胜感激。
(脚本尚未完成)
快速回答: 将要重复的部分移到 repeat .. 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。
享受吧,迈克尔/汉堡