OS X: Too slow copying videos from Photos App to another folder?

  • Record video on my iPhone
  • Import it to Photos App
  • Copy it to another folder — say, ~/Desktop/snowpal/videos (by dragging and dropping it from Photos)
  • Import it to Final Cut Pro
  • Make the necessary edits
  • Export it to ~/Desktop/snowpal/videos
  • Publish it to LinkedIn, Facebook, etc.
Photo by Gabriel Heinzer on Unsplash
  • Open a Terminal window
  • Run this command
ls -ltr ~/Pictures/Photos\ Library.photoslibrary/originals/**/* | tail -10
  • Your photos and videos should be stored in the Pictures directory, and the command above will return the most recent 10 videos (change it to any number you like).
  • It will return results along these lines:
-rw-------@ 1 snowpal  staff  3096288553 Mar  1 14:17 /Users/snowpal/Pictures/Photos Library.photoslibrary/originals/8/90A587AD-655B-4BAF-98DB-A69D85D2A8E0.mov-rw-------@ 1 snowpal  staff  3026527903 Mar  1 14:25 /Users/snowpal/Pictures/Photos Library.photoslibrary/originals/9/8622D9FB-59A9-4426-A8C4-F5A8CE92BE20.mov
  • Since we are only interested in the file name, we can tweak our command a bit to return only the name.
ls -ltr ~/Pictures/Photos\ Library.photoslibrary/originals/**/* | tail -10 | awk '{print $9 $10}'
  • This will return:
/Users/snowpal/Pictures/Photos Library.photoslibrary/originals/8/90A587AD-655B-4BAF-98DB-A69D85D2A8E0.mov
/Users/snowpal/Pictures/Photos Library.photoslibrary/originals/9/8622D9FB-59A9-4426-A8C4-F5A8CE92BE20.mov
  • Now, let’s copy this to our destination folder.
cp /Users/snowpal/Pictures/Photos Library.photoslibrary/originals/8/90A587AD-655B-4BAF-98DB-A69D85D2A8E0.mov ~/Desktop/snowpal/videos
  • If you are wondering why we wouldn’t do this as part of the previous command, it’s simply because piping the results (aka, file name) to | xargs cp -t ~/Desktop/snowpal/videos doesn’t work on OS X (it should work in *nix distributions).

--

--

--

I am a Software Developer and Architect, and run the engineering team at Snowpal. Use our Web and Mobile Apps to manage all your projects!

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Digital signature in simple words

Learn Practical Programming: The Basics

Creating a Kafka Cluster in Ubuntu 18.04

update the OS

Music, Metadata and Magic!

Beginner in Python? Make it Easy to Learn. Part-01

10 Things About HTML & CSS

Create different Environments(DEV,QA,UAT,PROD) and configurations for iOS Projects.

5 Steps That Made My First Major JavaScript Project Successful

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Krish Palaniappan

Krish Palaniappan

I am a Software Developer and Architect, and run the engineering team at Snowpal. Use our Web and Mobile Apps to manage all your projects!

More from Medium

Want to Start Your Dental Clinic? Here’s What You Need to DO

Join me in my 8th year of Extra Life

Butterflies in the Lockdown

Applications that are useful on a daily basis using a smartphone.