Re: filename to bitmap
Re: filename to bitmap
- Subject: Re: filename to bitmap
- From: has <email@hidden>
- Date: Tue, 16 Oct 2001 13:12:22 +0100
Brennan wrote:
>
> Irwin Poche <email@hidden> wrote
>
>
>
> AppleWorks can probably do this. It has Applescript support.
>
>
Yes, but that's probably a bit heavy for so simple a task.
>
>
> Adobe Photoshop has it's own scripting language which can be invoked with an
>
> Applescript "do script" command.
>
>
I find Photoshop's 'scripting language' (ha ha) wholly inadequate for
>
anything but the most linear tasks.
>
Intelligent file naming for example based on the original file name, is
>
particularly lacking. I'm hoping the GIMP (already running on OSX!) will
>
kick Adobe a bit into improving this feature.
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.
The solution is simple (in principle at least): Adobe should add AS support
to Photoshop, either by licencing Photoscripter or rolling their own. e.g.
They added AS support to Illustrator 9 through licencing and bundling a
3rd-party solution (though the Joe Average would be lucky to notice it
exists since it's not part of the standard install... bizarre).
The best way to get Adobe to deal with all of this is for lots of users to
jump up and down asking them for real scripting support. If they know
there's lots of demand they're more likely to do something about it.
[snip Brennan's rather nice script]
The only problem with this script is that it writes a new file over the
existing one, so you lose the original file's resource fork (preview image,
custom icons, etc) and changes the creator code to the default
(pictureviewer). I think using "with appending" instead of "with
overwriting" is supposed to write into the existing file, but I couldn't
get it to work.
You could maybe recycle the old resource fork by reading it out of the old
file and writing it into the new one using Akua Sweets' "Read data from/to".
OTOH you wouldn't have this problem if you used a graphics app, rather than
the Sweets, to modify the file.
HTH
has