Page 1 of 1
Import to Photos with folder option

Posted:
Thu Oct 01, 2020 9:42 am
by olisto
Photos has the import option "Keep Folder Organization". Is it possible to add this feature to Hazel?
I couldn't found any settings to do this at Hazel 4 or 5.
Re: Import to Photos with folder option

Posted:
Thu Oct 01, 2020 10:20 am
by Mr_Noodle
I'm not seeing that particular options but Hazel just uses whatever settings is in Photos.
Re: Import to Photos with folder option

Posted:
Thu Oct 01, 2020 1:30 pm
by olisto
Screenshot Photos:

Unfortunately this option have to be set explicit during every import process.
Photos offers no setting at Preferences to use this option as default.

Re: Import to Photos with folder option

Posted:
Fri Oct 02, 2020 10:25 am
by Mr_Noodle
Thanks for the clarification. Can you describe what that option does for you exactly?
Re: Import to Photos with folder option

Posted:
Tue Oct 06, 2020 3:00 pm
by olisto
All my photos are managed in a special folder structure.
Year 2019->Event 1->Pic1, Pic2, ...
Year 2019->Event 2->Pic1, Pic2, ...
This option rebuild this structure inside of Photos.
I found a solution to do this job by a AppleScript.
Is it possible to add a script with several handler (on doSomething ... end doSomething)?
Re: Import to Photos with folder option

Posted:
Wed Oct 07, 2020 10:09 am
by Mr_Noodle
Thanks for the details. If you want multiple handlers in the same script, you need to save them to a file and use it as an external script.
Re: Import to Photos with folder option

Posted:
Sun Oct 18, 2020 6:00 am
by olisto
Unfortunately the external script won't be executed.
I used this script to test it.
- Code: Select all
on hazelMatchFile(theFile, inputAttributes)
say "running external script"
end hazelMatchFile
Same problem with a file output.
Re: Import to Photos with folder option

Posted:
Mon Oct 19, 2020 10:30 am
by Mr_Noodle
Are you using this script in a condition or action?
Re: Import to Photos with folder option

Posted:
Mon Oct 19, 2020 2:42 pm
by olisto
I'm using the script in an action.
Re: Import to Photos with folder option

Posted:
Mon Oct 19, 2020 5:54 pm
by Mr_Noodle
That requires a different handler. Check the manual for more details.
Re: Import to Photos with folder option

Posted:
Tue Oct 20, 2020 4:18 am
by olisto
Thx
That was my fault.