Shortcut to take GPS coordinates from one field and write to another

I have a number of images and videos where the GPS coordinates are stored in the comments field of the information panel. How do I write a shortcut that will take those coordinates and write them to the GPS metadata field?

Posted on Jul 29, 2024 3:54 PM

Reply

Similar questions

1 reply

Jul 29, 2024 6:25 PM in response to nueve_leon

If you install ExifTool, then you can capture the lat,long from the comment field and then apply that data to the GPS content of the image.


I have written a Zsh script that takes an image, extracts the contents of the comment field to see if it exists and is numeric, and then populates an array with the latitude and longitude values. It then uses ExifTool to apply this gps data to the image, and then confirms it with printing the assigned dms coordinates.




It is 9:30 p.m. here so I am done with this for the day, but in the morning, I can take the Zsh script and put it inside of a macOS Shortcut, have it take a folder in the Finder acting as a Quick Action. Then test it, and provide you with a link where you can then download that Shortcut.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Shortcut to take GPS coordinates from one field and write to another

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.