After processing, the resulting aliases work correctly within the Finder for the iCloud user who ran the Hazel Rules.
Unfortunately, the aliases do NOT work for other users who share the iCloud folder.
The reason they don’t work appears to be that the path embedded in the alias that Hazel creates starts with /User/<username> instead of starting with ~ (tilde).
Here’s a simplified example.
Steps
- Bob creates the folder ours and shares it with Alice.
- Bob creates a file named file.txt
- Bob runs Hazel Rules that (a) creates an alias of file.txt named file.txt alias and (b) renames file.txt alias to alias.
Results
- Bob and Alice have exactly the same Finder view of what’s in the iCloud shared folder, ours, namely, a file named file.txt and an alias named alias.
- Bob can open file.txt by double-clicking on alias.
- Alice gets a Finder error saying that the alias is broken when she double-clicks on alias.
- When Bob selects alias and presses ⌘I (Get Info), he sees the path /Users/bob/Library/Mobile Documents/com~apple~CloudDocs/ours/file.txt
- When Alice selects alias and presses ⌘I, she sees the same path Bob sees, namely, /Users/bob/Library/Mobile Documents/com~apple~CloudDocs/ours/file.txt, which of course can not be found in Alice’s file system.
- Alice’s path needs to be displayed: /Users/alice/Library/Mobile Documents/com~apple~CloudDocs/ours/file.txt
How can I make Hazel create aliases in an iCloud shared folder that resolve correctly for all users who share the folder?