Git Product home page Git Product logo

importphotofolders's People

Contributors

alessandro-gentilini avatar codez avatar janhar avatar mackworth avatar sullimander avatar thecapacity avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

importphotofolders's Issues

Auto-Import Duplicates

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.

Works on Yosemite

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?

with timeout need to be bigger

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)

How to have script run on a specific folder everytime

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

Nested images disappear or get renamed to parent folder names

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:

before-import

after-import

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!

Shared Folder

I need to copy the folders into the Family Shared Folder - can the code be adapted ?

Script fails when importing from network drive

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.

Limit to number of files in each folder?

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?

Photos crashing on import

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?

Error running script

When I run this script I get the error:

Cant make class <>

Photos got an error : Cant make class <>

Looks like this :

error

I also get timeout on folders with a large amount of photos in them

Can you help ?

Finder Error number -1712

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

Problems when importing lots of photos

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.

macOS Sierra

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?

duplicate import bulk handling

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?

Throttling

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

Great => additional feature : Deleting option

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.