Rick Harrison wrote:

> Hi Richard,
>
> The result says:
>
> can't rename file (20)
>
> I see that you are using a “move file” in your example.
> The dictionary doesn’t show an example for moving a file.
>
> I tried the following example to see what would happen:
>
> move file OldImagePathAndFileName to tFileName
>   if the result is not empty then
>    put the result && "(" & sysError() &")"
>  end if
>
> I’m getting:   move: missing ‘to'
>
> This seems rather bizarre to me.
>
> Your thoughts?

My bad: I was thinking of bash; in LC the "move" command is for moving controls but not file objects. To move files we use "rename".

--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 ____________________________________________________________________
 [email protected]                http://www.FourthWorld.com

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

Reply via email to