--This does not open the ".cpr" file
tell application "Finder"
--copy foler
set x to "Macintosh HD:Users:shawnbrady
ropbox:Audio:Features:"
copy folder "Macintosh HD:Users:shawnbrady
esktop:Features:" to folder x
delay 1
--rename folder and file
set y to every item of window 1 whose name contains "omf"
set omf_name to name of item 1 in y as string
set file_name to characters 1 thru -5 of omf_name as string
set folder_name to characters 1 thru -3 of file_name as string
set name of file "Macintosh HD:Users:shawnbrady
ropbox:Audio:Features:Features:FEAT.cpr" to file_name & ".cpr"
set name of folder "Macintosh HD:Users:shawnbrady
ropbox:Audio:Features:Features" to folder_name & "NPR"
delay 1
-- open file DOES NOT WORK
set xx to every folder of window 1 as string
set yy to (every item of folder xx whose name contains ".cpr") as string
delay 1
open file yy
end tell
tell application "Finder"
--copy foler
set x to "Macintosh HD:Users:shawnbrady
copy folder "Macintosh HD:Users:shawnbrady
delay 1
--rename folder and file
set y to every item of window 1 whose name contains "omf"
set omf_name to name of item 1 in y as string
set file_name to characters 1 thru -5 of omf_name as string
set folder_name to characters 1 thru -3 of file_name as string
set name of file "Macintosh HD:Users:shawnbrady
set name of folder "Macintosh HD:Users:shawnbrady
delay 1
-- open file DOES NOT WORK
set xx to every folder of window 1 as string
set yy to (every item of folder xx whose name contains ".cpr") as string
delay 1
open file yy
end tell