Copying / Moving from Desktop Folder to Server Folder

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

I feel stupid writing this, but I've wasted so much time this morning, I decided to give up and ask for help.

Here's my situation...

I already have a Hazel action that moves files based on both a portion of the file name and the OpenMeta tag into a subfolder of a folder on my Desktop.

In these examples all of my files contain the name wd-** (** indicate numbers) and end in .txt. (This rule is run from my Desktop Folder in Hazel.)

ex.) wd-** when saved to the Desktop and has the same wd-** OpenMeta tag goes to a file inside the folder /Desktop/UNIX Files/wd-**

Again, this part works, here's what I'd like it to do.

Any files within these directories over 30 days of last date modified, move them to a server using the same type of convention.
In this case it would be /Servers/UNIX/wd-**

This rule is run from the UNIX Files directory from the Desktop

I have two files within here.

1.) UNIX Directories

If Kind is Folder, Run Rules on Subfolders.
This is based on viewtopic.php?p=2220#p2220

This is easy, the subfolders are all wd-** directories and the text files are contained within each of them.

2.) The next rule is to move the files

If all conditions match, Name contains "wd-"

Do the following...

Move file to Folder /Volumes/Our Server/Servers/UNIX.
Sort into subfolder with pattern: OpenMeta Tags (tags) again, this should be wd-**
Send Growl notification.

I can't get this to work properly because it says that the sort failed.
The best that I've been able to do at this point is get it to move to the same subdirectory that I'm trying to get it to...

ex.)

/Volumes/Our Server/Servers/UNIX/wd-13
/Volumes/Our Server/Servers/UNIX/wd-13_this_is_a_test_file.txt

I've spend half a day on this so far and I figured it would have been closer to 10 minutes. Again, feel stupid for asking, I thought that I'd checked everywhere but still can't find anything.

Thanks,

Scott
scottrych
 
Posts: 6
Joined: Mon Mar 14, 2011 9:59 pm

You shouldn't feel stupid for asking questions. That's what the forums and support are for.

Check the logs. Go to the Info section and click "View Log". Post the actual error you are seeing and we can go from there.
Mr_Noodle
Site Admin
 
Posts: 11880
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Here are the latest logs... I re-ran everything just to make sure.

Thanks,

Scott


2011-03-15 13:39:02.725 (null)[0] wd-13 Affinity Setup_2011-03-08.txt: Rule WDP UNIX Files matched.
2011-03-15 13:39:02.748 hazelfolderwatch[13830] [File Event] File renamed: /Users/scott.r/Desktop/wd-13 Affinity Setup_2011-03-08.txt renamed to /Users/scott.r/Desktop/wd-13 Affinity Setup_2011-03-08_2011-03-08.txt.
2011-03-15 13:39:02.814 hazelfolderwatch[13830] [File Event] File moved: wd-13 Affinity Setup_2011-03-08_2011-03-08.txt moved from folder /Users/scott.r/Desktop to folder /Users/scott.r/Desktop/UNIX Files.
2011-03-15 13:39:02.876 hazelfolderwatch[13830] [File Event] File moved into subfolder: /Users/scott.r/Desktop/UNIX Files/wd-13/wd-13 Affinity Setup_2011-03-08_2011-03-08.txt sorted from folder /Users/scott.r/Desktop/UNIX Files to subfolder wd-13.
2011-03-15 13:39:02.877 hazelfolderwatch[13830] Hazel Alert: wd-13 Affinity Setup_2011-03-08_2011-03-08.txt 1:39 PM WDP UNIX Files
2011-03-15 13:39:02.877 hazelfolderwatch[13830] [Custom Message] Hazel Alert: wd-13 Affinity Setup_2011-03-08_2011-03-08.txt 1:39 PM WDP UNIX Files
2011-03-15 13:39:04.903 (null)[0] wd-13: Rule UNIX Directories matched.
2011-03-15 13:39:04.908 hazelfolderwatch[13833] wd-13 Affinity Setup_2011-03-08_2011-03-08.txt: Rule Move WDP UNIX Files matched.
2011-03-15 13:39:05.776 hazelfolderwatch[13833] [File Event] File moved: wd-13 Affinity Setup_2011-03-08_2011-03-08.txt moved from folder /Users/scott.r/Desktop/UNIX Files/wd-13 to folder /Volumes/is/Admins/Servers/UNIX.
2011-03-15 13:39:05.853 hazelfolderwatch[13833] [Error] Sorting into subfolder failed: Could not move /Volumes/is/Admins/Servers/UNIX/wd-13 Affinity Setup_2011-03-08_2011-03-08.txt. Source and destination are the same.
scottrych
 
Posts: 6
Joined: Mon Mar 14, 2011 9:59 pm

It seems that maybe you are trying to sort the file into itself. I'd need to see how you are specifying the sorting pattern to know what is going on here. Also, are you sure that the tags are actually there?
Mr_Noodle
Site Admin
 
Posts: 11880
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Hi,

I created screenshots of my rules and the file to show the tagging. (I tested out the links which worked on my end.)

Desktop Rule which moves to UNIX Files subdirectory

http://dl.dropbox.com/u/634240/Hazel%20 ... Config.png

UNIX File Rule which just runs rules on subdirectories

http://dl.dropbox.com/u/634240/Hazel%20 ... le%201.png

Setup of Move and sort to subdirectories

From my testing, it appears that the subfolder "wd-13" in this example is what's trying to copy to my remote volume which already exists (which is probably why it's failing). I'm actually looking for the contents of the local folder wd-13 to be copied to the contents of the same folder on the server.

http://dl.dropbox.com/u/634240/Hazel%20 ... le%202.png

Test file tagging

http://dl.dropbox.com/u/634240/Screen%2 ... agging.png

Thanks again,

Scott
scottrych
 
Posts: 6
Joined: Mon Mar 14, 2011 9:59 pm

I'm finding following this a bit confusing but my guess is that the wd-13 folder is tagged with wd-13 so it's trying to sort wd-13 into wd-13 (itself).

Maybe you could provide a step by step flow of what you want to happen, with a specific file going from each folder to folder.
Mr_Noodle
Site Admin
 
Posts: 11880
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

I double checked and neither the local wd-13 nor (or) the remote wd-13 folders are tagged.

The file wd-13 Affinity Setup_2011-03-08_2011-03-08.txt is tagged with wd-13.

My goal is to initially save files to my desktop, have Hazel move the document to a local folder on my hard drive and then when I haven't touched it in 30 days, make Hazel archive it to the server within a folder named after the server.

I always use the server name (such as wd-13) within my document, and I always manually put the date modified within the document. I also use either Filr or Tagit to tag my file with the server name. (Depends on the amount of files I want to tag.)

I was hoping to manually save the file with "wd-13 and then a short description", then Hazel could rename the file for me as it moved it to the local subfolder (based on the OpenMeta tag) to include the date modified and archive it later. This works the way I expect it to. This is the rule setup that works below.

http://dl.dropbox.com/u/634240/Hazel%20 ... Config.png

So, in the end of this Desktop rule I now have the file "wd-13 Affinity Setup_2011-03-08_2011-03-08.txt" (which I manually tagged) stored in the local folder /Desktop/UNIX Files/wd-13/

If the file within that local wd-13 folder hasn't been written to in 30 days, I'd like to then move it into the directory on my server, /Volumes/is/Admins/Servers/UNIX and then sorted into a subdirectory called "wd-13". I manually created the server wd-13 folder as it has other archived documents that pertain to that server.

I hope this helps. If it doesn't make sense, odd are that it's something that I'm doing wrong. ;)
Our servers range sequentially which is why I was hoping to base it on OpenMeta tags. Originally I was trying to do this with Spotlight Comments until I heard David Sparks Mac Power Users Podcast last night with Brett.

I REALLY appreciate all your time with this. :)

Thanks again,

Scott
scottrych
 
Posts: 6
Joined: Mon Mar 14, 2011 9:59 pm

Have you checked the tag on the file after being moved to the other disk? There may be issues with tags transferring across filesystems like that.
Mr_Noodle
Site Admin
 
Posts: 11880
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

I checked and the tag does stay on the version copied to my server.

Scott
scottrych
 
Posts: 6
Joined: Mon Mar 14, 2011 9:59 pm

Ok, I think I know the problem. Looking at it more closely, I think you have Hazel set to go into subfolders, in which case, it goes into the final wd-13 folder, finds the file that you thought was at its final resting place, and it puts it back up to the UNIX folder (via the WDP UNIX Files rule).

I'm not sure if you want Hazel to go into subfolders below UNIX Files so you may want to get rid of that rule. Either that, or add a condition to the other rules to only apply to the top level folder (use the subfolder depth).
Mr_Noodle
Site Admin
 
Posts: 11880
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

I do have my rule to go into subfolders to put the file directly into the "wd-13" folder based on that tag. I'll try the subfolder depth to see what I can do and let you know.

Thanks,

Scott
scottrych
 
Posts: 6
Joined: Mon Mar 14, 2011 9:59 pm


Return to Support