Page 1 of 1

Move Files to Network Device and replace existing files

PostPosted: Sat May 01, 2010 6:57 am
by xaMax
Hi,

I have a problem to move files to a network device and replace existing files there,

Scenario:
Mac A with File: test.txt
Mac B also with File: test.txt

Hazel Rule on Mac A:
If filename is test.txt then Move file to Mac B and replace existing files.

Then I get an error message, that it could not be moved. How can I solve this?

And is there a possibility to wake up Mac B and connect to Mac B automatically, before moving the file?

Thanks a lot!

Re: Move Files to Network Device and replace existing files

PostPosted: Mon May 03, 2010 3:29 pm
by Mr_Noodle
You'd need to check the logs. Go to the "Info" pane and click "View Log". Search for the file in question.

If the other Mac is asleep, then no, the move won't work. To wake it, you'd need to write a script. It's beyond the help I can give you but you probably want to hook into the "Wake on LAN" function.

Re: Move Files to Network Device and replace existing files

PostPosted: Thu May 06, 2010 12:38 pm
by xaMax
The other Mac was awake and I got this error message:

2010-05-01 12:50:10.258 hazelfolderwatch[25321] Error moving file /Users/user/test.txt to /Volumes/test.txt: -47 - File is busy (delete)
2010-05-01 12:50:10.282 hazelfolderwatch[25321] [Error] Move failed: Could not move file test.tt from folder /Users/muser/test.txt to folder /Volumes/test.txt.

As I said: On /Volumes there already exists this file.
Is it possible, that you can't delete files on an external drive from another mac within the network?
And therefore the "move" failed?

For waking up, I assumed to go deeper into WOL. Already tried it once and it didn't work reliable... but let's see ;)

Re: Move Files to Network Device and replace existing files

PostPosted: Fri May 07, 2010 2:48 pm
by Mr_Noodle
Are you running the latest version of Hazel? While there are isolated cases where that error may happen, it should be quite rare.

Re: Move Files to Network Device and replace existing files

PostPosted: Fri May 07, 2010 3:07 pm
by xaMax
Mr_Noodle wrote:Are you running the latest version of Hazel? While there are isolated cases where that error may happen, it should be quite rare.

Yes it is the latest version.

I will try it again this weekend. Perhaps it was some other problems?!
Let's see!