Menu
Sign In Search Podcasts Libraries Charts People & Topics Add Podcast API Blog Pricing

Casey Liss

πŸ‘€ Speaker
6338 total appearances

Appearances Over Time

Podcast Appearances

Accidental Tech Podcast
606: A Decade of Half-Presses

It's like, no, just let me just select the photos. You know, whenever I'm doing my workflow and photos. This during this step, it's very easy for me to simply select the favorites that I've just processed. And, you know, maybe worst case is like 200 photos or something. So I can just, you know, click and then shift click. I've made a selection.

Accidental Tech Podcast
606: A Decade of Half-Presses

Then I run the script and it can get the file names out of the thing. So that's what I did. I made an Apple script that did that. And of course, once I have an Apple script that does that, you know where I'm going straight to Perl. So I wrote a Perl script that calls the Apple script using the OSA script command line thing or whatever.

Accidental Tech Podcast
606: A Decade of Half-Presses

Then I run the script and it can get the file names out of the thing. So that's what I did. I made an Apple script that did that. And of course, once I have an Apple script that does that, you know where I'm going straight to Perl. So I wrote a Perl script that calls the Apple script using the OSA script command line thing or whatever.

Accidental Tech Podcast
606: A Decade of Half-Presses

So now what I've written for myself is a Perl script that all I have to do the next time I'm doing this sort of workflow is select the photos that I want. And again, listen to the episode if you want to hear what I'm selecting, whatever, but select the photos that I want. and then run the Perl script. There is no other step.

Accidental Tech Podcast
606: A Decade of Half-Presses

So now what I've written for myself is a Perl script that all I have to do the next time I'm doing this sort of workflow is select the photos that I want. And again, listen to the episode if you want to hear what I'm selecting, whatever, but select the photos that I want. and then run the Perl script. There is no other step.

Accidental Tech Podcast
606: A Decade of Half-Presses

And when I run the Perl script, it will get this file names of the ones that are selected from photos using the Apple script. And then for each one of those file names, it will look to see if there's a raw on my mounted SD card with the raws in it. And if there is a raw with that file name, it will copy it and do all the things. So that's going to save me a lot of time and a lot of screenshotting.

Accidental Tech Podcast
606: A Decade of Half-Presses

And when I run the Perl script, it will get this file names of the ones that are selected from photos using the Apple script. And then for each one of those file names, it will look to see if there's a raw on my mounted SD card with the raws in it. And if there is a raw with that file name, it will copy it and do all the things. So that's going to save me a lot of time and a lot of screenshotting.

Accidental Tech Podcast
606: A Decade of Half-Presses

Now, having said that, oh, and by the way, I will link in the show notes to my Apple script. It's not very exciting. It's exactly what ChatGPT would give you with like one bug fixed. So anyway, it's very straightforward, but I just really hate Apple script. And I'm glad ChatGPT did it for me because I wouldn't want to have to look up all that stuff.

Accidental Tech Podcast
606: A Decade of Half-Presses

Now, having said that, oh, and by the way, I will link in the show notes to my Apple script. It's not very exciting. It's exactly what ChatGPT would give you with like one bug fixed. So anyway, it's very straightforward, but I just really hate Apple script. And I'm glad ChatGPT did it for me because I wouldn't want to have to look up all that stuff.

Accidental Tech Podcast
606: A Decade of Half-Presses

That's right. That's why at the end of it you'll see I'm emitting the file names one per line. as opposed to comma separated or as JSON or whatever. One per line is straightforward. I promise to never have new lines in my file names, right? It'll just, it'll be fine. Yeah. Yeah. I just want text output to standard standard out. And then I just feed that into Perl, you know,

Accidental Tech Podcast
606: A Decade of Half-Presses

That's right. That's why at the end of it you'll see I'm emitting the file names one per line. as opposed to comma separated or as JSON or whatever. One per line is straightforward. I promise to never have new lines in my file names, right? It'll just, it'll be fine. Yeah. Yeah. I just want text output to standard standard out. And then I just feed that into Perl, you know,

Accidental Tech Podcast
606: A Decade of Half-Presses

it's it's my preferred way of doing things all right now on to all the many many suggestions people sent because so many people sent suggestions i hope an equal or greater number of people sent suggestions to casey but i don't know what casey sees all i know is what i see and i saw a bazillion suggestions for this one step in my workflow by far the most popular which boggles my mind was hey why don't you just export all the photos because once you've exported them to the finder then you can just select them in the finder and hit copy or you can do you know once they're files in the file system there's a million ways to get the file names from them you know what i mean

Accidental Tech Podcast
606: A Decade of Half-Presses

it's it's my preferred way of doing things all right now on to all the many many suggestions people sent because so many people sent suggestions i hope an equal or greater number of people sent suggestions to casey but i don't know what casey sees all i know is what i see and i saw a bazillion suggestions for this one step in my workflow by far the most popular which boggles my mind was hey why don't you just export all the photos because once you've exported them to the finder then you can just select them in the finder and hit copy or you can do you know once they're files in the file system there's a million ways to get the file names from them you know what i mean

Accidental Tech Podcast
606: A Decade of Half-Presses

uh yeah that would work but why in the world export photos and make it like you know you can you do it small size they won't take up a lot of room you know but why would i make it do all that work why is empathy for the machine why would i make it like recompress export make a bunch of files just so i can get the file names and then delete the things oh no no that's i mean yes that technically that would absolutely work

Accidental Tech Podcast
606: A Decade of Half-Presses

uh yeah that would work but why in the world export photos and make it like you know you can you do it small size they won't take up a lot of room you know but why would i make it do all that work why is empathy for the machine why would i make it like recompress export make a bunch of files just so i can get the file names and then delete the things oh no no that's i mean yes that technically that would absolutely work

Accidental Tech Podcast
606: A Decade of Half-Presses

and some might find it preferable to what I was doing with OCRing, but at least when I was OCRing, I was making one screenshot for dozens and dozens of photos because I have a very big screen, right? Exporting the files. Everyone suggested that. I mean, I guess if you're not in a kind of like... I'm going to write an automation script mindset. This is the most straightforward way to do it.

Accidental Tech Podcast
606: A Decade of Half-Presses

and some might find it preferable to what I was doing with OCRing, but at least when I was OCRing, I was making one screenshot for dozens and dozens of photos because I have a very big screen, right? Exporting the files. Everyone suggested that. I mean, I guess if you're not in a kind of like... I'm going to write an automation script mindset. This is the most straightforward way to do it.

Accidental Tech Podcast
606: A Decade of Half-Presses

Hey, you want file names? Make files. They've got names. Boom. Problem solved. But no, I'm not. That solution I reject. Some other people suggested using shortcuts, which is sort of the modern sort of AppleScript type equivalent. We'll put a link in the show notes to an example one from Josh Woodward. Shortcuts can totally do all the stuff, I'm sure.

Accidental Tech Podcast
606: A Decade of Half-Presses

Hey, you want file names? Make files. They've got names. Boom. Problem solved. But no, I'm not. That solution I reject. Some other people suggested using shortcuts, which is sort of the modern sort of AppleScript type equivalent. We'll put a link in the show notes to an example one from Josh Woodward. Shortcuts can totally do all the stuff, I'm sure.

Accidental Tech Podcast
606: A Decade of Half-Presses

Shortcuts, I find, I'm even more allergic to than AppleScript because I'm a programmer. And at least AppleScript lets me sort of kind of do programming, but shortcuts... It makes me arrange widgets in a GUI instead of programming. And I'm glad that it exists, and I'm glad that it is very powerful. It can do lots of things, and I'm glad a lot of people like it.