Permlink Replies: 27 - Pages: 2 [ 1 2 | Next ] - Last Post: 28-Jul-2006 04:44 Last Post By: jimberry
MarkE

Posts: 4,564
Registered: 04/24/06
Automatically process sub-Projects
Posted: 25-Jul-2006 11:25
  Click to reply to this thread Reply
David,

I have a number of albums where I use different styles of a particular skin, or even different skins, for different folders. Each relevant folder has its own project file. At the moment, making the albums is a manual effort, and care must be taken to run every project in the correct sequence.

Is there any chance of automatically detecting and running projects? As an example :

I have a top level folder with master.jap. I have a sub-folder with folder1.jap. I would like to run master.jap which will process the relevant files and folders as normal, but when it detects folder1.jap, it pauses … while folder1.jap is processed. Once that is finished, master.jap continues on its merry way.

Hope this makes sense!

Cheers,

Mark
jimberry

Posts: 7,444
Registered: 08/30/04
Re: Automatically process sub-Projects
Posted: 25-Jul-2006 12:10   in response to: MarkE in response to: MarkE
  Click to reply to this thread Reply
This may only work in BluPlusPlus, but I think you can change styles by putting

style=black.css

in a variables.properties file in the image sub-folder to which you want to apply a different style.
Full instructions in Robert's BPP documentation.

I don't believe you can change skin this way, although that was the subject of a feature request some months ago.

I have, in the not too distant past, tried different .jap files in sub-folders and processing each one separately, then processing the parent folder last.
This is, as you note, cumbersome and it would be nice to be able to have JAlbum do the processing in one pass. I suspect that the logic for this would be rather complex. Is there a M$ equivalent of kron that would allow you to automate the running of several passes of JAlbum?

Message was edited by: jimberry

MarkE

Posts: 4,564
Registered: 04/24/06
Re: Automatically process sub-Projects
Posted: 25-Jul-2006 12:49   in response to: jimberry in response to: jimberry
  Click to reply to this thread Reply
This may only work in BluPlusPlus, but I think you
can change styles by putting

style=black.css

in a variables.properties file in the image
sub-folder to which you want to apply a different
style.
Full instructions in Robert's BPP documentation.


Sounds interesting, but as you said, "it would be nice to be able to have JAlbum do the processing in one pass" and it would mean a user would be dealing with the standard JAlbum GUI and not have to worry about variables.properties files ...

Mark
jGromit

Posts: 31,575
Registered: 01/31/06
Re: Automatically process sub-Projects
Posted: 25-Jul-2006 14:25   in response to: MarkE in response to: MarkE
  Click to reply to this thread Reply
I agree that that would be a useful feature - I, too, maintain separate project files at various levels. In my case, I'm using Chameleon for everything, but I want the folder icons and thumbnails handled differently at my main index level, so I need projects with slightly different options selected.

I also think it would lead to some wonderful "HELP - I've loused up my albums and I don't know what I did!" posts from folks who start fiddling with a different skin at some lower directory level, then forget that they accidentally clicked "Yes" when JAlbum asked if it should save the project. Hours of entertainment! :D
MarkE

Posts: 4,564
Registered: 04/24/06
Re: Automatically process sub-Projects
Posted: 25-Jul-2006 15:29   in response to: jGromit in response to: jGromit
  Click to reply to this thread Reply
I also think it would lead to some wonderful "HELP -
I've loused up my albums and I don't know what I
did!" posts from folks who start fiddling with a
different skin at some lower directory level, then
forget that they accidentally clicked "Yes" when
JAlbum asked if it should save the project. Hours of
entertainment! :D

Oh Joy! And if they're looking for sympathy ... ha!

(I can say that ONLY because I've been there :))

Being serious though, I think this would be a major, major benefit for JAlbum users ... the ability to more easily mix skins to suit the story to be told ....
jimberry

Posts: 7,444
Registered: 08/30/04
Re: Automatically process sub-Projects
Posted: 26-Jul-2006 02:19   in response to: MarkE in response to: MarkE
  Click to reply to this thread Reply
Wouldn't it be simpler to run a batch file with a series of commands like

java -Xmx400M -jar JAlbum.jar -projectFile grandchild1_1.jap
java -Xmx400M -jar JAlbum.jar -projectFile grandchild1_2.jap
java -Xmx400M -jar JAlbum.jar -projectFile child1.jap
java -Xmx400M -jar JAlbum.jar -projectFile grandchild2_1.jap
java -Xmx400M -jar JAlbum.jar -projectFile grandchild2_2.ja
java -Xmx400M -jar JAlbum.jar -projectFile child2.jap
java -Xmx400M -jar JAlbum.jar -projectFile parent.jap

(parent, child, grandchild references are to folder hierarchy of course)

It might even be possible to write a JAlbum tool to do this?
alan927

Posts: 2,658
Registered: 06/18/05
Re: Automatically process sub-Projects
Posted: 26-Jul-2006 02:35   in response to: jimberry in response to: jimberry
  Click to reply to this thread Reply
Uh oh... another tool? ;-)
jimberry

Posts: 7,444
Registered: 08/30/04
Re: Automatically process sub-Projects
Posted: 26-Jul-2006 02:49   in response to: alan927 in response to: alan927
  Click to reply to this thread Reply
I don't know if it will work, I'll try it as a batch file first ;-)
jimberry

Posts: 7,444
Registered: 08/30/04
Re: Automatically process sub-Projects
Posted: 26-Jul-2006 08:36   in response to: jimberry in response to: jimberry
  Click to reply to this thread Reply
Attachment readme.pdf (76,0 KB)
Well, I have managed to automate four runs of JAlbum with the following batch file


@echo off
echo Hello this is a test batch file
pause
java -Xmx400M -jar "E:\Program Files\JAlbum\JAlbum.jar" -projectFile simple.jap -appendImages
pause
java -Xmx400M -jar "E:\Program Files\JAlbum\JAlbum.jar" -projectFile bpp.jap -appendImages
pause
java -Xmx400M -jar "E:\Program Files\JAlbum\JAlbum.jar" -projectFile bppgrantham.jap
pause
java -Xmx400M -jar "E:\Program Files\JAlbum\JAlbum.jar" -projectFile gallery.jap -appendImages
pause


The same set of images was used to produce two sub-galleries, one using the Simple skin and one using the
BluPlusPlus skin, with the top level index using the Chameleon skin.

The first pass uses simple.jap to create a sub-album with the Simple skin
The second pass uses bpp.jap to create a sub-album with the BluPlusPlus skin
The third pass uses bppgrantham.jap to recreate a sub-sub-album of the second sub-album, using a different
different XBorderFilter frame.
The fourth pass uses gallery.jap to create the top level index using the Chameleon skin.

You can see the result at
http://www.jimberry.org/batchtest/Gallery/index.htm

More details in the readme.pdf attached

MarkE

Posts: 4,564
Registered: 04/24/06
Re: Automatically process sub-Projects
Posted: 26-Jul-2006 08:55   in response to: jimberry in response to: jimberry
  Click to reply to this thread Reply

Jim,

Allbum doesn't go beyond the top level ....

Highly commendable work, Jim :D

However, this still involves thinking and I personally would prefer JAlbum to do all this behind the scenes.... any thoughts, if you're reading this, Dave?!

Cheers,

Mark
jimberry

Posts: 7,444
Registered: 08/30/04
Re: Automatically process sub-Projects
Posted: 26-Jul-2006 09:39   in response to: MarkE in response to: MarkE
  Click to reply to this thread Reply
Allbum doesn't go beyond the top level ....
Not sure what you are saying here. I just checked - from the given URL, I was able to go down 6 levels to
http://www.jimberry.org/batchtest/Gallery/bluplusplus/Bass_Coast/inverloch/album_1/slides/F10100061.htm
and up one level to my home page?

However, this still involves thinking and I
personally would prefer JAlbum to do all this behind
the scenes.... any thoughts, if you're reading this,
Dave?!
All the thinking required is in making the .jap files which you would have to do in any case.
MarkE

Posts: 4,564
Registered: 04/24/06
Re: Automatically process sub-Projects
Posted: 26-Jul-2006 09:55   in response to: jimberry in response to: jimberry
  Click to reply to this thread Reply
Allbum doesn't go beyond the top level ....
Not sure what you are saying here. I just checked -

Ah! First attempt gave error page when the folder icon was clicked ... Second attempt OK!

All the thinking required is in making the .jap files
which you would have to do in any case.

Jim, not quite true :) A batch file need to be created with the correct path/folder/jap names, and while that is not a big issue in itself (it may be for some users), if folder names change etc the batch file would need to be edited.

I'm not being negative here (I'm going to implement your idea :D), but I'm keen to convince Dave to put it in v7 as a major JAlbum enhancement!

Cheers,

Mark
jimberry

Posts: 7,444
Registered: 08/30/04
Re: Automatically process sub-Projects
Posted: 26-Jul-2006 10:21   in response to: MarkE in response to: MarkE
  Click to reply to this thread Reply
Ah! First attempt gave error page when the folder
icon was clicked ... Second attempt OK!

Hmm..... that's happened to me a few times. Often the second attempt works straight away. Puzzling.

All the thinking required is in making the .jap
files
which you would have to do in any case.

Jim, not quite true :) A batch file need to be
created with the correct path/folder/jap names, and
while that is not a big issue in itself (it may be
for some users), if folder names change etc the batch
file would need to be edited.


Why would you want to change the folder names for the jap files? If the directory structure for the images and/or albums change, then you will have to account for that in the jap files themselves, whether or not you use a batch file or a super-enhanced JAlbum (I suspect v17 rather than v7;-))
Of course it is up to David, but I'm not convinced that the minor (my view only, of course) benefit of having it in JAlbum would justify the programming effort required to implement it. I'm pretty sure that the actual programming would be a lot more complicated than it would appear from the simple batch file (ICBWOC).
I suppose I am being negative here, but how do we tell JAlbum how many recursions to run? How do we tell which jap files to use, in which order? Perhaps by supplying a text file with almost as much complexity as the batch file ;-)
MarkE

Posts: 4,564
Registered: 04/24/06
Re: Automatically process sub-Projects
Posted: 26-Jul-2006 11:34   in response to: jimberry in response to: jimberry
  Click to reply to this thread Reply
then you will have to account
for that in the jap files themselves, whether or not
you use a batch file or a super-enhanced JAlbum (I
suspect v17 rather than v7;-))

Yeah, forgot about that!

ICBWOC .... enlighten me!

I suppose I am being negative here, but how do we
tell JAlbum how many recursions to run? How do we
tell which jap files to use, in which order? Perhaps
by supplying a text file with almost as much
complexity as the batch file ;-)

Got me there :D

Mark
MarkE

Posts: 4,564
Registered: 04/24/06
Re: Automatically process sub-Projects
Posted: 26-Jul-2006 11:59   in response to: jimberry in response to: jimberry
  Click to reply to this thread Reply
java -Xmx400M -jar "E:\Program
Files\JAlbum\JAlbum.jar" -projectFile simple.jap
-appendImages

Jim,

Getting my teeth into this! Where can I find any info regarding the parameters used/available? ie what does
"-appendImages" do and what others are available?

Answering my own questions, methink : :)

With regard to "-appendImages", I guess it for sub-folders, in that your grantham sub-sub-folder has no sub-folders itself)

See C:\Program Files\JAlbum\help\consolemode.html, but there's no more help describing the parameters (though many are self-explanatory).

Mark

Great documentation, by the way, Jim!

Message was edited by: Mark Worthington

Legend
Forum admins
Helpful Answer
Correct Answer

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