On Jul 5, 2009, at 7:14 AM,
SuperCard@yahoogroups.com wrote:
> external problems
> Posted by: "krjprint89"
krjgraphic@... krjprint89
> Date: Sat Jul 4, 2009 1:51 pm ((PDT))
>
> 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
What version of SuperCard are you using?
CopyFile looks like it's an XCMD probably from HyperCard, right? If
so, SC will not recognize that. SC has a similar external named
'fileCopy which you must install into your project's Data Fork, as
Bruce has said. It's in the Xtend portion of the Help System.
1) Open the Help system and click on Library.
2) Choose fileCopy from the lefthand scrolling field and read the
syntax and notes.
3) Click the Install button in the window header and choose the
project into which you want to install it.
4) You can re-check the installation by opening the Resource Manager
from the Utilities Menu of the RTE.
Externals are usually called like a function. IOW in your case:
get fileCopy(tSourcePath,tDestPath)
Ken Norris
pixelbird@...
www.sonicbridge.us
[Non-text portions of this message have been removed]