Re: filename to bitmap
Re: filename to bitmap
- Subject: Re: filename to bitmap
- From: has <email@hidden>
- Date: Mon, 15 Oct 2001 22:37:23 +0100
matthew blair wrote:
>
Im trying to put a fllename slug into a Jpeg image for marking filenames on
>
digital photographs is it posible to clipboard text as pict file as in turn
>
the filename text into a pict (bitmapped) slug
>
>
I use photoshop for most of my image processing but the batching environment
>
prohibits me from annotating my prints with filenames and I need to track
>
prints by name , photoshops contact sheet manages to retrive file names but
>
the command is not available in the actions
Long ago I wrote a droplet that did this after a similar request. If you
want to roll your own version, here's roughly how it worked. It used Akua
Sweets 'display drawing', 'quickdraw' and 'capture picture' additions to
generate the filename PICT. (AkSw is kinda like one of those huge Swiss
Army knives with the ten hundred blades, knives, corkscrews, hoofpicks, can
openers, toenail clippers, etc, etc, etc. Wonderful stuff. If you don't got
it, you oughta.:)
on open{thefiles}
repeat with eachfile in thefiles
get the file's filename (using either the Finder or a TID boogie)
create a drawing window using AkSw (suggest you make the window
'hidden' once you've got the script debugged)
draw the filename in this window (if an opaque background rectangle or
other stuff is needed, do that first)
capture the contents of this window and put on the clipboard
--how you do the rest is up to you: I used PS5 since it's what I had at the
time - crude and clumsy but it worked
tell Photoshop to activate and open the file
--the remaining steps require that you make up a PS Action, then use 'do
script' to run it from AS
create a selection rectangle in the top-left corner (since this is the
one corner that's always in the same place, no matter the image size)
paste the clipboard contents
save and close
end repeat
That'll dump the filename into the top-left corner of the image. If you
don't want the filename overlapping the image it'll be harder: you'll need
to work on the script design and/or Action some more (I don't have access
to a PS5 any more, so can't help you with tricks for that). Or maybe it'd
be easier in Graphic Converter, which is more scriptable than PS is (but I
don't have GC either so don't know what it can or can't do scripting-wise).
HTH
has