Page 1 of 1
Spotlight attribute 'Contents created' not creating folder

Posted:
Tue Oct 23, 2018 4:20 am
by Toledo
Want this one for sorting files, often the modification and/or creation date is wrong. This also fails on any spotlight attribute (tried device model). Recently altered rule to find files that only had the content creation attribute, thinking that was why it might be failing. But in most cases the best it does is create 0001 folder. Normal attributes work fine.
Re: Spotlight attribute 'Contents created' not creating fold

Posted:
Tue Oct 23, 2018 11:00 am
by Mr_Noodle
If you select the file in Finder and do "Get Info", you can see what date attributes are available there. Otherwise, I'm not quite following what you are trying to do. If you could provide an example, that might help.
Re: Spotlight attribute 'Contents created' not creating fold

Posted:
Tue Oct 23, 2018 11:10 am
by Toledo
I want Hazel to create a subfolder that is based on this attribute. This is what doesn't work. Instead of the date, it just puts all the files into a 0001 folder. Expected Behavior is that the image is placed inside a folder based on the contents created date, as happens if modification date is selected instead.
Re: Spotlight attribute 'Contents created' not creating fold

Posted:
Tue Oct 23, 2018 11:25 am
by Mr_Noodle
If that date isn't filled out then you'll get behavior like that. Check the dates that are available and make sure to use one of those.
Re: Spotlight attribute 'Contents created' not creating fold

Posted:
Tue Oct 23, 2018 11:36 am
by Toledo
Edit: Just tried this with a single image, and it worked. Perhaps some images don't have the year in there, and so it breaks the entire chain? Is there any way to get this to work on those that do have the supported information?
Yes all files have content created date, I added that into the filter. This seems to happen with any spotlight attribute, also tried device model.
Re: Spotlight attribute 'Contents created' not creating fold

Posted:
Wed Oct 24, 2018 10:44 am
by Mr_Noodle
Can you show the logs for a file where it isn't working along with a screenshot of the date in question?
Re: Spotlight attribute 'Contents created' not creating fold

Posted:
Fri Nov 02, 2018 2:13 pm
by Toledo
Here is one image from batch of thousands I just tried:
2018-11-02 18:06:35.205 hazelworker[4529] 27036_1305385246700_1592601680_30739396_7969904_n.jpg: Rule Image sort matched.
2018-11-02 18:06:35.206 hazelworker[4529] [File Event] File copied: 27036_1305385246700_1592601680_30739396_7969904_n.jpg copied from folder /Build/Server org/Images /2013/2.26 to folder /Build/SO3.
2018-11-02 18:06:35.233 hazelworker[4529] [File Event] File moved into subfolder: /Build/SO3/Delete/0001/27036_1305385246700_1592601680_30739396_7969904_n.jpg sorted from folder /Build/SO3 to subfolder Delete/0001.
2018-11-02 18:06:35.263 hazelworker[4529] DEBUG: Rule executed. Updating match date for file /Build/SO3/Delete/0001/27036_1305385246700_1592601680_30739396_7969904_n.jpg: 2018-11-02 18:06:35 +0000
2018-11-02 18:06:35.263 hazelworker[4529] DEBUG: Action changed file: 27036_1305385246700_1592601680_30739396_7969904_n.jpg

Re: Spotlight attribute 'Contents created' not creating fold

Posted:
Mon Nov 05, 2018 12:12 pm
by Mr_Noodle
Can you post the rule? I'm not sure what date attribute you are using here.