RSS/Atom feed Twitter
Site is read-only, email is disabled

plug-in vs. script

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.

19 of 19 messages available
Toggle history

Please log in to manage your subscriptions.

remember last location for "save as", "save a copy", "save", "open" firepol 27 Sep 21:57
  remember last location for "save as", "save a copy", "save", "open" Sven Neumann 28 Sep 19:34
   remember last location for "save as", "save a copy", "save", "open" Pere Pujal i Carabantes 28 Sep 22:40
    remember last location for "save as", "save a copy", "save", "open" Sven Neumann 30 Sep 12:10
     remember last location for "save as ", " save a copy ", "save", " open" Leon Brooks GIMP 30 Sep 22:51
      remember last location for "save as", " save a copy ", "save", "open" buralex@gmail.com 01 Oct 00:56
       remember last location for "save as", " save a copy ", "save", "open" Patrick Shanahan 01 Oct 01:55
        remember last location for "save as", " save a copy ", "save", "open" Leon Brooks GIMP 01 Oct 03:04
       remember last location for "save as", " save a copy ", "save", "open" Leon Brooks GIMP 01 Oct 03:00
     remember last location for "save as", "save a copy", "save", "open" Pere Pujal i Carabantes 01 Oct 23:31
      remember last location for "save as", "save a copy", "save", "open" Sven Neumann 02 Oct 18:20
       remember last location for "save as", "save a copy", "save", "open" Raphaël Quinet 04 Oct 17:12
        plug-in vs. script Bettina Lechner 04 Oct 17:20
         plug-in vs. script David Gowers 05 Oct 01:59
          plug-in vs. script Michael Schumacher 05 Oct 09:48
          plug-in vs. script Kevin Cozens 05 Oct 18:40
           plug-in vs. script Sven Neumann 05 Oct 20:52
        remember last location for "save as", "save a copy", "save", "open" Sven Neumann 05 Oct 07:54
       remember last location for "save as", "save a copy", "save", "open" Pere Pujal i Carabantes 04 Oct 20:10
firepol
2007-09-27 21:57:44 UTC (over 17 years ago)

remember last location for "save as", "save a copy", "save", "open"

Hi there,

I open an image stored in /media/usb-external/graphics/work/animals/cat/mycat/christmas/cat.jpg

Now, if I cut a part of the image and I paste it into a new image, then I click "save as" I get as default my home directory (in my case /home/paul/) which is very annoying since I'd like to save the modified image in the same folder (last location) I've just opened a few seconds before. I need to re-navigate the whole tree to select the directory, loosing a bunch of time.

The usability improvement I'm suggesting is to always remember the last location where the user opened or saved a file. E.g. I open a file from /media/usb-external/graphics, then I manipulate it and create a new image fom it, The "save as" should be already open the /media/usb-external/graphics. If I create a folder "temp" and save the file there, then click "open" I'd like to be aleady in /media/usb-external/graphics/temp (last location)... see what I mean?

If you don't like this behavior, at least copy the behavior of Adobe Photoshop: it's not smart as the one I'm suggesting but at least it remembers the last saved folder, even if you close photoshop.

Personally I think that it would be nice to change the behavior as I'm suggesting (I think it can save a lot of time to regular users), don't you think it's smarter to remember the last used location instead of navigating the directories tree each time you want to save a new image?

Please consider this improvement... see also my initial request http://bugzilla.gnome.org/show_bug.cgi?id=481002

Best regards,

--firepol

Sven Neumann
2007-09-28 19:34:16 UTC (over 17 years ago)

remember last location for "save as", "save a copy", "save", "open"

Hi,

On Thu, 2007-09-27 at 21:57 +0200, firepol wrote:

I open an image stored
in /media/usb-external/graphics/work/animals/cat/mycat/christmas/cat.jpg

Now, if I cut a part of the image and I paste it into a new image, then I click "save as" I get as default my home directory (in my case /home/paul/) which is very annoying since I'd like to save the modified image in the same folder (last location) I've just opened a few seconds before. I need to re-navigate the whole tree to select the directory, loosing a bunch of time.

Sometimes you want to save the image there, and sometimes you don't. Since there's no relation between the image you opened and the one you are saving, it would be somewhat odd to open the save file-chooser in the loaction where you last opened a different image.

It's not easy to find a good solution that fits for all cases. For GIMP 2.4 we have changed the behavior of the Open and Save dialogs so that they open in the last used directory if you are using them from the same image. For all other needs, I suggest that you use the Bookmarks feature of the file-chooser dialog to avoid having to renavigate the filesystem.

Sven

Pere Pujal i Carabantes
2007-09-28 22:40:50 UTC (over 17 years ago)

remember last location for "save as", "save a copy", "save", "open"

El dv 28 de 09 del 2007 a les 19:34 +0200, en/na Sven Neumann va escriure:

It's not easy to find a good solution that fits for all cases. For GIMP 2.4 we have changed the behavior of the Open and Save dialogs so that they open in the last used directory if you are using them from the same image. For all other needs, I suggest that you use the Bookmarks feature of the file-chooser dialog to avoid having to renavigate the filesystem.

Just a couple of ideas.

May be Gimp can auto add/remove Bookmarks? I guess this can give more problems than adressed.

Or may be after modifying file-chooser, there will be a place for app-bookmarks in plus of user-bookmarks?

Yours Pere

Sven Neumann
2007-09-30 12:10:46 UTC (over 17 years ago)

remember last location for "save as", "save a copy", "save", "open"

Hi,

On Fri, 2007-09-28 at 22:40 +0200, Pere Pujal i Carabantes wrote:

May be Gimp can auto add/remove Bookmarks? I guess this can give more problems than adressed.

Or may be after modifying file-chooser, there will be a place for app-bookmarks in plus of user-bookmarks?

The application can already add bookmarks and GIMP 2.4 already makes use of this feature in some places. I am not convinced though that this would be a good way to solve the problems brought up the user who started the thread.

Perhaps we need to collect the typical usage scenarios that involve use of the file-chooser and evaluate how the current solution deals with them and if there are ways to improve it.

Sven

Leon Brooks GIMP
2007-09-30 22:51:25 UTC (over 17 years ago)

remember last location for "save as ", " save a copy ", "save", " open"

On Sunday 30 September 2007 20:10:46 Sven Neumann wrote:

The application can already add bookmarks and GIMP 2.4 already makes use of this feature in some places. I am not convinced though that this would be a good way to solve the problems brought up the user who started the thread.

I am imagining a short drop-down history of places one last saved things, preferably with a shortcut key (Ins? Who knows?) which will instantly recall the most recent one.

Cheers; Leon

buralex@gmail.com
2007-10-01 00:56:40 UTC (over 17 years ago)

remember last location for "save as", " save a copy ", "save", "open"

Leon Brooks GIMP said on Sep 30, 2007 16:51 -0400 (in part):

On Sunday 30 September 2007 20:10:46 Sven Neumann wrote:

The application can already add bookmarks and GIMP 2.4 already makes use of this feature in some places. I am not convinced though that this would be a good way to solve the problems brought up the user who started the thread.

I am imagining a short drop-down history of places one last saved things, preferably with a shortcut key (Ins? Who knows?) which will instantly recall the most recent one.

Is any one familiar with Windows-only File-Ex http://www.cottonwoodsw.com ? (It has a 30-day trial period)

IMO it turns the standard windows File-Open File-Save dialogs into things of beauty.
If Gimp's (aka GTK+ do I have the relationship correct?) Open-Save dialogs could emulate that cross-platform I think it would be ideal! (And satisfy everything Leon has asked for.)

Full disclosure - I did a lot of beta-testing for this in its upgrade from Win9x to Win2K/XP and am perhaps biased. Note: author has recently added a note that its not Vista-ready (and may or may not ever be :-( ). That alone is sufficient to keep me on WinXp as long as possible.

Regards ... Alec -- buralex-gmail

Patrick Shanahan
2007-10-01 01:55:19 UTC (over 17 years ago)

remember last location for "save as", " save a copy ", "save", "open"

* buralex@gmail.com [09-30-07 18:57]:

That alone is sufficient to keep me on WinXp as long as possible.

I will pray for you. In linux.

Leon Brooks GIMP
2007-10-01 03:00:23 UTC (over 17 years ago)

remember last location for "save as", " save a copy ", "save", "open"

On Monday 01 October 2007 08:56:40 buralex@gmail.com wrote:

Note: author has recently added a note that its not Vista- ready (and may or may not ever be :-( ). That alone is sufficient to keep me on WinXp as long as possible.

Or to inspire you to make a really robust & portable GTK version which *will* run on Vista. At least under GIMP if nowhere else. (-:

An advantage to making it fly under GTK is that it then becomes reasonable to use the features with other apps, naturally including file managers. (-:

Cheers; Leon

Leon Brooks GIMP
2007-10-01 03:04:53 UTC (over 17 years ago)

remember last location for "save as", " save a copy ", "save", "open"

On Monday 01 October 2007 09:55:19 Patrick Shanahan wrote:

I will pray for you.    In linux.

What, not in Plan9? Or Hurd? Where's your ambition? (-:

Cheers; Leon

Pere Pujal i Carabantes
2007-10-01 23:31:08 UTC (over 17 years ago)

remember last location for "save as", "save a copy", "save", "open"

Hi!

El dg 30 de 09 del 2007 a les 12:10 +0200, en/na Sven Neumann va escriure:

The application can already add bookmarks and GIMP 2.4 already makes use of this feature in some places.

I see the "Recently Used" (files) entry in file-chooser. Can it hold "Recently Used Dirs" ?

I am not convinced though that this would be a good way to solve the problems brought up the user who started the thread.

No, dir bookmarks not solve any problem, but can come in help when the gimp assumption about the directory where to save a file and the user wanted directory differs.

There are two issues here: Find good default saving assumptions for most users. What to do when a user has different needs.

Bookmarking recent saving dirs deals with the second case.

Perhaps we need to collect the typical usage scenarios that involve use of the file-chooser and evaluate how the current solution deals with them and if there are ways to improve it.

I just have a suggestion for "paste as new" and is that the default saving directory for the new image can inherit the default saving directory from the image where the action is called, or if it is called from the toolbox, inherite from the active image.

As this, the users can have some control over the default saving directory.

Yours
Pere

Sven Neumann
2007-10-02 18:20:33 UTC (over 17 years ago)

remember last location for "save as", "save a copy", "save", "open"

Hi,

On Mon, 2007-10-01 at 23:31 +0200, Pere Pujal i Carabantes wrote:

I see the "Recently Used" (files) entry in file-chooser. Can it hold "Recently Used Dirs" ?

For the Save dialog, this would probably make more sense than presenting recently used files. Would probably make sense to bring this up for discussion on the gtk-developer list or at least file a bug report for it against the GTK+ file-chooser.

I just have a suggestion for "paste as new" and is that the default saving directory for the new image can inherit the default saving directory from the image where the action is called, or if it is called from the toolbox, inherite from the active image.

That would be rather confusing, IMO. But what about the following:

If an image already has a filename associated to it, then open the Save file-chooser in that folder. Otherwise use the folder of the most recent save operation. Would that make sense?

Sven

Raphaël Quinet
2007-10-04 17:12:01 UTC (over 17 years ago)

remember last location for "save as", "save a copy", "save", "open"

On Tue, 02 Oct 2007 18:20:33 +0200, Sven Neumann wrote:

If an image already has a filename associated to it, then open the Save file-chooser in that folder. Otherwise use the folder of the most recent save operation. Would that make sense?

Definitely. That should be the default behavior.

If needed, the current behavior (always use the last directory) can be emulated with a temporary bookmark. The opposite is not true: if you are working on several images and want to save each of them in the directory they came from, then the current file-chooser behavior gets in the way.

-Raphaël

Bettina Lechner
2007-10-04 17:20:00 UTC (over 17 years ago)

plug-in vs. script

hi gimpusers!

please, what is the difference between a plug-in and a script? I am asking because I never know if I should copy a plug-in (e.g. from the registry.gimp.org - site) in to the plug-in or the script folder. I'ts always a try and error thing. And most of the times it's working when I am copying the plug-in into the scripts folder. but what is then a plug-in?

thanks for explanations, tina

Pere Pujal i Carabantes
2007-10-04 20:10:06 UTC (over 17 years ago)

remember last location for "save as", "save a copy", "save", "open"

El dt 02 de 10 del 2007 a les 18:20 +0200, en/na Sven Neumann va escriure:

Hi,

On Mon, 2007-10-01 at 23:31 +0200, Pere Pujal i Carabantes wrote:

I see the "Recently Used" (files) entry in file-chooser. Can it hold "Recently Used Dirs" ?

For the Save dialog, this would probably make more sense than presenting recently used files. Would probably make sense to bring this up for discussion on the gtk-developer list or at least file a bug report for it against the GTK+ file-chooser.

Done, see:
http://mail.gnome.org/archives/gtk-devel-list/2007-October/msg00010.html

If an image already has a filename associated to it, then open the Save file-chooser in that folder. Otherwise use the folder of the most recent save operation. Would that make sense?

I have to disagree, that can be very confusing. (and very powerfull BTW, you can change the default saving directory on the fly):

open a/b/c.xcf (named file) new unnamed.xcf
new unnamed1.xcf
save unnamed.xcf to d/e/f.xcf (file-chooser comes up) default saving directory comes d/e
save a/b/c.xcf ( CTRL+S file-chooser doe not appear as the file has yet a name)
default saving directory comes a/b nearly without notice save unnamed1.xcf

What happens? a/b is presented when I just manualy selected d/e in the previous opened file-chooser.

What about this?: If an image already has a filename associated to it, then open the Save file-chooser in that folder. Otherwise use the folder of the most recent save operation that implies the use of file-chooser.

Yours Pere

David Gowers
2007-10-05 01:59:23 UTC (over 17 years ago)

plug-in vs. script

A plugin is an executable - ie. it's a program you can run, like you can run Inkscape or GIMP.
A script is a set of text instructions which are run by a script interpreter (script-fu).

Thus, it's easy to tell the difference: * If it has a .scm extension, it's a script * Failing that, if you can open it in a text editor and it looks somewhat readable, it's a script.

On 10/5/07, Bettina Lechner wrote:

hi gimpusers!

please, what is the difference between a plug-in and a script? I am asking because I never know if I should copy a plug-in (e.g. from the registry.gimp.org - site) in to the plug-in or the script folder. I'ts always a try and error thing. And most of the times it's working when I am copying the plug-in into the scripts folder. but what is then a plug-in?

thanks for explanations, tina

--

newhouse - new media Bettina Karena Lechner
neue str 16, 2565 neuhaus
austria

mobil: +43 660 46 25 0 25 tel.: +43 26 74 878 72
fax: +43 2674 878 81
mailto:lechner@newhouse.at
www.newhouse.at
---
Der Anfang ist die Hälfte des Ganzen. Aristoteles (384 - 322 v. Chr)

Sven Neumann
2007-10-05 07:54:25 UTC (over 17 years ago)

remember last location for "save as", "save a copy", "save", "open"

Hi,

On Thu, 2007-10-04 at 17:12 +0200, Raphaël Quinet wrote:

On Tue, 02 Oct 2007 18:20:33 +0200, Sven Neumann wrote:

If an image already has a filename associated to it, then open the Save file-chooser in that folder. Otherwise use the folder of the most recent save operation. Would that make sense?

Definitely. That should be the default behavior.

If needed, the current behavior (always use the last directory) can be emulated with a temporary bookmark. The opposite is not true: if you are working on several images and want to save each of them in the directory they came from, then the current file-chooser behavior gets in the way.

Huh? In GIMP 2.4 the Save As file-chooser opens in the directory where you loaded the image from. Your last sentence seems to imply that this is the behavior that you desire and I don't see why you describe it as 'gets in the way'.

Sven

Michael Schumacher
2007-10-05 09:48:26 UTC (over 17 years ago)

plug-in vs. script

Von: "David Gowers"

Thus, it's easy to tell the difference: * If it has a .scm extension, it's a script * Failing that, if you can open it in a text editor and it looks somewhat readable, it's a script.

So unless we get some plugins written in e.g. Brainfuck or Piet, everything is a script?

SCNR, Michael

Kevin Cozens
2007-10-05 18:40:38 UTC (over 17 years ago)

plug-in vs. script

On 10/5/07, Bettina Lechner wrote:

please, what is the difference between a plug-in and a script? I am asking because I never know if I should copy a plug-in (e.g. from the registry.gimp.org - site) in to the plug-in or the script folder.

In answer to the main point of the Bettina's message, it is easy to know what you need to do with items you get from the plug-in registry, and in which directory to put the files so you will be able to use them in GIMP.

If the file ends in .scm, it is a Script-Fu script and it belongs in the scripts directory.

If the file ends in .c, it is a C-coded source file which needs to be compiled (typically using gimptool if its a single file). The compiled file is an executable that will go in the plug-ins directory.

Everything else will go in to the plug-ins directory.

David Gowers wrote: > A plugin is an executable - ie. it's a program you can run, like you > can run Inkscape or GIMP.
> A script is a set of text instructions which are run by a script > interpreter (script-fu).

For the most part, what David wrote is true. To muddy the waters a bit, when it comes to GIMP, text instructions in a file written using the Ruby, Perl, or Python languages, which makes them technically scripts, are plug-ins when it comes to GIMP and need to be put in the plug-ins directory. They should also be marked executable (when running GIMP under Linux).

Sven Neumann
2007-10-05 20:52:48 UTC (over 17 years ago)

plug-in vs. script

Hi,

On Fri, 2007-10-05 at 12:40 -0400, Kevin Cozens wrote:

If the file ends in .scm, it is a Script-Fu script and it belongs in the scripts directory.

Yes, that folder should have been called "script-fu" in the first place as only Script-Fu scripts go there. But for historical reasons it's "scripts".

Sven