任何人都知道如何修复这个AppleScript?

时间:2015-12-02 23:26:45

标签: applescript

"Action": [
            "s3:GetObjectAcl",
            "s3:GetObject",
            "s3:PutObjectAcl",
            "s3:ListMultipartUploadParts",
            "s3:PutObject"
        ]

1 个答案:

答案 0 :(得分:0)

原因是内部变量result总是包含前一行的结果 使用此:

set buttonReturned to button returned of (display dialog "How Would You Like To Proceed?" buttons {"Milk Them", "Burn Them", "Do Nothing"} default button 1)

if buttonReturned is "Milk Them" then
    -- proceeed button 1    
else if buttonReturned is "Do Nothing" then
    -- proceeed button 2    
else
    -- proceeed button 3    
end if