Re: filename to bitmap
Re: filename to bitmap
- Subject: Re: filename to bitmap
- From: has <email@hidden>
- Date: Wed, 17 Oct 2001 13:59:05 +0100
Brennan wrote:
>
>
has <email@hidden> wrote
>
>
> Photoshop's Actions are just dumb macros: record and run... and run... and
>
> run. No variables, control statements, subroutines, etc: it's no 'scripting
>
> language'. There's been times when I've recorded quite complex actions but
>
> would have killed for a simple if...then statement.
>
>
Well, even being able to get something like the width or color depth of
>
the image into the filename (a completely linear task) is impossible. I
>
once worked on a website where somebody had had the dumb idea of having
>
the width and height of every image as part of the filename as a naming
>
convention. Every time an image was modified so that it changed size, you
>
had to modify the filename and the html code. Of course, nobody on the
>
team had any scripting chops, and photoshop couldn't do it either. Total
>
nightmare.
Hmm, I'm not sure why anyone would want to write a hack that kludges a fix
to an already badly-designed process anyhow, given that it's much quicker
and more personally satisfying simply to kill the person responsible for
implementing such a stupid idea in the first place.
Oh I know that it'd also be possible simply to redesign the whole stinking
process to something sensible, but murder is probably much easier. As an
extra bonus you'll never have to work in such an stupid job again, plus
you'll get three free meals a day for the rest of your life.
HTH
has
p.s. You can use various 3rd-party osaxen/prefab player to control menus
and fake keyboard typing. It would be possible to contrive a solution that
could step through [parts of] various dialogs, so kludging a solution
through Photoshop that could, say, get an image's resolution by copying
values out of the Image Size dialog and rename the file accordingly would
be possible. OTOH, this sort of "last-ditch" approach is about as much fun
as a wet slap.
p.p.s. Nope, given the choice I'd definitely go with murder...