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

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

Come on programmers, this is not a terribly hard fix considering everything else you've been able to do, step up to the plate and fix this issue.

Indeed, it would be simple to implement, but much more difficult to change the design guidelines for the applications.

Apple is very hard to hide the file system from the users. In many applications we are seeing documents and media in the user interface of the applications, but not files, unless we are in the Finder. On the iPhone or iPad we have to use the apps to find the documents and media, because there is no Finder.

May 6, 2017 11:12 AM in response to LarryHN

and since you NEVER directly access the photos within the database knowing the file name is of very limited usefulness in most cases anyway

Not quite so limited, Larry. The filenames have many uses in addition to identifying files on the HD.

Many photographers are using the filenames as unique image names/numbers, so the customers can reference the photos they are selecting and want to order as prints. In Photos the images do not show any unique identifier at all in the browser, until we manually add some title. There is nothing below the thumbnails, when we are showing the photos to friends and family and they want to make a list of the photos they would like to have. Instead of the convenient image numbers we are just seeing lots of water white space.


And filenames are a great way to save a description of a photo, when we save it to the disk. Many users are disappointed, if the descriptions they added as part of the filenames are discarded by Photos, when we import photos and do not show as the title of a photo.

May 22, 2017 8:56 AM in response to turingtest2

Version 1.3 works as a Service! Thanks.


-- Photos | Filename to Title | V1.3


-- Images with no title will have the filename used as the title

-- Use values below to exclude or include specfic file extensions from the generated title

-- Existing titles will be modified to add or remove any extension from the title as required


set exclude to ".jpeg.jpg.mov.png.tif.tiff" -- Extensions to exclude from the image titles

set include to ".cr2" -- Extensions to include in the image titles


use scripting additions-- Prevents errors triggered by offset clause

tell application "Photos"

activate

set updated to 0

set info to "Photos | Filename to Title"

set images to (get selection)

if images is {} then

display dialog "Please select items in Photos before calling this script." with title info buttons {"OK"} giving up after 5

else

repeat with image in images

set fullName to filename of image

set title to the name of image

if not (exists (title)) or title = "" then

set title to fullName

set current to ""

else

set current to title

end if

set pos to offset of "." in ((reverse of characters of title) as string)

set prefix to characters 1 thru (-1 - pos) of title as string

if pos > 0 then

set postfix to characters -pos thru -1 of title as string

else

set postfix to ""

end if

set pos to offset of "." in ((reverse of characters of fullName) as string)

set ext to characters -pos thru -1 of fullName as string

if (offset of postfix in exclude) > 0 then

set newTitle to prefix

else

set newTitle to prefix & postfix

end if

if (offset of ext in include) > 0 and not ext = postfix then

set newTitle to newTitle & ext -- Or could test here and add something like " | RAW" for raw formats

end if

if not current = newTitle then

set the name of image to newTitle

set updated to updated + 1

end if

end repeat

if updated = 1 then

set message to " item was updated."

else

set message to " items were updated."

end if

if updated = 0 then

set message to "No" & message

else

set message to (updated as string) & message

end if

display dialog message with title info buttons {"OK"}

end if

end tell

May 23, 2017 11:05 AM in response to Old Toad

That is exactly what I did but Mac OX won't allow it to unzip. The zip file does the animation of a file opening or unzipping, but nothing results.

I searched the filename with Spotlight and it shows the file as being in my applications folder, however when I go to applications it is not visible. I have checked my utilities folder just in case.

Thanks

Jun 28, 2017 3:10 PM in response to thedatadude

Use keywords, the keyword manager, info and intelligent albums to solve your problems !!!

I have more than a thousand key words and I can find everything very easily. You can even filter photos intelligently with a little practise and good thinking, so that you can have the albums completely presented under "all photos" ! Good luck ! (Any photo can have a multitude of keywords.)

Jul 29, 2017 12:14 AM in response to thedatadude

Time Machine is not a clone. Time machine is a limited archive. It will archive as much information as it can based on capacity.


This is an important distinction from a clone, because Macs without internet restore capability turned on may not be able to recover from a Time Machine backup without their original installer discs. There is a special firmware for the internet restore on Macs that predate Lion's release.


<Link Edited by Host>

Dec 26, 2017 8:54 PM in response to thedatadude

Apple's method of naming files has been lousy from the start - you get a photo from something digital and it is labelled as something like D7K_2242 as noted by thedatadude elsewhere in this thread. My first mistake when I uploaded to iphoto my photos was to assume that if I changed the title, it changed the photo name. Reseting my camera by deleting all the photos after upload, a different D7K-2242 would eventually come up, be titled as something else, but when I eventually burnt a DVD of photos for a friend, quite afew went AWOL, because the same file name overwrote the previous one!

Having learnt my lesson, every file is renamed before it goes into iphoto/photo, to something like 20170524 San Francisco A 08 - YearMonthDate (Location or event) (letter if I have lots of photos on that day) number within the sequence. If I want more data attached to the photo, I use faces, keywords, and very occasionally a description. I used to be able to see those photo names as the default title in iPhoto

Transferring from iPhoto to photo, all the names are gone, although the titles are still correct. But you can only see them if you open info, as it displays non-existent titles instead of defaulting a blank title to the file name.

For new uploads, I am wasting my time when I upload and doing faces by highlighting the file name (minus the ".jpg") copying (Command-C) and pasting into title (Command-v). Far from ideal. If someone knows how to do this with an applescript or similar, I'd be greatful, for those who have different titles, you'll need another solution.

Jan 5, 2018 3:03 AM in response to thedatadude

As more folks are using their I phones - even pros- for images that need a file name for exporting, so you do not duplicate when moving to Mac book pro for example, it is really bad design on Apple's part NOT to have a file name under an image! I am using High Sierra, and I photo is a thing of the past. Get with the program apple.. This is absurd !

Feb 7, 2018 6:15 PM in response to MortenJamesCarlsen

Boy, do I agree. When Apple degraded iPhotos to Photos, key issues were missing. Despite many users requesting fixes, none happened. I have scanned over 14,000 family pictures, and they are all organized in their file names. However, Apple decided that the only way to sort the photo library is by the creation date; and no regard given for organized file names. For me, my pictures are organized by the date the film was scanned, which has nothing to do with the date the picture was taken. Apple -- PLEASE fix this -- this is such a simple fix, and it's been maybe two years to do so. Apple has not responded to a single such request in all the threads that I have followed on this issue. PLEASE fix this.

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.