title: Problem with Getting info for item (applescript)
body: <p>I am a pretty good applescripter, and would like some help with this. I am making a recycle bin application, similar to that of the Windows XP Recycle Bin. It is of course a droplet. When I drop items onto the application, the application starts a subroutine designed to check whether the size limit of the Recycle Bin (Trash) was exceeded. However, when I try to get the info for the items in the Trash, the error message that comes up is: "Finder got an error. File item 1 wasn't found." I really need help :(
  The subroutine is below:</p>
  
  <pre><code>on check() 
  tell application "Finder"
      set the total_size to 0
      set the trash_items to get every item in trash
      if the trash_items is not {} then
          repeat with i from 1 to the count of items in trash
              set this_info to get info for item i of trash --ERROR ON THIS LINE
              set the total_size to the total_size + (size of this_info)
          end repeat
          try
              set the second_value to the free_space / (RBPFMS / 100)
              if the total_size is greater than the second_value then
                  display alert "Size Limit Exceeded" message "The Recycle Bin cannot receive any more items because it can only use " &amp; RBPFMS as string &amp; " of your hard drive." buttons {"OK"} default button 1
                  return false
              else
                  return true
              end if
          on error
              set RBP to ((path to startup disk) as string) &amp; "Recycle Bin Properties"
              display dialog "Error: You have modified the properties file for the Recycle Bin. Do not modify the properties file. It is there to store information that is used to determine the properties for the Recycle Bin." with title "Property File Modified" with icon 0 buttons {"OK"} default button 1
              set the name of RBP to "DELETE ME"
              error number -128
          end try
      end if
  end tell
  end check
  </code></pre>