revCopyFile copies nothing; revCopyFolder copies the folder, but not its contents.
I'll start with revCopyFils and maybe the solution to that will help with revCopyFolder, too.
Here is some test code:
Code: Select all
on mouseUp
put fld "tester" into appleScriptInit
put the effective filename of this stack into tPath
set the itemDelimiter to slash
delete last item of tPath
put tPath & "/Required files/eBooks.css" into fileToCopy
delete last item of tPath
put tPath & "/" into folderToCopyTo
revCopyFile fileToCopy, folderToCopyTo
put "File:" && fileToCopy & "; Folder:" && folderToCopyTo
end mouseUp
The final put is there simply to check the variables being used.
The script compiles and runs without error. However, nothing is copied.
What am I doing wrong?
(RevMedia 4.0.0 under MacOS X 10.6.5)