Import to Photos with folder option

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

Moderator: Mr_Noodle

Import to Photos with folder option 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.
olisto
 
Posts: 18
Joined: Tue Sep 15, 2020 2:32 am

Re: Import to Photos with folder option 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.
Mr_Noodle
Site Admin
 
Posts: 11868
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Import to Photos with folder option Thu Oct 01, 2020 1:30 pm • by olisto
Screenshot Photos:
Image

Unfortunately this option have to be set explicit during every import process.
Photos offers no setting at Preferences to use this option as default. :(
Last edited by olisto on Sat Oct 10, 2020 5:48 am, edited 1 time in total.
olisto
 
Posts: 18
Joined: Tue Sep 15, 2020 2:32 am

Re: Import to Photos with folder option Fri Oct 02, 2020 10:25 am • by Mr_Noodle
Thanks for the clarification. Can you describe what that option does for you exactly?
Mr_Noodle
Site Admin
 
Posts: 11868
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Import to Photos with folder option 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)?
olisto
 
Posts: 18
Joined: Tue Sep 15, 2020 2:32 am

Re: Import to Photos with folder option 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.
Mr_Noodle
Site Admin
 
Posts: 11868
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Import to Photos with folder option 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.
olisto
 
Posts: 18
Joined: Tue Sep 15, 2020 2:32 am

Re: Import to Photos with folder option Mon Oct 19, 2020 10:30 am • by Mr_Noodle
Are you using this script in a condition or action?
Mr_Noodle
Site Admin
 
Posts: 11868
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Import to Photos with folder option Mon Oct 19, 2020 2:42 pm • by olisto
I'm using the script in an action.
olisto
 
Posts: 18
Joined: Tue Sep 15, 2020 2:32 am

Re: Import to Photos with folder option Mon Oct 19, 2020 5:54 pm • by Mr_Noodle
That requires a different handler. Check the manual for more details.
Mr_Noodle
Site Admin
 
Posts: 11868
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Import to Photos with folder option Tue Oct 20, 2020 4:18 am • by olisto
Thx
That was my fault.
olisto
 
Posts: 18
Joined: Tue Sep 15, 2020 2:32 am


Return to Support