无法调试列表索引超出范围错误

时间:2018-06-27 21:14:39

标签: python runtime-error

set theName to text returned of (display dialog ¬
    "INSERT A NEW FOLDER NAME" default answer ¬
    "Enter Desired Name Of New Folder" hidden answer false ¬
    buttons {"Cancel", "OK"} ¬
    default button ¬
    "OK" cancel button ¬
    "Cancel" with title ¬
    "CHOOSE A NAME" with icon 1 ¬
    giving up after 30)

tell application "Finder"
    set currentTarget to target of window 1 as alias
    set the name of (make new folder at currentTarget) to theName
end tell

我正在尝试从数字列表中删除重复的卡,但是我一直使列表索引超出范围错误

0 个答案:

没有答案