All,
I'm pulling my hair out (and there's not much to start with!).
I'm trying to perform some file modifications (using an AppleScript) on a file, but I don't want to trash the original file. So, I figured I'd just Copy it, then perform my actions on the copy (it's fine for the copy to have a different name).
For the sake of argument, let's say the folder being watched is Desktop. My file is placed there, so Hazel fires:
Copy to folder Desktop (Options: If file exists, rename the file)
However, everytime the rule files, Hazel gives me the error:
"Could not copy the file XXX. Source and Destination are the same."
But that's what I want, I want 2 files, same contents, different names, same folder. Then I want my AppleScript to modify the second file (or the first, doesn't matter).
Can the Move or Copy operations happen within the same folder? Or do you always have to make the destination a different folder?
I was able to accomplish it with two rules, one that copies the file to a different folder, then performs the actions on the original, and a second rule that moves the copy back to the Desktop.
If I was able to just make a copy on the Desktop, then perform actions on the copy, I could do everything in one rule.
Thoughts?