codez / importphotofolders Goto Github PK
View Code? Open in Web Editor NEWImport a folder hierarchy as albums into OS X Photos.
License: MIT License
Import a folder hierarchy as albums into OS X Photos.
License: MIT License
Is it possible to modify the script to tell Photos to automatically import (or NOT import) all duplicates? This script is fantastic but still requires manual intervention to tell Photos what to do for dups.
Hello! This isn't really an issue as such, but a heads up - I tried the script on Yosemite and it worked fine. Which part of it was supposed to be El Capitan-only?
script saved my life :)
got an error when importing a 220G dir via wifi-win : with timeout after 2h run
"line with timeout of (30 * 60) seconds"
I think you need to increase timeout (at least what I have made now)
I have a specific folder on my Mac where my photos are imported from my phone to my Mac every time I am on my local wifi. This folder then needs to be imported into Photos.
I love this script, but I need to change something in it to instead of asking for the input folder on each run, that it will automatically run with the aforementioned specific folder I want to hardcode into the script.
How do I do this? (I'm a novice applescripter, need some direction) Thanks
Please add other common supported photo file extensions - for example
ORF - Olympus raw
NEF - Nikon raw
CRW, CR2 - Canon raw
DNG - Adobe digital negative
...
https://en.wikipedia.org/wiki/Raw_image_format#Raw_filename_extensions_and_respective_camera_manufacturers
https://support.apple.com/en-us/HT203088
thank you
Hi, is it possible that all (sub-)folders for example named 'xyz' are excluded while importing?
Thanks for writing this - very much what I was looking for trying to consolidate a large number of architectural images that are spread across many directories.
Problem I am having is that on running the script on a small test directory I noticed that some of the (nested) images are disappearing, others are being renamed to that of the folder name that they are located within. Also, some nested folders are failing to import altogether (although I am not sure if this was intentional or not perhaps?) See the following before and after screen shots:
Any ideas how to prevent this from happening? For our purposes it is critical that we preserve the original image/filenames (and also any pre-existing metadata / tags etc.).
Ideally what would be great would be if we could simply import all the images contained within a given directory (including recursively searching within any nested directories) and keep all the filenames and any metadata intact. Any help with this would be most appreciated!
I need to copy the folders into the Family Shared Folder - can the code be adapted ?
When the pictures are located in a smb network drive, like in /Volumes/home/pictures, the script returns the following error message:
error "Can’t make name of item 1 of {alias "home:pictures:"} into type text." number -1700 from name of item 1 of {alias "home:pictures:"} to text
I just found that if the external drive is renamed to "homee", or anything different than "home", the script works just fine.
I just though you should know that this script is no longer necessary. Apple Photos does this itself now.
Thanks for creating this script! It saved my bacon big time! I did run across what seems to be an undocumented limit on the number of files in each folder. I haven't done the trial-and-error to narrow it down completely, but it seems that 998 is too many, but 750 works. Is there some limit to the number of items (file names?) that can be stored somewhere? Might it be possible to increase that limit via some type of declaration?
A bit more detail about what happened: I have some folders containing very large numbers of photos. One that I experimented with has 2,461 jpg images, but I have others much larger (I want to use Photos to organize them). Attempts to import this folder failed with an unspecified Finder error. Since I suspected the problem was due to the number of files in the folder, I created 4 subfolders in Finder and moved roughly 1/4 of the files to each subfolder. The script worked. I first guessed 1024 might be the magic number, so rearranged the subfolders so one had 1023 files and tried to import that - it failed. Same for 1000 (which I thought would be a more convenient number to deal with), 999, & 998. Then I tried 750 and that worked fine. So it seems there's a limit of somewhere between 750 and 998 - or is it to do with the total size of aall the files?
When importing lots of photos I get the error, this is 135GB of 65,780 photos
error "Photos got an error: Connection is invalid." number -609
Then when I navigate to Photos I get "photos has terminated and needs to be closed" - the import then fails, this seems to be a High Sierra feature as this script worked in Sierra with no issues
Any ideas?
Hi,
thank you very much for offering this script, it is a brilliant work!
Unfortunately I'm having some troubles using it: I'm getting a finder error ""Finder got an error: AppleEvent timed out." number -1712".
I'm using the most resent version of El Capitan, my photos are on an external NAS, connection speed is 1 GB. The photos are being imported really slow with the script, if I import a folder manually it goes significantly faster. For example one folder has 11 GB data with approx. 6000 photos in it.
Do you have an idea, what can I do, I would really appreciate it if you can help me.
Thanks
I'm importing 20 000 photos from Picasa to Apple Photo using the ImportPhotoFolders. I have 21 big folders each corresponding to 1 year. After 2 or 3 folders imported, I began to have "Cannot Import Item unrecognizable file format or invalid data" error for all the files yet in the different folders.
It took me a lot of time to find out that I just needed to restart Apple Photos and then, everything is ok.
It may also be worth noting that you need not to have spaces nor parentheses in your files/folders names and only movies recognizable with QuickTime for the script to work.
Does it work fine for macOS Sierra?
Doesnt look like. When I tried to run for 7k photos only 2k were successfully imported and the rest not due to invalid meta data?
It very nice to import my images and organize
i keep add and edit my image, any way to keep sync the library with folders?
Hi,
Great script firstly. I was wondering is there an option to setup the script to handle duplicate file imports.
right now it dialog box pops up that asks how would you like to handle duplicate files? obviously do not import but you have to sit there and watch for this dialog which be tedious.
any one else have a solution to this issue?
Hi,
this script is extremely useful, thanks a lot!
Unfortunately I'm running into something which seems to be a bug in Apple Photos and which seems to happen if many images are being imported in a short time (see description here: [https://www.macworld.com/article/3167072/photography/how-to-work-around-the-unable-to-get-metadata-error-in-photos.html]).
So if you would import a chunk of probably 200 images, wait for them to be imported/processed/... and then import the next chunk, it might workaround the bug.
Just an idea ;-)
Thanks again,
Norbert
Hi, I would like to thank you for this tools, really helps me within my workflow :
Lightroom => Export to finder => Import to Photos
Then, I would like to propose some additional features or ideas that would really support people having the same need as me (a kind of sync between Lightroom / finder and Photos)
=> Script acting as a syncing. Being able to delete a photo in the library when original picture no more present into the finder folder.
(i.e : for each thumbnail in Photos for which the original picture in the finder folder is missing, delete the thumbnail in Photos)
=> Avoiding the dial box asking if we want to re-import / replace a photo when already existing into Photos. (just don't re-import twice)
(currently, even if I answer "no" to the dial box, the script is still creating a second empty album)
Hope my ideas will interest someone and/or someone could help me into getting this done!!
Once more, thanks for this first part. Regards
can you programm into your apple skript
A query if the folders or album already exists that it just imported it only
Thank you in advance
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.