property i_ : 1 set format_ to "pdf" do shell script "/usr/sbin/screencapture -mit" & format_ & " ~/Desktop/Selection_" & (i_ as string) & "." & format_ display alert "The file \"Selection_" & (i_ as string) & "." & format_ & "\" has been saved to your Desktop." as informational set i_ to i_ + 1