Unofficial archive. This is a read-only, community-run archive of the Apple Support Community. It is not affiliated with or endorsed by Apple Inc.

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?

192 replies

If you open your Photos Library in Power Photos as a second browser, you can seethe metadata as column in a nice list view, or you can show the filenames as a subtitle below the thumbnails.

Even the free trial version can do this.

User uploaded file

As an added bonus, the grid view can show the thumbnails on a dark background:

User uploaded file

For a very large library PowerPhotos needs a long time to launch, so I simply keep it open at all the time.

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

Go to P01 - Applescripts from Photos’ User Tips Compiled as Applications and download a compiled version of that script as an application. Then all you need to do is select the photos you want to get the file name under the thumbnails and run the application.

While I appreciate being judged as much as anyone, I'm actually not that guy. I read the other replies. I saw the running a script option. I've never done that before, but I opened script editor and gave it a whirl. I didn't get very far because I have High Sierra, and my options are not the same. Under input, in the drop down menu of available apps, "Photos" is grayed out. So that was a dead end.


I called apple support, and he said there is no fix. He agreed that the interface should be repaired so that the file names pop up the second we select "Titles." He told me to go to the help page and let the developers know that there is still a demand for this fix. So I did. So...maybe I got the wrong guy, I don't know.

User uploaded file

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.

Three years later....several OS updates later...this STILL hasn't been fixed! Come on developers. We want an option to view our image file names under the image. I know we can rename them. I don't want to rename 300 photos. Just let me see the existing file name that the camera gave the photo.

Unfortunately this is still the case in 2018. IMO the grosset oversight in the history of image managing application.


One seriously wonders whether the engineers writing this software use it themselves or even shoot fotos !

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.

Your screenshot is showing that you are currently running Script Editor and are trying to open the Photos application in script Editor. There may be a misunderstanding, how to use Apple Scripts. ScriptEditor can open Apple Scripts, not other applications.


For example, If you want to run the script described here: Script: Batch Changing the Titles to the Filename w/Extension ,

  • open the Photos.app by clicking the icon in the Dock,
  • then select the photos where you want to change the titles,
  • launch Script Editor and select to create a new script,
  • then copy and paste the code of the script into an open Script Editor window and click the Run button in Script Editor.

The script will run and tell the Photos application to change the titles of the selected photos to the filenames.

Test it on a new Photos Library, not on your main library, before you try it on your main library. And make a current backup of your Photos Library, before try to run scripts soon the library.

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



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

I am not referring to photo "Titles" -- I am referring to photo filenames. In iPhoto, when "Titles" was selected under the View menu, the camera-assigned filenames would appear below the photos. You could then edit the "titles" as seen below:

User uploaded file

In Photos, these "Titles" do not appear, even if View -> Metadata -> Titles is selected. The only way to see them is to in the "Info" panel, as you mentioned above. This makes the hours and hours of time I have spent over the years renaming photos' filenames to a more meaningful "title" in iPhoto totally wasted! You can't see the "titles" (i.e., renamed filenames) in any of the list displays in Photos -- and to make matter worse, since Photos does not include the renamed filenames created in iPhoto, you cannot use that information in searching for the photos!

I have your exact same problem. Very frus 00004000 trating. Perhaps the Apple software engineers could have foreseen this problem. Overall, Photos 1.0 is disappointing in many respects. Sadly, when you go to the Apple Feedback site, there is no option to give feedback on Photos. iPhoto is still listed on that page. Again, shouldn't someone have thought to update that page knowing users are going to have a lot of feedback about Photos 1.0.


If anyone comes up with a solution, please let us know. Here's a link to discussion of my question.

https://discussions.apple.com/thread/6984161

I have been going crazy trying to find a way to batch copy filenames to the title field in Apple's Photos program. Your app works great. Thank you so much! Is there an easy way to add it to the Services menu? Please keep in mind I definitely am not a programming expert. Thanks again!

I've not had much luck with services. I've created a folder in my Documents folder for the apps and add them there. I then added the folder to the Dock as show here:

User uploaded file

For me it's much easier and quicker to get to the apps and activate.

Okay - thank you both. Apparently my learning curve is a downward spiral. 😕 I'm up against a deadline today, so I'm going to trudge through the project as is (without having the files names to reference), but I will try again in a few days. Again, much appreciated. 😉

Just to clarify -- it appears that when Photos imports images from iPhoto, it totally 00004000 ignores any filename renaming that you have done. It simply does not import that information! So if you had a thousand photos in iPhoto that you "titled" by changing "IMG_2345" to "Fred in NYC", etc. -- all that work is completely lost because Photos completely ignores that information when it imports the images from iPhoto.

I am not referring to photo "Titles" -- I am referring to photo filenames. In iPhoto, when "Titles" was selected under the View menu, the camera-assigned filenames would appear below the photos. You could then edit the "titles" as seen below:

And that is what I am seeing in Photos - the iPhoto titles below the thumbnails:


In iPhoto, before migrating the library: The default version name remained in iPhoto's Title field:

User uploaded file

And in Photos - the same name below the thumbnails, after migrating the iPhoto Library, clearly visible in the "Moments" view.

User uploaded file

Toggling "View > Metadata > Titles" turns this on and off.

Some of us are experiencing a situation where Toggling "View > Metadata > Titles does not solve the problem. Yes, it's a necessary step to make titles below photos visible, but, even with that, many photo titles are not appearing. Some do and some don't. In my case, any photo title from iPhoto that had a suffix such as .jpg, .tif, etc. DOES NOT APPEAR under the photo regardless of what is checked under Metadata.


User uploaded file

Notice that "Add a Title" appears. The title (filename) was "Ann in Tennessee Shirt" in iPhoto and it appeared under the photograph. In Photos 1.0, however, it does not appear. One has to copy "Ann in Tennessee Shirt" and the paste it into the "Add a Title" field. Can you imagine doing this for thousands of photos?

Léonie,


As a further clarification, because this has huge implications for those of us that have "titled" thousands of photos in iPhoto, which are not carried over to the new Photos app:


Here is an example of a photo to which I edited the filename (D7K_2242) in iPhoto:

User uploaded file

Note that the full title (which is actually the edited filename) appears in iPhoto.


Here is the same photo as it appears in Photos in the Moments view:

User uploaded file


Here are my Metadata settings in Photos:

User uploaded file

So..

--- Even when "titles" are turned on under Metadata

--- and when in the Moments view in Photos

The filename edited in iPhoto (="title") does not appear in Photos.


I have discovered one way to remedy this, but it is NOT a practical remedy when you have thousands of "titled" photos in iPhoto with lots of albums, etc.

--- In iPhoto: Select a photo, then: File -> Edit -> Export, with these settings:

User uploaded file

Any other settings for Kind (e.g., Original) will result in the title not carried over to Photos. Here's how the above export looks in Photos:

User uploaded file

As I said above, this is not a reasonable solution because among other things you can only export a file as a "jpeg" and not as an "Original", which was a "raw" file. So I guess off I go to report this as a "bug" to Apple.

I just tested - when I am doing the same in Aperture and migrate the Aperture library to Photos, the titles will migrate correctly, even with ".JPG" as part of the version name:


In Aperture: The edited version name below the image

User uploaded file

In Photos: The added version names are shown as titles.

User uploaded file

I'm not sure this is much of a solution for users importing directly from iPhoto, but one way to make Photos.app show the filename as the title is to create/set the IPTC Title tag before importing your photos into Photos.app.


I'm using ExifTool in a service created through Automator that executes a shell script so that I can select a batch of photos and apply several changes to EXIF tags. But you can easily add a line to also create the IPTC Title tag and set it to the filename.


Here is an example that strips out the file extension and uses a formatting option to start the title after the id (ex: 20150411-000...) I'm using in the filename. You could set the {16} to {0} to return the entire filename as the title.


User uploaded file


Just install ExifTool and then create this service and save it. Then you can right click on an image (or a group of images) and batch update the tags.

Couldn't find a solution within Photos, so I resorted to AppleScript:


Here's a really quick and dirty way to do it... I'm sure this could be improved to do proper interpreting of the filename and have proper error conditions:

tell application "Photos" activate set myalbum to the last import album try set itemlist to selection on error errStr number errorNumber return errorstr end try repeat with currentitem in itemlist set currentfile to the filename of currentitem set the name of the currentitem to currentfile as text end repeat end tell return count itemlist

Just open up Script Editor, enter that code into a new item, select the items you want named in Photos, and then run the script.


To do even better, I created a smart album that only contains un-named items. It appears I can't do thousands of photos in one pass, but a few hundred at a time works well.

DRedfearn wrote:

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.

It sounds like you started by selecting a Workflow document type in Automator. Instead, try starting by selecting the Service document type:

User uploaded file

Tip: when you are getting errors from Automator workflows from Applescript actions, it is sometimes helpful to run the script in Script Editor & use the log > Results window to see exactly what's going on step by step.

Léoni;

I got this thread from another post I made, so .....

I tried creating the Automator script but it does not run nor does the new service appear in Photos' services. When I try running the script from Automator, with Photos open and a picture file selected, I get the follow error:

User uploaded file

This being my first sue of Automator there's is likely some subtle thing I am doing wrong. Any guidance will be appreciated.


Thanks... Chris

Is there any way with Applescript to just remove/ignore the last four characters of the file name. That would remove all extensions.


If that's not possible in the same scripts how about a script top remove the last four characters from the Title field?

User uploaded file

Without modifying the script I added THREE new files, .PSD, .JPG and .JPEG to the library. All filenames were added as titles without the extensions as expected.


I noticed that the second line I've been working with is "Set to include" which keeps .cr2 in the title. I removed that line, keeping .cr2 in the line above, and got the following error message.


User uploaded file


I added that line back and it worked as expected on all file extensions in the first line regardless of case.

Let's say I go to Germany for a vacation and on day one I go to Hamburg. I would like to batch change the titles to all say either Hamburg, or even better sequential titles of 01_Hamburg, 02_Hamburg.


Try this script:

on run {input, parameters}

-- batch change the title to the input, © léonie, version 1.0.1


set n_digits to 2 -- how many digits for the appended number

set answer to display dialog "Select the number of digits for the appended numbers (0 .. 10). Selecting '0' will suppress the leading zeros." buttons {"o.k"} default answer n_digits


-- For 1-9 photos use 2. For 10 to 99 photos use 3 and for 100 or more photos use 4.


set n_digits_text to the (text returned of answer)

set n_digits to n_digits_text as number




tell application "Photos"

activate

set counter to 1

set imageSel to (get selection) -- get selected images

if imageSel is {} then

error "Please select some images."

else

repeat with im in imageSel

set ntext to the counter as text

repeat while (the length of ntext < n_digits) -- add leading zeros

set ntext to "0" & ntext

end repeat



tell im

set the name to input & "-" & ntext as text

-- set the title to the input plus formatted number

set counter to counter + 1

end tell

end repeat

end if

end tell

return "Done. The titles of " & (length of imageSel) & " photos have been changed."

end run

and use it in this Automator workflow application:

User uploaded file

The first window you'll get is this where you'll put in the title

User uploaded file

The next window is this which sets the number of digits for the sequential number:

User uploaded file


Which gives you this for the titles:

User uploaded file

User uploaded file

I save all of my scripts as applications and put them in the Scripts folder

User uploaded file
That menu is enabled in AppleScripts Editor's preferences:

User uploaded file


You might want to try saving it as an application and see if it will work in the other sections of Photos.

I feel like I'm taking so much of peoples' time but this created an all new error. I did as suggested and re-created the script as an application and saved it to the Scripts folder inside ~/Library. First time I ran it, it renamed the FIRST photo in an album but not the second. Second time I ran it, it failed immediately without renaming any of the files.


User uploaded file

HI OT,


I made a copy of the script to convert the title to text with a sequential number as an application and saved it in the scripts folder:


User uploaded file


The result is the same - it works in the "All Photos" album, but not in another album.


Thanks for all your help with this.

-Jay

3. Taking a step back, I thi 00004000 nk that there is a good solution to this dilemma. For the images without metadata, many filenames contain some metadata information (mine have year, month, subject (sometimes) and location (city, state, country) and time sorted index. For example: 201505-SailingBostonMA-001.jpg. Some of my oldest images, I can only guess at the decade. I'm sure that there are as many file naming conventions as there are people.... I think that the best solution is to write a script that will convert filenames of a defined format, into the metadata of individual images. The order of time of the legacy image can be set by using the sort index (e.g., each sequential image is one minute newer than the last). While the metadata would not be accurate by today's standards, it would be good enough for legacy images.



Take a look at one of the Applescripts in the Photos for Mac User Tips. There's one what will give you this type of title: YYYY-MM-DD-xxxx-01.jpg. The date is the short date format you setup for your Mac in the System/Language & Region/Advanced/Dates preference pane. The text is whatever you want and the sequential number can have as many padded zeros as needed.

User uploaded file

FWIW I prefer to use apps so I have Automator or Applescript create an application which I put in the Scripts folder that is accessible from the menu bar.

User uploaded file

The Script Folder button in the menu bar is activated in the AppleScript Editor's General preference pane:

User uploaded file


Just food for thought.

Photos can show the title below the thumbnail, but not the keywords.


To see the keywords below the thumbnails you could invest into PowerPhotos. It is a great companion to the Photos.app, just like iPhoto Library Manager used to be for iPhoto. The recent version of PowerPhotos can show you your Photos Library and you can select, what you want to see below the thumbnails, the filename, the title, the keywords. or the date.

You can display the photos as a thumbnail grid or as list, with the metadata in column view. And the beauty is, you can browse your Photos libraries without launching Photos. You can scan for duplicates, and you can move photos between libraries.

Only, it takes a rather long time to open a large library. I'm waiting for more than a minute for my iCloud Photo Library of 40000 photos to open in PowerPhotos. So I keep it running.



Fat Cat Software – PowerPhotos

The Trial version is free.


For example: The keywords as a subtitle:

User uploaded file


Or the keywords in List View in PowerPhotos:

User uploaded file

The idea that you have to Get Info for every picture is unrealistic, it's cumbersome and time consuming.

If you keep the Info panel open, you just have to select a different photo and the Info panel will display the metadata. just keep it open.


Using Get Info, I copy the filename into the Search panel and NOTHING.

That should not happen. There is something wrong.

If an image is in your library, search should find it by the filename.

For example, searching for IMG_6547.JPG produced the JPG file:


User uploaded file

User uploaded file

but there appears to be no option in Photos to show the filename. So none of my "titles" appear. Am I missing something?

No, you're not missing anything. However, there is a way to get the file names to be displayed in the Title field underneath the thumbnails. Here's how:


1 - use the View ➙ Metadata menu option and check all of the metadata options.

User uploaded file


2 - select the photo you want to have the file name entered into the Title field (don't do the entire library at once as the script could time out) and run ones of these two Applescripts from the Photos for Mac User Tips:


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


Script: Changing the Title to the Filename without Extension


You can download a compiled version of the script as an application from this tutorial site: P01 - Applescripts from Photos’ User Tips Compiled as Applications

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


Apple personnel aren't there. We're all users like yourself. Tell Apple what missing features you'd like restored or new features added in Photos via https://www.apple.com/feedback/photos.html.


You can display the file name or special title under the thumbnails with the latest version of Photos, V. 1.5.

as there are workarounds for the missing batch change feature:


1 - go to the View ➙ Metadata menu option and check all of the metadata items:

User uploaded file


Next use one of the Applescript from the Photos User Tips to batch change the title to a variety of formats. This is one: Photos for Mac - Batch Change Title to Text w/Padded Sequential No.


You can download a compiled version of the script as an application from this tutorial site: P01 - Applescripts from Photos’ User Tips Compiled as Applications

NOTE: the process is rather slow so keep the number of photos to process to around 1000 at a time. It might take a minute or two for each batch so exercise patience.

If you want the file name under the thumbnail image here's how to achieve that:


1 - go to the View ➙ Metadata menu option and check all metadata items.

User uploaded file

2 - go to the Photos User Tips section and download the AppleScript Script: Batch Changing the Titles to the Filename w/Extension.

You can download a compiled version of the script as an application from this tutorial site: P01 - Applescripts from Photos’ User Tips Compiled as Applications

3 - select about 1000 photos at a time and run the AppleScript.

If you want the file name under the thumbnail image here's how to achieve that:


1 - go to the View ➙ Metadata menu option and check all metadata items.

User uploaded file

2 - go to the Photos User Tips section and download the AppleScript Script: Batch Changing the Titles to the Filename w/Extension

You can download a compiled version of the script as an application from this tutorial site: P01 - Applescripts from Photos’ User Tips Compiled as Applications

3 - select about 1000 photos at a time and run the AppleScript.

BTW --everyone is talking about "Moments" I have Photos 2.0 & there is 00004000 NOTHING called "Moments".

Click on the Photos album and you'll see each moment. Click on the left arrow in the upper left hand corner and it'll take you to Moments with titles:

User uploaded file

Try one of these two:


1 - go to the  ➙ Force Quit menu and relaunch the Finder. Then check to see if the unzipped file is visible.


2 - boot into Safe Mode, Mac OS X: Starting up in Safe Mode, and check the location where the zipped file was unzipped.


This is what should happen:

User uploaded file

Sadly, when you go to the Apple Feedback site, there is no option to give feedback on Photos.

Photos is part of MacOS X and not sold separately, so the feedback form to use is this:

Apple - Mac OS X - Feedback

Notice that "Add a Title" appears. The title (filename) was "Ann in Tennessee Shirt" in iPhoto and it appeared under the photograph. In Photos 1.0, however, it does not appear. One has to copy "Ann in Tennessee Shirt" and the paste it into the "Add a Title" field. Can you imagine doing this for thousands of photos?

That is clearly a bug.

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


Please file a bug report. Either use the feedback form or - more involved - the bug reporter: Detailed and Effective Bug Reporting | Apple Support Communities

léonie wrote:

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.

Great work, léonie! You should make that into a user tip. 🙂


I'm curious. Have you tried this with a large number of images selected? I ask because while I was experimenting with Photos' Applescript support, I wrote a script to add a keyword to every item in its library. I wrote about that in Anyone scripting Photos.app yet? in the OS X technologies forum because I noticed that (I think) Photos takes a brief amount of time to add keywords, & without the delay I added to that script it ran faster than Photos could handle & produce errors.


The mechanism for handling keyword additions is probably different from replacing an empty title with a non-empty one, but if anyone finds that your script chokes with lots of images selected (or mods the script to batch change all the images at once) the fix might be to add a delay, although of course that will mean the script could take a long time to run.

Chris Lyons wrote:

On a related topic, I tried deleting the newly created filename-as-title and tried the script again. Does not work. Its almost as if once a title is created and then deleted the script "sees" a title and won't overwrite it. Do you have any ideas as to a different script that would erase a previously created title ?

That is exactly what happens. The details are in this post but the bottom line is you need to modify the ifnot (exists (title)) then line of the script as follows:


ifnot (exists (title)) ortitle = "" then


This should fix that problem.

I searched the Photos help, but it only describes the file formats it can export, but not the file formats it can import. with all he supported RAW formats the list of filename extensions will be pretty long, if yu look at the list of supported cameras:

OS X Yosemite: Supported digital camera RAW formats - Apple Support

Inverseroom,


I've been having problems getting a script to work to batch change the titles (see batch title change in photo version 1 ). I saw your comment, above, about selecting the "All Photos" album instead of the Photos tab. I tried it and it worked with the batch change script!


Thanks for the observation,

Jay

Bah, nothing is ever easy. That works fine if you run the script from the script editor, but If I try to wrap it up as part of an automator action in the way that léonie has shown in Script: Batch Changing the Titles to the Filename w/Extension then the use scripting additions clause won't compile, but tell me... end tell seems to work. 😕


tt2

turingtest2 wrote:

Bah, nothing is ever easy. That works fine if you run the script from the script editor, but If I try to wrap it up as part of an automator action in the way that léonie has shown in Photos for Mac: Batch Changing the Titles to the Filename then the use scripting additions clause won't compile, but tell me... end tell seems to work. 😕

Like I said, I really don't understand what's going on with this. Part of my problem is I haven't kept up with the newer additions to the AppleScript language like use statements, so for instance I thought that unless an app had its own scripting library term that could conflict with a StandardAdditions one (like "offset" in the StandardAdditions String Commands suite), there was no need to explicitly declare which terminology to use.


But the current Apple Control Statements Reference doc says this:

If a script uses

use scripting additions
, AppleScript may optimize scripting addition commands, sending them to the current application instead of the current target (
it
) when it does not change the meaning to do so. For example, random number does not need to be sent to another application to work correctly, and will always be sent to the current application when imported with
use
. Without a
use scripting additions
command, AppleScript must use a less efficient dispatching scheme, so explicitly declaring them is recommended.

... so that may not still be true, but since Photos has no "offset" command of its own, maybe it is just a bug in Photos' Applescript implementation that is causing these weird "silent" errors that do not halt the script ... or something. 😕


I did find something that might (partially, maybe, dubiously) explain why the script won't compile wrapped in an Automator action at http://macosxautomation.com/mavericks/usestatement/01.html. If I understand it correctly, it says that if a script contains one or more use statements, then the script must include one for scripting additions. I realize you were doing that, but perhaps it might compile if you added a use application "Photos" statement to force it to use both?

Old Toad wrote:


turingtest2:


I modified the script from your last post (which doesn't show up for me here - was it pulled for some reason?) to add several other extensions:

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

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

I've tested it with psd, nef, dng and cr2 files successfully. It didn't work with the .cr2 files unless I added it to the first line.


V1.3 should be here: Re: Re: Re: Re: Re: Where are photo file names?


Do you mean you needed to add .cr2 into the exclusion list before it would be force added by the inclusion list? That shouldn't be necessary but I just tried a little test and ran into the issue R C-R has mentioned about sometimes needing to close and reopen Photos to get current data from the database.


tt2

Your script does nothing because you set the title to the name of the selected image ("im" in the script repeat loop) & then tested for it not existing in the "if not (exists (title)) then" step. Because of that, it will always exist (even if the name is the empty text string "") & the name won't be changed.


You might try léonie's Batch Changes in Photos for Mac: Change the titles to a Given String Automator service -- it looks like it does what you want without the need for any modifications.

I had a huge iPhoto library where all image titles were set by naming the files before import. None of these titles were migrated to Photos.


I solved the problem with a different approach. I dug into the database files of iPhoto and Photos. They have a relation called RKVersion which stores all information about images, including name, file name and UUID. In iPhoto, all versions have a name attribute, but after the Photos migration, only a few of my images had them. According to an Apple support article, https://support.apple.com/en-us/HT204478 , only user-defined titles are migrated. That information seems to be correct, since the very few titles that were migrated for me, were ones I had set in iPhoto instead of by naming the files. I tried to find any sort of "user-defined title" attribute in the iPhoto database, but without any luck. Maybe someone else can find it and if so, that attribute probably just needs to be set to True for all images before the iPhoto library is migrated and then all image titles will be migrated - including those that are equal to the file name.


Anyhow, I wrote a Python script that goes through the databases of the old and new libraries and tries to find matching UUIDs. Where it does, it copies over the image title from the old to the new. Unfortunately, many UUIDs are changed in the migration, so for me it only found matches for 37 % of the images. Therefore, I added a function to the script that sets all remaining titles in the new library based on file names. All file extensions are excluded and titles are only created if current titles are empty. The script also lets you run only one of the two functions if you want. The script took just a couple of seconds to add titles to 15 000 of my images.


The script makes a backup of both databases before running. I have tested it but not thoroughly, so proceed with caution. Feel free to expand it or improve it. And please respond if you find a way to mark titles as user-defined in the iPhoto database, since that would be the real solution instead of this workaround.


----------


PhotosTitleSetter


Migrates image titles from an iPhoto library to a Photos library. Can set titles based on file names if no old titles are found.


Instructions:

Make sure to quit both iPhoto and Photos

Download the PhotosTitleSetter.py script from: https://github.com/Rajje/PhotosTitleSetter

Open a new Terminal window

Type "python " including the space at the end

Drag the script to the Terminal window and then press the return or enter key

The script will run and display further instructions


ALWAYS have several backups of any important files. Make especially sure to back up both photo libraries before running this script. The author of this script takes no responsibility for any damage on any files or for any of the actions of this script.

had a huge iPhoto library where all image titles were set by naming the files before import. None of these titles were migrated to Photos.

You could have saved your self a lot of work by using the Applescript/Automator workflow created by léonie and posted in the Photos for Mac User Tips. It is called Photos for Mac: Batch Changing the Titles to the Filename. It gets the file name of each photo selected and enters it into the Title field below the thumbnail.

Old Toad wrote:

You could have saved your self a lot of work by using the Applescript/Automator workflow created by léonie and posted in the Photos for Mac User Tips. It is called Photos for Mac: Batch Changing the Titles to the Filename. It gets the file name of each photo selected and enters it into the Title field below the thumbnail.

Except that léonie's & any other similar methods based on Applescript are often slow or unreliable for large scale changes & rely on what appears to be a somewhat buggy Applescript implementation in this first version of Photos.

e2photo wrote:

All of my Aperture images have Version Names in the Photo Info Box which are identical to the filename.

By default the filename will be substituted for the "Version Name" (which, as léonie said is equivalent to the title) in Aperture, just as in iPhoto. But it isn't actually a title, just something both apps do that obscures the very real difference between the title of a photo & the name of the file it is stored in.

R-C-R... I am absolutely sure you are correct, BUT why force me to use 'Titles' when the filename is sufficient for my purpose. Why not give me the option to display the information most useful to me?

Consider the broader question: Why would you not want to take advantage of the benefits of global metadata standards that are already in wide use & will only become increasingly more important in the future to make possible new ways of using & managing all the info in your photo files?


Filenames are not stored in photo files like titles & all the other IPTC/XMP/Exif metadata. They don't even tell you or the operating system where a file is stored -- for that, the full pathname is required. Together with the restrictions on filenames & pathname lengths in different file systems & operating systems, there is no guarantee they will be preserved or even usable if the file is moved, copied, or uploaded to anything not using the OS or file system of the original storage device.


IOW, they are neither very portable nor future-proof. Sooner or later, any organizational method based on them will fail to support new features built into new applications, at least some of which you probably will not be happy about being unable to use.


But, considering all of that, if you still want Photos to obscure the difference between filenames & titles, let Apple know about it, using the form at https://www.apple.com/feedback/photos.html. Chances are not that great that they will add that but it can't hurt to request it.

I just want to manage and view my own photos on my own computer.


Ok - that is what iPhoto does - actually quiet well


I can't sort,


You can sort - you just have extremely limited sort options



I can't organize my images


Sure you can - you have an automatic organization with Moments and you can organize with as much detail as you want using Keywords, albums and folders


I can't find help on anything



Photos has a decent Help section - have you used it? What is missing form it that you need?



but how to share my images


Click on the Share icon - the rectangle with an up arrow in it - lots of share options there - if wha you want is not there check in the system references under extensions and enable the ones you want



point me to the menu item with the same name


No idea what you want there



Can I get iPhoto back?


No need - it is not gone - it is in your Applications folder - use it (you need version 9.6.1 - if you were not up to date see Can't Update iPhoto because it is not available in the App Store


As to an alternative - nothing else comes close in overall capability for the price - LightRoom is a much more powerful system at a much higher price - Media View is another people have posted



Most of your complaints are incorrect so Basically you need to calm down, learn Photos and ask specific questions giving details or you need to find and use a different package - and no one can do that for you - you have to do it


LN

Thank you, LN, I do appreciate it. It seems to me that we are in agreement about the features I need and don't have, but it may not seem to be so.


I just want to manage and view my own photos on my own computer.


Ok - that is what iPhoto does - actually quiet well

AL - Yes, except that iPhoto is no longer supported, and obviously has a limited lifetime. I need a photo editor for the rest of my life that is maintained. Apple has chose Photos, not iPhoto.


I can't sort,


You can sort - you just have extremely limited sort options

AL: That is exactly the problem. I have 22,000+ scanned images, all dated with the scan date, not the photo date. The actual photo date (year, month) is in the filename. I need to sort by filename. as I can't, I copied the filename into the title successfully (thanks to this discussion), but that does not solve the sort problem either.



I can't organize my images


Sure you can - you have an automatic organization with Moments and you can organize with as much detail as you want using Keywords, albums and folders

AL: I don't have any keywords at all. I have the iPhoto events (folders) that contain one year's images. I can sort the folders, but cannot sort the imag 00000DCD es inside the folders by filename, as I could in iPhoto.


I can't find help on anything



Photos has a decent Help section - have you used it? What is missing form it that you need?

AL: I looked for help on "albums", and wrote that into the search box. It returns a picture of the location of the "albums" menu item, but contains no information about albums, specifically on sorting them. I also found that if I create a smart album, which gives me more than what I want (the search parameters do not allow for boolean searches, only "one of, or all". If I delete an image from an iPhoto album, it also deletes the image in the library. Help provides no insight to this problem.



but how to share my images


Click on the Share icon - the rectangle with an up arrow in it - lots of share options there - if wha you want is not there check in the system references under extensions and enable the ones you want

AL: I don't want to share with any on-line service, I just want to edit images on my own computer. Many of the help items are about sharing on-line.



point me to the menu item with the same name


No idea what you want there

AL: see my note two items ago


Can I get iPhoto back?


No need - it is not gone - it is in your Applications folder - use it (you need version 9.6.1 - if you were not up to date see Get iPhoto 9.6.1 if you didn't update before OS X 10.10.3

AL: see my first note. Yes, I can, but it's not supported anymore, according to Apple, I just checked it: check out a MacWorld article: http://www.macworld.com/article/2375212/apple-retires-aperture-and-iphoto-to-be- replaced-with-photos-for-os-x.html . A search for the answer to this question produced no results on the Apple website. I believe Apple also announces that on first use of Photos, maybe when it asks if iPhoto should be imported. And yes, iPhoto is up to date.


As to an alternative - nothing else comes close in overall capability for the price - LightRoom is a much more powerful system at a much higher price - Media View is another people have posted

AL: I did use LightRoom several years ago, that is a good suggestion. However, if I can fix the Apple problem, that's better.


Most of your complaints are incorrect so Basically you need to calm down, learn Photos and ask specific questions giving details or you need to find and use a different package - and no one can do that for you - you have to do it


AL: Please note that each my issues is an Apple documented feature. The problem is not "calm down", the problem is that the way that I have been photo editing for many years (by filename) is a feature that was removed from Photos. I have learned Photos, went through all the lessons, and exercised every one of them. Only after I do my homework, do I go to any form for help and trouble other people. I really do appreciate your attention and trouble in answering, but I do see that extracting a few words out of sentences can yield out of context interpretation.


If you read the documentation on Photos, it is strongly focused on sorting "the way you take pictures, by the date and time of taking the picture" (paraphrased) 00004000 . The stated assumption is that all images have a time and location stamp on them. That does not apply to any film images taken from the 1800's to about the 2000's. Trying to invent a time and location for each of the 22,000+ images, so that Photos can sort them is not reasonable.


Summary: I believe that the only answer with Apple software is to adopt Photos, and either wait for, or write my own code to sort the information the way I need to in Photos.


Much appreciated.


AL

@alazo


OK


basically you have two choices - use iPhoto for a while and see if Photos comes around or change to different software


Photos is better than iPhoto in many areas and not as good in others - El Captainwill resolve some of these shortcomings and over time maybe all will be - maybe not


If iPhoto work for you now then use it and see what the future holds - it neither iphoto nor Photos works for you now then pick different software


All we can do i tell you what Photos is - we can not change it


and ov course it is important for you to tell Apple what you want - https://www.apple.com/feedback/photos.html - as the more requests they get the more likely they are to include the change you need


LN

Since Apple can do this for printing why can't they do this for viewing pictures in PHOTOS?

They can and do. They just left out the writing of the file name into the Title field during import. That can be recitified by using this Applescript to do it manually: Photos for Mac: Batch Changing the Titles to the Filename


Then keep telling Apple what missing features you'd like restored or new features added in Photos via Apple-Photos Feedback.


The feedback is working as can be seen from the following paragraph in this Apple webpage: Apple OS X El Capitan.

Photos has been fine-tuned to make it even easier to manage your library. Now you can add a location to a single image or to an entire Moment. Naming your favorite people in Faces is faster with a streamlined workflow. You can also sort your albums — and the contents inside them — by date, title, and more.

telling the other users here accomplishes nothing as does threatening us


if you want tot tell Apple https://www.apple.com/feedback/photos.html


And if you are using LightRoom then Photos has nothing for you - it is not a professional App like LR - it is a consumer app


LN

Tell Apple your needs - https://www.apple.com/feedback/photos.html


Maybe they will upgrade Photos enough or even come out with a professional product like Aperture with enough feedback


For now the choices are to use Aperture as it is with no planed future updates or use Photos as it is (with many short comings compared to Aperture - but improvements coming) - http://www.apple.com/osx/elcapitan-preview/?cid=wwa-us-kwg-mac-com


LN

feel free to correct me if I'm wrong about the difference between filenames and titles.

Titles are not just limited to Apple's products. There's a whole set of IPTC metadata that are used with image files that are standard throughout the photography industry. It was developer for pro photographers to catalog their files. This webpage describes the IPTC standard: IPTC Standard - IPTC


Photos and iPhoto only uses a few of these fields, Title, Description and Keyword but many DAM (digital asset management) apps can use all of them.


Using the Applescripts in the Photos for Mac User Tips you can add the full file name, file name without extension or any customized title to that field.

Can I revert back to iPhoto on my mac? I am a new user to Mac so any help is appreciated! Thank you.

It depends on the iPhoto version you have installed. If you have iPhoto 9.6.1 installed, drag the iPhoto icon from the Applications folder back to the Dock. Double-click it to open your iPhoto Library in iPhoto.

But if you did not not update to iPhoto 9.6.1 before the migration it may be too late, because Apple stopped selling iPhoto.

See Barney's User Tip:

Can't Update iPhoto because it is not available in the App Store

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?"

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

JML54 wrote:


I've been trying to run it as a Service within Photos, and it fails in that context.


See the follow up I posted regarding automa 00004000 tion and scripting additions here: Re: Re: Re: Re: Re: Where are photo file names?.


tt2

Sorry - didn't read the thread all the way to the bottom. Thanks OLD Toad for the script - I will give it a go.

OldToad,


thanks for this link and post... Great Stuff !!!!


God Bless !

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

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 ( 00004000 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"

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?

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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!

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.

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.

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!

Nice. I use a referenced library with all image processing done before import to an application, but this is pretty cool. I added a piece to strip out the file extension but it works great. Handy to fix any issues. Thanks! :-)

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?

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.

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

Update: I got this to install as a service, but when I run it, I get an error "AppleEvent handle failed". I don't see any other diagnostic information about the error. I'd really like to get this script to run!


David

I was getting the same "AppleEvent handle failed" with my script; I ended up just catching the error and setting a counter to loop through the items again.


I also found that using selections from a smart album didn't work very well; selections against static albums worked with much fewer of those handle failures.

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

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

DRedfearn wrote:

I got it to run - it seems to help if I don't select too many images to process.

I have tested it with no more than about 80 images selected at a time. I haven't seen any errors but it does take quite a bit of time to run, maybe 1/4 second per image.

Is there any way to know if Apple will fix this and provide an easy way to copy the file name into the description field? I have tens of thousands of photos and each has a unique file name that both organizes (by title) and describes each photo.

I got my wife's 2200 image library "titled" in about 5 minutes. I started with a few images, and keep increasing the number of images processed - and it did several hundred at a time without any problems - and pretty quickly too.


I ran into two issues:


(1) The first couple of times you try to run the service script, it fails with an error. Restarting the computer seemed to fix that.

(2) I have an administrator account and my wife has a normal user account on her iMac (I am trying to keep her safe). I originally created the Photo Service in my account - and it didn't show up in her account. I recreated it in her account, and it runs fine. I haven't seen anything that says how to create an service for all user account - which would be a handy option.


Thanks again for this very helpful fix.


David

Virginia Vail wrote:

Is there any way to know if Apple will fix this and provide an easy way to copy the file name into the description field?

None of us know what Apple will do but it can't hurt to send them feedback about this & any of the other things you would like to see Photos be capable of doing.

Old Toad wrote:

I just ran it on my 4700 photo library and it completed the task in about a minute or so. Was faster than I expected.

How fast is the Mac you used to do this? My 1/4 second per file estimate was a crude one, based on what I saw while using my iMac (a 2.9 GHz Intel Core i5 2012 model) to process batches of no more than 100 or so images at a time, with Photos in the foreground. I did notice there was a lag before the first title appeared, & after that they appeared more quickly in groups of around 8 or so images at a time.

Interesting. In prior threads, the idea of displaying vs. copying was missed, or I missed it.... Thank you for the correction! That does explain a few things.


ALSO, I found that I was in error in Photos not sorting by Title - it does, (at least in the current Photos 1.2, El Capitan). In the opening page of Photos, click on an Album name, View, Sort and select sorting by title. My apologies for my frustrations. It was not obvious to me from the Apple instructions.....


Now if I can figure out how to use a photo editor of my choice, I'd be all set.... :-)


- Andy

alaz0 wrote:

My apologies for my frustrations. It was not obvious to me from the Apple instructions.....

No need for apologies. There are a great many things about Photos (or for that matter, about iPhoto) that are not obvious from the documentation Apple provides.

To see the keywords below the thumbnails you could invest into PowerPhotos.


Perhaps that's an answer for me. In my engineering work, I do very little editing of my images. I am more about organization and being able to see the keywords under each thumbnail.


If I'm not interested in editing anything, wouldn't I just launch PowerPhotos to find the image I am after? And NOT use Photos at all?


As you may know, iPhoto HAD the ability to show Keywords under thumbnails for the first 10 years of its existence. Apple eliminated this capability a couple of years ago which prompted me to switch to Aperture. Once again, I am chasing keywords under thumbnails. "Lyn" does this, but I like to stick with Apple stuff whenever possible.

wouldn't I just launch PowerPhotos to find the image I am after? And NOT use Photos at all?

PowerPhotos is a companion to Photos. You use Photos to create the library, create albums, assign keyword, titles, captions.

Once that is done, you can use PowerPhotos to manage and browse the libraries and move photos between libraries.

I have the same problem. All the titles for my pictures in iPhoto, after migrating over to Photo, are now missing and are now "untitled". And I can't even sort my pictures by filename (or am I missing something? someone help! 😟)


Please post if you have any kind of solution. Can I revert back to iPhoto on my mac? I am a new user to Mac so any help is appreciated! Thank you.

I'm an Aperture user and I've been struggling with this as well and finally found a web page that gave me the solution. In Aperture, you basically need to do a Batch Change to copy the Version Name to the Title field. Photos for Mac only recognizes Titles. In Aperture, Title is an obscure little used field. Running an Apple Script I found on the attached webpage causes the Version Name you currently have to appear in the Title field in the Info panel in Aperture. When that is done and you migrate to Photos, and voila, the title will appear in Photos. I have never run an Apple Script before and I was initially reluctant to go down that path, but it was surprisingly easy if you follow the instructions on the web page. Here's the web page to cut and paste into your browser:


https://photoapps.expert/tips/2014/8/1/applescript-copy-aperture-version-name-ti tle-field#.Vp15GhaJXZE

I'm hoping this subject fits in here: when scrolling through "All Photos" some of my photos display file names (and I don't mean titles) and some don't, even though they show up in the info panel. What's going on? Also when scrolling through "All Photos" the month & year would show up, a feature in iphoto that seems to have disappeared. I must say Photos has taken 0 steps forward and 3 steps backwards with this one.

nilesk wrote:


I'm hoping this subject fits in here: when scrolling through "All Photos" some of my photos display file names (and I don't mean titles) and some don't, even though they show up in the info panel. What's going on? Also when scrolling through "All Photos" the month & year would show up, a feature in iphoto that seems to have disappeared. I must say Photos has taken 0 steps forward and 3 steps backwards with this one.

You are not seeing file names in all photos as that is not an option - you are seeing titles and if there is a file name in the title it is because some time you have put the file name into the title - the only place you can see file names in Photos is in the info window - in all photos you can only see the title - and file names have no value anyway since you never use them with photos


LN

I have exactly the same issue as Washington Apples... I have all the view metadata selections clicked on and yet Title shows up "untitled". I haven't even titled my photo's I have left them with the original file info from the photo. And as per WA's issue none of these file names have been imported into Photo's. Ugly bug if indeed that's what it is... Big error...

I haven't even titled my photo's I have left them with the original file info from the photo.

Photos does not use the filename as the title by default. It will show any title that you add manually. You can see the filenames in the Info panel. It was Apple's design decision treat the filename differently from a user added title.

Ahh... I had not realised that, thx. Now I see the issue. BUT - where is the Info panel? I think in iPhoto you could click it on under View/ but I don't see it in Photo's, it doesn't come up consequently I have no idea about any of the info pertaining to my Photo's (including Filename).

The idea that you have to Get Info for every picture is unrealistic, it's cumbersome and time consuming.

And what happened to Search?! Using Get Info, I copy the filename into the Search panel and NOTHING.

How useful is that? Not at all, actually a big fat problem.


Personally I find Photos uninutitive and frustrating. It feels like a giant box of pictures that are a complete mess. I may add a photo from 2013 in 2016 and I can't add it to the folder with the others from the same event unless I want to re-create an album which I had in iPhoto but Photos didn't import.


What a mess. Apple please stop "fixing" things that aren't broken until you can actually do it right.

Exactly, it should, but it doesn't:

I have seen this happen too. Sometimes the search does not find items that are clearly there. In that case I make sure, I have the "All Photos" view selected when searching, and I clear the search field and repeat the search.


Hidden photos will not show when searching from the "Photos" view, but they will show, when searching from the "All Photos" view.

Shortsighted of Apple to not display file names in Photos app. Many of us have given searchable file names to thousands of photos over many years.

Finally I have located an app to display file names below thumbnails in Photos app: Documents 5 by Readdle. Good app to do some file management and read your files on ios devices. Integrates with Dropbox well.

That will not help in Photos on a Mac - and this discussion is about displaying the filenames below photos on a Mac. Power Photos can display several kinds of metadata below photo thumbnail on a Mac.

Shortsighted of Apple to not display file names in Photos app. Many of us have given searchable file names to thousands of photos over many years.

Finally I have located an app to display file names below thumbnails in Photos app: Documents 5 by Readdle. Good app to do some file management and read your files on ios devices. Integrates with Dropbox well.

Correct. While on Mac I just look at the file names on iPhone or iPad.

Otherwise seem to be stuck using Command-i individually for each photo. Apple hasn't provided an option for displaying file names below photos on Mac.

Haven't looked at Power Photos.

Retain the iphone photo name as a field. Allow it to be changed. Allow user to see photo lists, sortable by name, date, location, etc. like in any computer program that follows standard apple guidelines.

I agree, this really stinks. I have about 3000 photos & don't really use Photos. I just keep my images in a file on my desktop & use Preview to view them. Importing & retitling all my photos is too much work therefore the program is useless to me.

Why should we need to file a bug report? Surely Apple is aware of this issue, they designed the program.

If you don't use the application at all then why worry about its features? For those that want to use the application feedback and bug reporting are the ways to get in touch with the developers to request changes, enhancements, or report behaviour that seems anomalous. Apple may have designed the program, but they cannot know how every user will try to work with it.


tt2

Why should we need to file a bug report?

Because if you use Photos then you would want Apple to fix it ASAP. Remember the squeaky wheel gets the grease.


But since you don't use Photos why are you here complaining? It doesn't involve you.

OK. Nearly 2 years later I have the same problem with the included photo app on my ipad pro ios 10.2. Very frustrating. This app is useless for me and I suspect thousands of others. It seems to hide all the info on exif files including the very many thousand of file names I have changed over the years on any photos imported from my desktop. There seems to be no way to find them on this app. The really infuriating thing is that the file name is not displayed only the date. Clicking on details only comes up with suggestions for related images or else the gps location or no info at all. What makes it worse is that this seems to be the default app for any photos with this operating system. No way to delete or change it. I have tried google photos which is better but it does not display my file names either. You need to click on info each time for them and all the info comes up even 15 year old jpegs from the desktop. Does anyone have any answers to my problem or know of a better storage and organising photo app?

I am not sure what I am doing wrong, but I have added the script, I can see the script in Photos, but when I select it, nothing happen. I have tried also to run it without selecting photos, and nothing happen (the error message in the script isn't showing up). Any tips on how to run it? I am using OS X El Capitan.


When I created the script, I selected ''no input'' ''in Photos'' and left the Output box unchecked.


Thank you, Sylvain

I am using Photos 2.0. Everything in "view/meta-data" is enabled as per your directions. I only can see image titels if I click "info". The title does not display under the image.


Photos 2.0 does not have ANYTHING called Moments. There's something called Memories that plays a slide show. This seems like a phone app or something -very cheesy -I wonder who it's supposed to benefit? -pardon me -I was thinking out loud in text.

...I'm using Sierra. All I want is the Title to be imported with the photos and to be seen under the image. I go to a great deal of trouble ensuring my titles describe the subject, place, and date so I can search my entire system by any of those keywords. I have no use for The Cloud or redundancies -other than my own external drives.


Thanks -pardon my snarky tone ...this app has fouled my mood. I'll close it now and look at something pleasant xoxo 🙂

Thanks very much. Appreciated. Too much work for me -the point (to me) of using Apple and Mac OS is that all this is done automatically within an app. I'll ensure my photos are only referenced copies and delete everything and never open this god-forsaken app again. They are already sorted into folders I can easily locate.


BTW --everyone is talking about "Moments" I have Photos 2.0 & there is NOTHING called "Moments". "All Photos" includes EVERYTHING including videos ...which is unnerving -My Dad's 90th birthday is stored there -it's 20GB (backed up elsewhere).


Thanks for your help. ...Mr. Grumpy is going to make a coffee and calm down LoL

xoxo 🙂

It is now 2017, you would have though Apple would have addressed the issue by now, but sadly no. 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. I have over 3000 images, I can not spend time retitling each & every picture, I already did that once. Guess my other option is to use a non-Apple application.

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.

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.

Unfortunately, the script to rename titles using the filename without extension just will not work under Sierra, returning an error message about not being able to generate the inverse of the extension. Has anyone come up with a new version?

Have you tried the compiled script that I offer at this tutorial site: P01 - Applescripts from Photos’ User Tips Compiled as Applications


This link will download it directly: 08 - Change Title to the File Name without the Extension


It works as advertised on 10.12.5 and Photos 2.0.

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

Hello. I'm beginning a large project and thought I would try your script for Changing Title to Filename...

Unfortunately Mac OS Sierra does not allow it to open because "it is from an unrecognized developer."

Thought you'd want to know.


Sincerely,

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

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.)

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 00004000 . There is a special firmware for the internet restore on Macs that predate Lion's release.


<Link Edited by Host>

And another test with a Canon .CR2 file, migrated from Aperture: The version name also shows:

User uploaded file

where is the Info panel?

It's a small floating pane that you bring up with the Command + i key combination.

User uploaded file

User uploaded file

You can also launch the Info panel from the Window menu in Photos:


Window > Info ⌘I


User uploaded file

Exactly, it should, but it doesn't:

User uploaded fileUser uploaded file

User uploaded file

Not yet. The next version of Photos will have more sorting options. See the preview of of El Capitan: Apple — OS X El Capitan

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 !

In my case it seems that JPEG files have been imported from Aperture with the "title" set to the filename, but RAW images have a blank title.

.

Feel free to share your modifications 🙂 I've already fixed the error handling a bit on my side so that it doesn't fail.


I also use a referenced library.

I haven't seen any errors but it does take quite a bit of time to run, maybe 1/4 second per image.

It is lucky, that we have to only do it once for each photo.

I'd like to say thanks to léonie for the filename2title script - it took a little fiddling around, but it is working for me. Wish I had more experience in writing scripts!


David

I just ran it on my 4700 photo library and it completed the task in about a minute or so. Was faster than I expected.

Thanks for throwing in on my other thread...I have tried this script a dozen times, and I always get an error: "AppleEvent handler failed." This happens even after multiple reboots, and also while stepping through the script. Any ideas? Thank you!


EDIT: Wait a minute, I just found that when I select images in the Photos tab, the script won't work, but when I select them in albums > all photos, it does. We'll see if the names propogate into iCloud. Thank you!

The script is getting better and better 🙂


Do you have custom scripting additions installed?

I havenever tried to use them in an Automator workflow, only in standalone scripts.

léonie wrote:

Do you have custom scripting additions installed?


Hardly, this is my first proper exploration of AppleScript. 🙂


tt2

Ah, I meant leaving out the on run {input, parameters} ... end run construct. My current automator script is now a straight copy of the V1.3 script I posted above, and it works fine. 🙂


tt2

Sony raw is .arw - I have a lot of these too. There are a lot of raw formats - it would be nice if all the camera companies adopted Adobe raw (DNG) but that is extremely unlikely.


David

Did you build the app yourself or download it from the User Tip?

The scripts will also run from albums.

Remember when IBM's Watson won Jeopardy? Perhaps Watson could figure this out for us.


-Jay

I just created the script you posted on May 13 that creates titles from text with sequential numbers (text-01, text-02...). It also only works when the photos are selected in "All Photos."


-Jay

Yep I agree.

Thanks, R C-R.

Now to learn AppleScript to try and convert the filenames to titles for 8000+ photos.

Hope this makes my client happpy. - J

I think learning Applescript without a Mac would be extremely difficult. Perhaps it is time to break down & buy a Mac to see why so many people like them? 👿

Leonie

I see the scripts in this thread.

Is there a recommended "final" version?

Thanks.

Allison,


Have not observed that.


Not saying its not there, just have never run into it.

hmmm... How about this one? When I take a picture with my iPhone there's a very long lag before I can access the photo right from the camera app.

Maybe the right place would be in a discussion of iCloud Photo Library? It's not really a phone issue, it's more to do with the fact th 00004000 at photos are stored in the cloud. I'll be cool though!

Since I installed Yosemite, I hate my Mac.

Why's that? Yosemite is the fastest system I've had on my iMac. It runs beautifully.

Dear Leonie,

i have found another post you wrote with the script you made for the Automator, even another guy improved it without the extension...and it worked!

Thanks once more for your help!!!!

Did you ever figure out a solution to this problem? i am a new Mac Photos user and this is SOOOO frustrating. i'm thinking of returning my mac and going back to pc...

exactly what problem are you referring to?

could you please share a link to the script that you said worked for your photos titles? i tried Leoni's and it does not work.

thanks! i copy and pasted your script and it worked...FINALLY! thanks again!

Hi Léonie,


Is it possible to batch change the file names of pictures in Photos to their title?


Thanks

correction. I misread your questions. You can change the titles but not the filename of the original files in the library. You would need Aperture for this.

Only when you export - in the export use the option to use title for file name


You can not make any changes to the original photo including the file name while it is in Photos


LN

BOU

Seems an easy solution would be the metadata pulldown menu to include the option to view the "filename" in the list.

Old Toad,

Thank you for the link to Photo Feedback. Done!

If you use Dropbox on iphone and

computer, the photos are transferred with the original filename. Works for iphone 6 and Mac OS 10.6.8 thru 10.11

You can not use Drop Box to transfer photos to the Photos library - they can only be imported


LNto Photos using the Photos application

Yes I can imagine.

Thank you for understanding Leonie.

I DID just go to Apple/feedback as you suggested & offered my opinion/complaint & reasons why I feel the way I do.

The error message:


Can’t make reverse of every character of «class filn» of item 1 of {«class IPmi» id "TR4GuRuYSGedlDyHx2UNoA" of application "Photos"} into type string.

I've been trying to run it as a Service within Photos, and it fails in that context.

You're welcome. 🙂


tt2

Control (right) - click on the app and select Open from the Contextual menu. In the next window select Open and from then on it will open without issue