You can make a difference in the Apple Support Community!

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

Bug: Exporting Images with "Filename: Use Title" Exports the Files as Invisible if the Title has Been Deleted

by: 
Last modified: Jun 20, 2021 2:52 AM
4 15008 Last modified Jun 20, 2021 2:52 AM

User bikedaveca reported this bug today:

See the discussion: Exported photos don't show up in Finder


Usually exporting photos with "File > Export > Export ...files > Filename: Use Title" is working as expected.

  • If the photo has a title, the title is used as the filename.
  • If the photo has not yet a title assigned, the filename will be used as the filename on export.

But if you first add a title to an image and then delete the title text again, the photo will be in a weird state: Photos will treat it as having a title, but the title string is empty. The filename of the exported file will just be ".jpg", and the Finder will hide this photo and treat it like an invisible system file.

User uploaded file


As a precaution, keep at least one printable character in the title field, when when you remove a title from a photo, so you can see, that it had a title assigned.


As a test, Imported three new photos, for example:

User uploaded file


The first one, has a title, the second one had a title, but deleted, the third one never had a title and is showing "untitled".


When I select and export them with "Filename: Use Title", only two photos will show in the Finder,

The problem is, that deleting a title does not remove the title but adds an empty title. So the photos will be exported with the filename ".jpg".

User uploaded file


As a work-around, do not erase the title completely, but use an underscore character as the empty title "_" or similar. It needs to be a visible character, a space will not suffice.

User uploaded file


If you accidentally created invisible files on export and need to remove them, use the Terminal.


A Terminal command to make the invisible files visible in the Finder is

defaults write com.apple.finder AppleShowAllFiles TRUE

killall Finder

And to hide them again:

defaults write com.apple.finder AppleShowAllFiles FALSE

killall Finder

Comments

Apr 8, 2017 2:02 AM

This bug seems to have been fixed in macOS Sierra. Great!


Update: No, it is back in macOS Sierra 10.12.4.


Testing again in the current version I created hundreds of invisible files!

Apr 8, 2017 2:02 AM

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