Removing broken scripts.

ForumsFor GIMP users ► Removing broken scripts.

Sent: 2010-09-09 18:02:10 UTC (over 1 year ago)

From: cscj01

Removing broken scripts.

I use Gimp under Ubuntu 10.04. My question is fairly simple. I have been
using Gimp since 2.0, and have copied scripts over from release to release.
Usually, some of the copied scripts are broken when a new release is
available, such as from 2.4 to 2.6. To date, I have not made the effort to
remove the broken scripts.

When a script is broken, I find out by running the script and getting an error
message, such as "Error: set!: unbound variable: screen-layer". I know how I
invoked the script from the menu, so I can edit all the scripts in my
directory to see where they put the script in the menu structure and the name
they used. Often, I can narrow the number of scripts I have to edit to find
the correct one by using the script name as a starting point. However, there
are a significant number of scripts that have a different file name than that
used in the menu. Needless to say, this is a tedious and slow process.

Is there an easier way to identify a broken script file other than the process
I have outlined above?

--
Cecil C. (via www.gimpusers.com)
_______________________________________________
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user

Reply to this message

Sent: 2010-09-09 18:56:15 UTC (over 1 year ago)

From: Ofnuts

Removing broken scripts.

On 09/09/2010 18:02, Cecil C. wrote:
> I use Gimp under Ubuntu 10.04. My question is fairly simple. I have been
> using Gimp since 2.0, and have copied scripts over from release to release.
> Usually, some of the copied scripts are broken when a new release is
> available, such as from 2.4 to 2.6. To date, I have not made the effort to
> remove the broken scripts.
>
> When a script is broken, I find out by running the script and getting an error
> message, such as "Error: set!: unbound variable: screen-layer". I know how I
> invoked the script from the menu, so I can edit all the scripts in my
> directory to see where they put the script in the menu structure and the name
> they used. Often, I can narrow the number of scripts I have to edit to find
> the correct one by using the script name as a starting point. However, there
> are a significant number of scripts that have a different file name than that
> used in the menu. Needless to say, this is a tedious and slow process.
>
> Is there an easier way to identify a broken script file other than the process
> I have outlined above?

I don't know what UI you use (Gone/KDE....), but a decent file
navigator/browser should also have the tools to search files on content.

_______________________________________________
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user

Reply to this message

Sent: 2010-09-10 19:39:21 UTC (over 1 year ago)

From: Sven Neumann

Removing broken scripts.

On Thu, 2010-09-09 at 18:02 +0200, Cecil C. wrote:
> I use Gimp under Ubuntu 10.04. My question is fairly simple. I have been
> using Gimp since 2.0, and have copied scripts over from release to release.
> Usually, some of the copied scripts are broken when a new release is
> available, such as from 2.4 to 2.6. To date, I have not made the effort to
> remove the broken scripts.
>
> When a script is broken, I find out by running the script and getting an error
> message, such as "Error: set!: unbound variable: screen-layer". I know how I
> invoked the script from the menu, so I can edit all the scripts in my
> directory to see where they put the script in the menu structure and the name
> they used. Often, I can narrow the number of scripts I have to edit to find
> the correct one by using the script name as a starting point. However, there
> are a significant number of scripts that have a different file name than that
> used in the menu. Needless to say, this is a tedious and slow process.
>
> Is there an easier way to identify a broken script file other than the process
> I have outlined above?

Probably the easiest way to find a script that contains a certain string
(as found in the error-message) is to use the grep utility. Try 'man
grep'.

Sven

Reply to this message

Sent: 2010-09-12 14:22:23 UTC (over 1 year ago)

From: gerard82

Removing broken scripts.

>On Thu, 2010-09-09 at 18:02 +0200, Cecil C. wrote:
>> I use Gimp under Ubuntu 10.04. My question is fairly simple. I have been
>> using Gimp since 2.0, and have copied scripts over from release to release.

>> Usually, some of the copied scripts are broken when a new release is
>> available, such as from 2.4 to 2.6. To date, I have not made the effort
to
>> remove the broken scripts.
>>
>> When a script is broken, I find out by running the script and getting an
error
>> message, such as "Error: set!: unbound variable: screen-layer". I know how
I
>> invoked the script from the menu, so I can edit all the scripts in my
>> directory to see where they put the script in the menu structure and the
name
>> they used. Often, I can narrow the number of scripts I have to edit to
find
>> the correct one by using the script name as a starting point. However,
there
>> are a significant number of scripts that have a different file name than
that
>> used in the menu. Needless to say, this is a tedious and slow process.
>>
>> Is there an easier way to identify a broken script file other than the
process
>> I have outlined above?
>
>Probably the easiest way to find a script that contains a certain string
>(as found in the error-message) is to use the grep utility. Try 'man
>grep'.
>
>
>Sven

Install "mc".
It is a very handy filebrowser.
Open it in a console.
Open your home directory and go to
/home//.gimp-2.6
Hit enter and then go to ~plug-ins and
~scripts.
You'll find python scripts in plug-ins and scm scripts in scripts.
Put the cursor on the script you want to delete and hit F8.
It might be wise to create a temporary directory somewhere and backup
everything first.
Gerard.

--
Gerard v. V. (via www.gimpusers.com)
_______________________________________________
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user

Reply to this message

Welcome!


Lost password?

Not a member? Sign up!

Random tutorials | Latest tutorials

  1. Cool glowing text Cool glowing text 40
  2. Smelting text / Creating blood text Smelting text / Creating blood text 37
  3. Crazy Ions Crazy Ions 4
  4. "Solar winds" graphics effect "Solar winds" graphics effect 7

Latest comments

A facebook page, could be great too! (about 14 hours ago in GIMP gets closer to the community with Google+!)

bah just use 2.7.4 (or 2.7.5 on Windows) (about 17 hours ago in Last stable 2.6 release: 2.6.12 has arrived)

Hmm, would prefer Diaspora, I don't use G+ myself, but I guess it h... (about 17 hours ago in GIMP gets closer to the community with Google+!)

Poll

Is GIMP an adequate application for you to create printed graphics like flyers, advertisments etc?

Latest forum activities

Your Ad Here

facts & numbers

gimpusers.com RSS feed

48 identi.ca followers
745 Twitter followers

powered by bitfire it services