编程AppleScript编辑器,代码
到目前为止,我有这个,但我想让它的finder窗口将打开多次,变量“金额”设置为编程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 如果有人能帮助我,我将不胜感激
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结束尝试