Title: Re: How to Applescript deletion of multiple items?
On 9/4/01 9:13 PM, I wrote:

           try -- you may  have nothing displayed, or something that "doesn't register", like Tasks
          list
                  set theFolder to displayed feature of window 1   
                 if class of theFolder � folder then erro number -128 -- enforce the error
              on error
                  beep 2
              display dialog "You must have a older displayed in the front window!" buttons {"OK"}
          default button "OK" with icon 2
                  return
              end try
          
              -- all Ok now
          
              delete every message of theFolder whose flagged is false
          

There were a couple of little typos there you may have spotted. Sorry. Corrected:


 try -- you may  have nothing displayed, or something that "doesn't register", like Tasks list
        set theFolder to displayed feature of window 1   
       if class of theFolder � folder then error number -128 -- enforce the error
    on error
        beep 2
    display dialog "You must have a folder displayed in the front window!" buttons {"OK"} default button "OK" with icon 2
        return
    end try

    -- all Ok now

    delete every message of theFolder whose flagged is false



--
Paul Berkowitz

Reply via email to