First, if copyFile is an external, make sure it is is stored in your
projects dataFork. Go to the Utilities menu and select the resource
manager, from there select the original project and your project and
copy the "copyFile" external to your project.
Bruce Martin
On Jul 4, 2009, at 4:51 PM, krjprint89 <krjgraphic@...> wrote:
>
>
> 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
>
>
[Non-text portions of this message have been removed]