This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 30 - Pages: 3 [ 1 2 3 | Next ] - Last Post: 27 Jun 21, 18:42 Last Post By: AndreWolff
AndreWolff

Posts: 2,201
Registered: 14-Dec-2007
Open the corresponding folder output directory
Posted: 25 Jun 21, 14:36
 
  Click to reply to this thread Reply
Menu item Tools / Open Directory / Output Directory opens in an album with folders not the corresponding output directory of the current folder displayed in the Explorer but always the top root directory.

Please change this so that the corresponding output directory of the current folder displayed in the Explorer is opened, because a user has to add sometimes extra items to this output folder like a map or gps track if I add a new folder.

You could if you wish add in this case an extra item ‘Open root output directory’.

Edited by: AndreWolff on 25 Jun 2021, 15:51
JeffTucker

Posts: 8,136
Registered: 31-Jan-2006
Re: Open the corresponding folder output directory
Posted: 25 Jun 21, 14:46   in response to: AndreWolff in response to: AndreWolff
 
  Click to reply to this thread Reply
I vote "no" on this requested change.

The image and output directories are defined under Settings > General, and when you ask the application to open one of those directories, those are the directories it should be opening.
AndreWolff

Posts: 2,201
Registered: 14-Dec-2007
Re: Open the corresponding folder output directory
Posted: 25 Jun 21, 15:58   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
JeffTucker wrote:
I vote "no" on this requested change.
I know that you are always against all my proposals by definition, but lucky enough you are not the decision maker!
JeffTucker

Posts: 8,136
Registered: 31-Jan-2006
Re: Open the corresponding folder output directory
Posted: 25 Jun 21, 16:19   in response to: AndreWolff in response to: AndreWolff
 
  Click to reply to this thread Reply
AndreWolff wrote:
I know that you are always against all my proposals....

Only the bad ones.
RobM

Posts: 3,906
Registered: 4-Aug-2006
Re: Open the corresponding folder output directory
Posted: 25 Jun 21, 17:00   in response to: AndreWolff in response to: AndreWolff
 
  Click to reply to this thread Reply
AndreWolff wrote:
Menu item Tools / Open Directory / Output Directory opens in an album with folders not the corresponding output directory of the current folder displayed in the Explorer but always the top root directory.
The output directory from that option is, and has always been, the root output directory.
What you really want to do is, on the folder in explore view, use the contextual menu > Show in file system
AndreWolff

Posts: 2,201
Registered: 14-Dec-2007
Re: Open the corresponding folder output directory
Posted: 25 Jun 21, 17:17   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
RobM wrote:
The output directory from that option is, and has always been, the root output directory.
So what?
What you really want to do is, on the folder in explore view, use the contextual menu > Show in file system
This does not open the output directory, but this image directory.
RobM

Posts: 3,906
Registered: 4-Aug-2006
Re: Open the corresponding folder output directory
Posted: 25 Jun 21, 17:27   in response to: AndreWolff in response to: AndreWolff
 
  Click to reply to this thread Reply
AndreWolff wrote:
RobM wrote:
The output directory from that option is, and has always been, the root output directory.
So what?
What you really want to do is, on the folder in explore view, use the contextual menu > Show in file system
This does not open the output directory, but this image directory.
I’d have thought adding files to the project better than the album. It keeps all of the files used together, makes it easier to move projects around etc. It also means the files survive a deletion of the album if it is completely remade.
AndreWolff

Posts: 2,201
Registered: 14-Dec-2007
Re: Open the corresponding folder output directory
Posted: 25 Jun 21, 18:35   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
RobM wrote:
I’d have thought adding files to the project better than the album. It keeps all of the files used together, makes it easier to move projects around etc. It also means the files survive a deletion of the album if it is completely remade

1. I don't know what this remark has to do with this feature request.
2. Saving this extra files in the image folders does not help, because my files are required in the folder output directory where they are called from the index.html file.

But I agree with you that it would be nice if for instance all files in an out folkder would be copied to the folder output directory.

Edited by: AndreWolff on 25 Jun 2021, 19:53
RobM

Posts: 3,906
Registered: 4-Aug-2006
Re: Open the corresponding folder output directory
Posted: 26 Jun 21, 00:23   in response to: AndreWolff in response to: AndreWolff
 
  Click to reply to this thread Reply
AndreWolff wrote:
RobM wrote:
I’d have thought adding files to the project better than the album. It keeps all of the files used together, makes it easier to move projects around etc. It also means the files survive a deletion of the album if it is completely remade

1. I don't know what this remark has to do with this feature request.

It negates the need for the request. You add the file to the project folder in question, then the skin copies it to the output directory. See http://jalbum.net/forum/message.jspa?messageID=344570#344570 for code to do this.
2. Saving this extra files in the image folders does not help, because my files are required in the folder output directory where they are called from the index.html file.
See above answer to 1
davidekholm

Posts: 3,974
Registered: 18-Oct-2002
Re: Open the corresponding folder output directory
Posted: 26 Jun 21, 15:32   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
I don't recommend putting files manually under jAlbum's output directory structure, but here's a script that opens the corresponding output folder. You can put it inside a file called "tools/Open corresponding output directory.groovy":
Desktop.getDesktop().open(new AlbumSynchronizer(engine).translate(currentFolder));
AndreWolff

Posts: 2,201
Registered: 14-Dec-2007
Re: Open the corresponding folder output directory
Posted: 26 Jun 21, 16:04   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
davidekholm wrote:
I don't recommend putting files manually under jAlbum's output directory structure,
I agree with you, so you can prevent this by implementing this proposal.
but here's a script that opens the corresponding output folder. You can put it inside a file called "tools/Open corresponding output directory.groovy":
Desktop.getDesktop().open(new AlbumSynchronizer(engine).translate(currentFolder));

This does not work, I get an error message:
groovy.lang.MissingPropertyException: No such property: currentFolder for class: Open_corresponding_output_directory in Open corresponding output directory.groovy
The used groovy file has been attached.
davidekholm

Posts: 3,974
Registered: 18-Oct-2002
Re: Open the corresponding folder output directory
Posted: 26 Jun 21, 16:24   in response to: AndreWolff in response to: AndreWolff
 
  Click to reply to this thread Reply
Ah, "currentFolder" only works from within the system console. I should probably address that, but for now, change "currentFolder" to window.albumExplorer.getCurrentFolder()
AndreWolff

Posts: 2,201
Registered: 14-Dec-2007
Re: Open the corresponding folder output directory
Posted: 26 Jun 21, 17:18   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
davidekholm wrote:
Ah, "currentFolder" only works from within the system console. I should probably address that, but for now, change "currentFolder" to window.albumExplorer.getCurrentFolder()
Yes, that works! Thanks!

But if it is so simple why don't you add this line of code to the jAlbum program under a menu item:
Tools / Open Directories / Folder output directory , so that everybody can use this?
davidekholm

Posts: 3,974
Registered: 18-Oct-2002
Re: Open the corresponding folder output directory
Posted: 27 Jun 21, 10:32   in response to: AndreWolff in response to: AndreWolff
 
  Click to reply to this thread Reply
AndreWolff wrote:
davidekholm wrote:
Ah, "currentFolder" only works from within the system console. I should probably address that, but for now, change "currentFolder" to window.albumExplorer.getCurrentFolder()
Yes, that works! Thanks!

But if it is so simple why don't you add this line of code to the jAlbum program under a menu item:
Tools / Open Directories / Folder output directory , so that everybody can use this?


I might do so, but I hesitate as it encourages going into folders where users really shouldn't go. Some users for instance modify the generated html files - a recipe for trouble.
RobM

Posts: 3,906
Registered: 4-Aug-2006
Re: Open the corresponding folder output directory
Posted: 27 Jun 21, 10:57   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
davidekholm wrote:

But if it is so simple why don't you add this line of code to the jAlbum program under a menu item:
Tools / Open Directories / Folder output directory , so that everybody can use this?

I might do so, but I hesitate as it encourages going into folders where users really shouldn't go. Some users for instance modify the generated html files - a recipe for trouble.

If you do decide to include it, please consider posting it as an external tool instead of a fixed item. That way only the few people wanting to use it will see it in the menu list.
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums