--set up our teams in outlook
tell application "Microsoft Outlook"
--activate
set blueTeam to get members of group "Blue"
set pinkTeam to get members of group "Pink"
set greenTeam to get members of group "Green"
set orangeTeam to get members of group "Orange"
set connieTeam to {{
name:"Connie Root",
address:"
email@hidden"}}
end tell
--enter the customer name for the email subject line
tell me to activate
--choose the folder we're going to upload to
set theTeam to choose from list {"Blue", "Connie", "Green", "Orange", "Pink"} with prompt "Choose the team Dropbox folder"
set teamGroup to "" --initialize teamGroup
if item 1 of theTeam is "Blue" then
set thePath to bluePath
set teamGroup to blueTeam
else if item 1 of theTeam is "Connie" then
set thePath to conniePath
set teamGroup to connieTeam
else if item 1 of theTeam is "Green" then
set thePath to greenPath
set teamGroup to greenTeam
else if item 1 of theTeam is "Orange" then
set thePath to orangePath
set teamGroup to orangeTeam
else if item 1 of theTeam is "Pink" then
set thePath to pinkPath
set teamGroup to pinkTeam
end if
set teamCount to count of teamGroup
log theTeam
log thePath
log teamGroup
--now copy the files to the selected dropbox folder
set fileList to {}
set subjectLine to ""
repeat with i from 1 to count of theseItems