I am externally challenged . . I am trying to duplicate a project with a
different name.
I found this this external script . . but when I run it it get an error.
"Never heard of that handler" . . . when it gets to the "CopyFile" line.
Any help would be appreciated. .
on itemSelect
put value(word 2 of long name of this proj) into tSourcePath
ask file "Save project as:"
if it <> "" then
put it into tDestPath
-- Check to make sure there is enough room on disk
put the size of this proj into tSize
put the diskSpace of this proj into tAvail
if tSize < tAvail then
-- Go ahead and make the copy
save
-- Close the last window of this project:
close this window
-- Makes duplicate with CopyFile XCMD:
CopyFile tSourcePath,tDestPath
open proj tDestPath -- Opens the duplicate
else
answer "Sorry, not enough space to save project."
end if
end if
end itemSelect