Hi Sieg,

I have never understand why people use the revCopyFile command. Just use the read and write commands or use the cp or mv shell commands to copy a file. You could even write your own AppleScript snippet. Of course, any specific solutions will need their Windows and Linux counter parts for cross-platform compatibility.

You might want to set the modification date and other file info after copying the file. This might get you started on Mac OS X: <http://runrev.info/Set%20modification%20date.htm >.

A nice advantage of using read/write commands is that you can copy small chunks in a repeat loop and meanwhile show a progress bar.

If you still want to use the revCopyFile command, try using an absolute instead of a relative file path.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http://www.salery.biz
Dutch forum: http://runrev.info/rrforum

We are always looking for new projects! Feel free to contact us to discuss your custom software project!

On 13 jan 2009, at 00:03, Sieg Lindstrom wrote:

I've searched the archives and see this problem has been discussed before, but none of the advice therein helped me. Any idea why this code works for
me in OSX...

if there is a file "1-meet data/ABC affils" then put "found"

But the following does not?

on mouseUp
-- "1-meet data" is the folder containing the file I'd like to copy.
-- "2-processed meet data" is the folder I'd like to copy to.
--Both folders are in the defaultFolder.
--"ABC affils" is the name of a .txt file

   revCopyFile "1-meet data/ABC affils", "2-processed meet data"

end mouseUp

The file does not get copied and the result is "execution error."

The fact that the first code fragment works suggests I have the file path
right. But revCopy File disagrees.

Thanks in advance for any solutions.

SL

_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to