set theseItems to (choose file with prompt "select a pdf to upload" with multiple selections allowed)
tell application "Finder"
--set up paths to the folders
set bluePath to get (POSIX path of (path to home folder))
set bluePath to bluePath & "Dropbox/ Blue"
set conniePath to get (POSIX path of (path to home folder))
set conniePath to conniePath & "Dropbox/ Connie"
set greenPath to get (POSIX path of (path to home folder))
set greenPath to greenPath & "Dropbox/ Green"
set orangePath to get (POSIX path of (path to home folder))
set orangePath to orangePath & "Dropbox/ Orange"
set pinkPath to get (POSIX path of (path to home folder))
set pinkPath to pinkPath & "Dropbox/ Pink"
end tell
set fileList to {}
--choose the folder we're going to upload to
choose from list {"Blue", "Connie", "Green", "Orange", "Pink"} with prompt "Choose the team Dropbox folder"
set theTeam to result
if item 1 of theTeam is "Blue" then
set thePath to bluePath
else if item 1 of theTeam is "Connie" then
set thePath to conniePath
else if item 1 of theTeam is "Green" then
set thePath to greenPath
else if item 1 of theTeam is "Orange" then
set thePath to orangePath
else if item 1 of theTeam is "Pink" then
set thePath to pinkPath
--else
-- return
end if
tell application "Finder"
repeat with i from 1 to count of theseItems
set thisItem to item i of theseItems
duplicate file thisItem to thePath
set the last item of fileList to thisItem
end repeat
end tell
I haven’t been able to figure this one out. Any help is appreciated.