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

Jul 14, 2016 12:39 PM in response to Old Toad

I have recently spoken with an Apple Support person and they confirmed that displaying the Image file name was a feature present in iPhoto, but was lost in the updated Photo. Their suggestion was to send feedback to Apple at http://www.apple.com/feedback. He said this is the most effective way to get results, and the more of us that do this the better the chance we have of seeing this feature back in a future Photo update. This was my feedback to Apple:


"Thank you for the last Photo update... I appreciate some of the improved features that have been made to it. I would however like to note that the absence of the file names appearing underneath the image is sorely missed. I find this information very useful as I receive photos from other sources and it helps me to identify the ownership of the photos. I'm kind of lost without it now.


While the screen may look tidier and friendlier to some, it would be nice to know that this feature could be made available as an option to View (Display Image File Name).


Could I make this as a suggestion for your next update?"

May 6, 2017 10:51 AM in response to susieqk

This is strictly a user to user forum and Apple is not here - telling us accomplishes NOTHING


YOu can tell Apple - http://www.apple.com/feedback/


My guess is that it is a studied decision and that your choice is to accept it or change applications - but tell them what you think anyway


and remember with the user scripts referenced many times in this thread it is easy to do yourself and since you NEVER directly access the photos within the database knowing the file name is of very limited usefulness in most cases anyway


Script: Changing the Title to the Filename without Extension

Script: Batch Changing the Titles to the Filename w/Extension

These scripts are also available from Old Toad's web site complied into applications - http://www.oldtoadstutorials.net/No.P01.html


LN

Feb 26, 2018 2:45 PM in response to angelafromfrustrationville

You can as described above if you bother to read the answers but I guess it is easier to RANT than to read and resolve things - in Photos View menu ==> metadata check titles and then run one of these script to set the titles to the file name either with or without the extension - : Script: Batch Changing the Titles to the Filename w/Extension or Script: Changing the Title to the Filename without Extension or if you prefer download the extension complied into an application by Old Toad - http://www.oldtoadstutorials.net/No.P01.html


LN

May 17, 2015 1:42 PM in response to Allison Sheridan

The singing has stopped, but I'm still stuck. I can prove now, however, that there's a random effect. Just in case you guys can see something I'm missing, I made a little video. One caveat - I made a couple of tiny tweaks to the script while I was waiting for Photos to rebuild. I changed the default to 2 instead of 4 digits, I made the digits precede the text, and I fixed a minor typo (instead of o.k it now says OK). That shouldn't have affected my results. What you'll see in the video is:

  1. It worked in All Photos
  2. It worked in an album
  3. Then it didn't work in an album


https://dl.dropboxusercontent.com/u/57192/batch_change_problem.mp4

Jun 22, 2015 4:33 AM in response to davacorp

Are you using iCloud Photo Library? Then the script will not work well with Photos. The problem is the line "get selection".

Photos selected this way may give timeout errors.


I just updated the user tip, so it uses the work-around for this problem proposed by NicFletcher: Don't ask for the current selection, but add the photos you want to process to an album with a fixed name.

  • Create an album with a fixed name - mycurrentselection or similar - and add all photos you want to process to this album.
  • Instead of the "get current selection" process the photos in this album.



-- batch change the title of images to the filename

(* How to use this script:


Open this script in Script Editor. Launch Photos.


The photos can be passed to the script in two ways:

1. Either select photos while viewing the "All Photos" album; this works better than Moments or smart albums

2. Or collect the Photos in a top level defined album with a fixed name.


If you want to select the photos without collecting them in an album, set the variable "ReadFromAlbum" to false

If you want to pass the photos in a toplevel album, set ReadFromAlbum to true and change the variable "theAlbumName" to the name of the album you are using.


When all all photo are selected or in the album and all parameters set, press the "Run" button in Scripteditor.

*)


set ReadFromAlbum to true

-- set this to true, if you want to pass the photos in a toplevel album

set theAlbumName to "PhotoDropBox" -- change this to the name of the album you will use



set imageSel to {}


tell application "Photos"


activate

if (ReadFromAlbum) then -- the photos will be passed in a toplevel album named "PhotoDropBox"


try


if existscontainertheAlbumName then


set thePhotosBuffer to containertheAlbumName

set imageSel to every media item of thePhotosBuffer

else

error "Album " & theAlbumName & "does not exist"

end if


on error errTexttwonumbererrNumtwo

display dialog "Cannot open album: " & errNumtwo & return & errTexttwo

end try


else -- process the selected photos from the All Photos album

try

set imageSel to (get selection)

on error errTexttwonumbererrNumtwo

display dialog "Cannot get the selection: " & errNumtwo & return & errTexttwo

end try


end if



-- check, if the album or the selected photos do contain images

if imageSel is {} then

error "Please select some images."

else

repeat with im in imageSel

try


tell im


set its name to its filename

end tell

on error errText number errNum

display dialog "Error: " & errNum & return & errText & "Trying again"

try

delay 2

tell im

set its name to its filename

end tell

on error errTexttwonumbererrNumtwo

display dialog "Skipping image due to repeated error: " & errNumtwo & return & errTexttwo

end try

end try

end repeat

end if

end tell

-- display dialog "Done"

return "Done"

Apr 18, 2015 6:54 AM in response to thedatadude

OK, now that I seem to have this working well, I wonder if somebody might be able to help me out with a script that removes the file extensions from the titles?

Nov 28, 2015 10:30 PM in response to léonie

Have you enabled the titles to show in the "View" menu in Photos? "View > Metadata"?

User uploaded file

The titles will show in the "Moments" below the photos.You can see the original filenames in the Info panel for a photo.

User uploaded file


Hi leonie,


I have been holding off changing from Aperture because I had gotten advice that Photos was not capable of showing Keywords underneath the thumbnails. When I look at your post above, I get the impression that Photos is capable of showing Keywords under thumbnails.


For my engineering and scientific work, I MUST be able to display Keywords under the thumbnails. Can Photos do this ?


Please straighten me out.

Apr 9, 2015 8:14 AM in response to thedatadude

Also note that once you have enabled Titles in the View>Metadata menu (or with the command-shift-T keyboard shortcut) you can add a title to a photo that doesn't have one by hovering the pointer over the white space below it. That will reveal in grey its "untitled' name. Click on that & type in the title right there.

Apr 9, 2015 9:21 AM in response to thedatadude

Photos does import the filename -- it is visible in the Info window -- but the problem is basically that a filename of a photo doesn't really have anything to do with its title. (The title field is metadata stored within the photo file itself, while the filename is stored in the file system.) iPhoto displays the file name (less its extension) if the title metadata field is empty & supports searching on it; Photos does neither.


So what you need is a practical way to add the filename to the title field of the photo if you are to continue using your organizational scheme in the Photos app. This should be doable using Applescript with either iPhoto (before importing the photos into Photos.app) or afterwards with the Applescript support built into Photos.app. However, I do not have the time right now to write such a script myself (& I'm too rusty on Applescript to do it quickly even if I did) but I think someone will begin publishing scripts for this & similar needs in the days & weeks to come.


If you can't wait for that, it might be worth asking for help in the ASC Applescript forum, or in any of the other Applescript-oriented support sites on the web.


EDIT: I said that Photos doesn't support searching on a file name. I was wrong about that -- it does -- but that isn't of much help with this issue.

Apr 9, 2015 3:45 PM in response to stephenfromencinitas

I have to retract my JPEG vs. RAW issue with titles. This is what happens when you try to generalize your first view of a 50,000+ image library conversion.


BUT, I do have an issue where Photos has assigned the filename to the title field for some of my images while leaving it blank for others. If I look at the same images in Aperture the Title field in the General info data is blank in both cases.

Apr 9, 2015 3:54 PM in response to léonie

léonie wrote:

That is clearly a bug.

The titles are supposed to be transferred, even if .jpg is part of the title.


But titles & filenames are actually two very different things. For example, photograph files may have title information embedded in the photo file itself according to at least six different standards. The filename is not actually part of the file. It is a characteristic of the file system of the device storing the photo file. As a consequence, changing the filename (for instance, in the OS X Finder) will not change the title of the photo, nor will it create one if that info has not been embedded in the file.


Unfortunately, iPhoto obscures this difference because in the absence of an embedded title, it will display the filename of the photo. If you edit that displayed name from within iPhoto, it does become the title, but it does not change the filename of the original or embed it in that file. (That's why the export workaround mentioned by thedatadude does not work if the export kind is set to Original.)


I don't own Aperture or know how it works but my guess is it embeds the "version name" in the file itself, probably according to the IPTC or XMP standard.


Anyway, the problem is Photos does not display the filename as if it was the title like iPhoto does, nor does it have any builtin feature that will copy the filename to the title. That isn't a bug per se, but it definitely is a problem for those who have been relying on filenames to create more meaningful photo titles.


As I mentioned in a post earlier today, Applescript may offer a way to do this. I have spent a little time since then investigating that possibility & it looks promising: the Applescript "media item" object in Photos has a writable name (title) property & a read-only filename one, so at least in theory it should be possible to write a script that runs through every "media item" object & replaces any with a "missing value" name property with some form of the filename one.

Apr 9, 2015 4:17 PM in response to R C-R

But titles & filenames are actually two very different things.

That is clear, R C-R.

But, if I understood thedatadude correctly, the edited title contains intentionally the original filename including the filename extension as part of the title, in addition to a further comment. I am doing the same; the photo titles I assign include the full filename plus extension, because the file format of the photo is to me as important as the content of the photo. The edited titles are missing, because Photos seems to mistake them for the original filenames.

Apr 9, 2015 4:45 PM in response to léonie

léonie wrote:

But, if I understood thedatadude correctly, the edited title contains intentionally the original filename including the filename extension as part of the title, in addition to a further comment.

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.


In general, iPhoto won't change anything in the original file (the 'master' file in the iPhoto Library package if the 'import into iPhoto' preference is used or the file in its original location in the file system if it is not). Normally, that is a desirable feature, since it preserves the integrity of the original no matter how it is edited. In this situation, it is not.

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.