It's the other way around. I need to copy the filename to title for importing. I am not exporting photos.
I scanned in images, which have a filename that is coded by me to provide a compact and useful time and location information. When I import that into Photos, Photos Library only allows me to sort by the image date, which for a scan is the scan date (not the photo date, obviously). That makes Photos sorting completely worthless. iPhotos did that just fine, but Apple removed that sorting option from Photos. To fix the problem, I can sort on title, but then I need to import the original (pre-Photos) filename and assign it to the image title. That is what I need. I have been using a slightly modified version of a script from these forums for several years, but the latest version of Photos 3 only changes some titles, and not others.
Following your post, I checked my Photos version, it's 3, not 4. I have a mid-2010 iMac, which works just fine, but Apple has chosen not to allow my iMac to use Mohave. Photos 4 is only on Mohave, so I can't use it. That option will cost me $2,000 for a new iMac for the only purpose of sorting Photos in a way that Apple removed years ago.
I just need a script, preferably Apple-approved, that I can use for this purpose. Other scripts that I've used and/or modified, you tell me are not safe to use.
As I see it, I have a choice: Buy a new iMac or move all my photos to a non-Apple product. I would rather take the simpler route of writing a script. So, I thought that others may have already written one.
Thank you.