You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Where are photo file names?

I've "titled" many, many photos in iPhoto by changing the filename (e.g. "DSC_2254" --> "On vacation in Hawaii"), but there appears to be no option in Photos to show the filename. So none of my "titles" appear. Am I missing something?

iMac (Retina 5K, 27-inch, Late 2014), OS X Yosemite (10.10.3)

Posted on Apr 9, 2015 7:56 AM

Reply
Question marked as Top-ranking reply

Posted on Apr 11, 2015 5:41 PM

That is an idea.


I experimented a bit, and with Apple Script we could make it a bit simpler, directly in Photos: This will save the installation of exiftool and the necessity to export the files. This way the lossless workflow will be preserved.


Create an Automator action, that executes an Apple Script to change the titles to the filename, if the title is empty:


The Apple Script:


on run {input, parameters}

tell application "Photos"

activate

set imageSel to (get selection)

if imageSel is {} then

error "Please select an image."

else

repeat with im in imageSel

set title to the name of im

if not (exists (title)) then

set the name of im to the filename of im

end if

end repeat

end if

end tell

return input

end run

Launch Automator, create a new service, and drag a "Run Apple Script" action into the workflow.

Copy and paste the text above into the "Run Apple Script" action to replace the default text in the action.

User uploaded file

Save this workflow with a suitable name. It will be installed in the services.


  • Now launch Photos and select a few test images.
  • Open the "Photos Menu > Services".
  • The service should be shown in the menu - I saved my version as "filename2title".
  • Select the service to let it run. When you click the selected photos again, the titles should change.


User uploaded file

After the Automator action completed:

User uploaded file



282 replies

Apr 9, 2015 5:07 PM in response to R C-R

But if the filename was edited in the Finder, doing that won't add an embedded title to the file. And if it was done in iPhoto, it still won't add one to the original photo file, only to a file exported in a file format iPhoto supports embedding the title in. Apparently, iPhoto only supports that only for the jpeg format.

That is not the original question. When we migrate from iPhoto or Aperture to Photos, the titles we added to the photos as metadata tags using the annotation tools (batch change, Info panel) in iPhoto or Aperture are supposed to be migrated, just like the captions.

But as clearly shown by the OP, Photos removed titles that have been added this way - all added titles that look syntactically like filenames, because the title contains a filename extension.

I call that a bug, if Photos is performing censorship on the titles we add to our photos and suppresses certain titles.

Apr 9, 2015 5:49 PM in response to Washington Apples

I have this similar problem with organizing photos too. I have thousands of photos suppose to be sorted by title, so browsing in an event / album will be better of.

iPhoto set filename as title automatically, but title is missing in Photos. I aware that title is part of metadata, but I still need an easy way to batch set title to all photos.

The easiest way in iPhoto, is batch changing filename, so when importing, filename will be set as title automatically. But Photos works differently.

Manually set title in thousands of photos collection is not practical.

If anyone know any way or scripts to convert filename to title metadata or batch change title for Photos, it would be great and should be a very useful tool for everyone too. So, I'm looking forward for any reply.

Apr 11, 2015 7:39 PM in response to thedatadude

Worse than that - all of my iPhoto albums are now one album of 50 gigs of photos!!!! Ten years of photos in one album. I am expected to now divide all those photos into the albums they were in before. I don't think so! What use is a piece of software that undoes all the work I have done before? Not even a toy. Useless.


As for photo names in iPhoto - I discovered very early on that iPhoto didn't really change the file name so I always rename the file before I import it. There is no other way to ensure that the name of your photo in iPhoto is actually the name of the file. Sorry. It's one of the many reasons I have never used iPhoto as my photo editing tool.

Apr 11, 2015 10:04 PM in response to thedatadude

I am having the same issue. In my case I scanned over 9000 old family photos, negatives, transparencies etc. and had the scanner software assign file names that started with the year the picture was taken. This allowed me to find the pictures by year, and then, using iPhoto's batch change function I was in the process of assigning new creation dates that reflected the actual year and month the picture was taken, rather than the date when it was scanned. All of these file names now show as "untitled". The original file name is now listed in info, and is unavailable for sorting. It makes me wonder who was doing the beta testing, obviously someone who assumed all of the pictures would be original digital photos. Definitely a bug that needs to be fixed!

Apr 12, 2015 8:52 AM in response to léonie

léonie wrote:

But as clearly shown by the OP, Photos removed titles that have been added this way - all added titles that look syntactically like filenames, because the title contains a filename extension.

I have been doing some more checking over the last few days, & I am now reasonably certain that every photo that actually had a filename extension in its title in my iPhoto library also has it in the title imported into Photos.


By "actually," I mean that I confirmed that iPhoto was not using the filename as a substitute for the title if the photo lacked one. Sine that is difficult to determine just by looking at what iPhoto displays as the title, I wrote a short Applescript to compare iPhoto's title & image filename properties for every photo in the entire iPhoto library. I am fully confident the list it generated contains all the photos that actually have a title in iPhoto; however, since I only manually checked some of the photos on that list in Photos, I cannot say I am 100% confident they all preserved the title info.


But every one I checked did. That was about 50 out of 289 photos, including some with jpeg, png, psd, & even pct extensions, so if there really is a bug, I strongly doubt it is directly related to filename extensions.

Apr 12, 2015 9:03 AM in response to R C-R

But every one I checked did. That was about 50 out of 289 photos, including some with jpeg, png, psd, & even pct extensions, so if there really is a bug, I strongly doubt it is directly related to filename extensions.

That is a thorough examination!

I still do not see clearly what is going on.


I simply tested with a new iPhoto Library, imported two new photos, that never had metadata assigned, changed the title in iPhoto's title field by adding a prefix to the full filename with extension. I added a third photo, where I removed the filename extension from the title field.


When I migrated this test library to Photos, only the last photo did show a title, the other two not.

Apr 12, 2015 11:00 AM in response to léonie

léonie wrote:

I still do not see clearly what is going on.

Neither do I. It would probably be a lot easier to figure out if iPhoto made a clear distinction between filenames & titles, but since it doesn't do that I had to resort to using a script just to get a good idea of which was which.


Because of that, & a few other vaporous, non-definitive clues I have noticed, I am beginning to suspect the problem is in iPhoto rather than Photos, but I don't know where that might be or any idea about how to test that theory because I don't (apparently) have any photos with 'real' titles that did not show up in Photos.


It's all very frustrating!

Apr 13, 2015 4:28 AM in response to R C-R

I'm curious. Have you tried this with a large number of images selected?

Thanks, R C-R. No, I have not yet migrated a large library, so I could only test with a hundred photos in a test library. That worked well. I'll have to look at the OS X technologies forum, it seems, to look for more Photos Scripts.


I like your script. How about a User Tip?

Apr 13, 2015 5:07 AM in response to léonie

léonie wrote:

No, I have not yet migrated a large library, so I could only test with a hundred photos in a test library.

That should be more than enough to tell if the script needs a delay, assuming you selected that many for one run. If it didn't error out with that, it should be fine as is.

I like your script. How about a User Tip?

I'm not sure how useful my script would be, at least in its present form. There is also the delay thing to consider: I don't know if the delay time would have to be adjusted for slower Macs or larger libraries, & I don't have any good way to test for that.

Apr 13, 2015 9:40 AM in response to léonie

I thought this script would solve my problems - but I can't seem to get it to install as a service - at least, when I check Photos>Services it doesn't show up.


I get as far as creating a new service and dragging the "run apple script" action to the workflow. I then paste in your script. However, at that point, my screen doesn't look like your clip - I don't see the "Service Receives box in Photos App" and the other options I see at the top of your clip. (I do see the Run Apple Script Box as in your clip.) I think that is why when I save it (I chose my desktop) it never makes it to a Photos service. I'm missing something fundamental here. Any idea of where I went wrong?


David

Apr 13, 2015 3:36 PM in response to R C-R

Yep, figured that out. I did try the step mode and get the error immediately. I have to play with it more. I have 2200 images that were named in the filename (they are scanned images of art) that I need to get into the title. Goring forward, I can manually add titles - but I would like to fix the images already scanned in.


David

Apr 13, 2015 3:46 PM in response to R C-R

I got it to run - it seems to help if I don't select too many images to process. I tried this first stepping through the script in the Automator - but now the service also seems to be working. I have no idea why it started working - I changed nothing in the script itself.


I'll have to try this on my wife's art.


Thanks for the suggestions and help.


David

Where are photo file names?

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