You must supply the appropriate drawable ID to the plug-in. Per your example:
(plug-in-autocrop 1 4 (car (gimp-image-get-active-layer 4)))
Quoting Sam Kuper <[EMAIL PROTECTED]>:
> I want to apply a filter plug-in via the script-fu console, but this doesn't
> seem to work. I have tried with sever
I want to apply a filter plug-in via the script-fu console, but this doesn't
seem to work. I have tried with several plug-ins, with no success. I have
tried this on GIMP 2.0.5 on RedHat Enterprise Linux and GIMP 2.4.1 on
Windows XP SP2.
Let's take a simple example. Suppose I have a .png image open