Tương tác người dùng "chọn từ danh sách" của Apple có nút "hủy" - Tôi muốn "hủy" này để yêu cầu tập lệnh dừng ngay lập tức. Nói cách khác:Cách yêu cầu một bản tóm tắt ngừng thực hiện
set wmColor to choose from list {"Black", "Black for all", "White",
"White for all"} with prompt "What color should the watermark be?"
default items "White for all" without multiple selections allowed and
empty selection allowed
if wmColor is false
*tell script to stop executing*
end if
Dường như không thể tìm cách làm điều này - có ai biết không?
Điều này chỉ hoạt động nếu không được bao gồm trong khối thử phát hiện lỗi như vậy. – spyle