Removing broken scripts.
This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.
This is a read-only list on gimpusers.com so this discussion thread is read-only, too.
Removing broken scripts. | cscj01 | 09 Sep 18:02 |
Removing broken scripts. | Ofnuts | 09 Sep 18:56 |
Removing broken scripts. | Sven Neumann | 10 Sep 19:39 |
Removing broken scripts. | gerard82 | 12 Sep 14:22 |
- postings
- 8
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?
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.
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
- postings
- 40
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.