revCopyFile, revCopyFolder problems
Posted: Sat Dec 25, 2010 1:26 pm
I am unable to get either revCopyFile or revCopyFolder to work correctly.
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:
The subfolder Required files and its associated files (in this case we are looking only at eBooks.css) exist. (Indeed, I can run a copy from the Terminal, but not from the Shell command).
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)
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)