set theSource to "/Users/mrpasini/Pictures/Mike's iPhone/" set theYear to year of (current date) set theBackupOne to "/Volumes/Z6II/iPhone Photos/" & theYear & "/" set theBackupTwo to "/Volumes/edgehill/iPhone Photos/" & theYear & "/" set i to 1 tell application (path to frontmost application as text) to set theSelection to (choose folder with prompt "Choose Folders to Upload:" default location theSource with multiple selections allowed) display notification "Backing up phone photos …" with title "Archive Photos to Backup Disks" repeat with aFolder in theSelection set aFolderString to quoted form of POSIX path of aFolder as string set aFolderString to text 1 thru -3 of aFolderString & "'" do shell script ("rsync -au " & aFolderString & space & (quoted form of POSIX path of theBackupOne)) do shell script ("rsync -au " & aFolderString & space & (quoted form of POSIX path of theBackupTwo)) say ("Copiato" & i & "due volte") using "Federica" set i to i + 1 end repeat say "Tutto fatto!" using "Federica" display notification "Phone photos backup complete!" with title "Archive Photos to Backup Disks"