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


Permlink Replies: 19 - Pages: 2 [ 1 2 | Next ] - Last Post: 23 Jul 18, 11:29 Last Post By: davidekholm
hspagnolo

Posts: 101
Registered: 23-Mar-2016
Title and comment
Posted: 16 Jul 18, 11:32
 
  Click to reply to this thread Reply
Hello,

Did there is a way to duplicate the content of the comments into the titles and the inverse (depending what has been filed by the user). Eg. I have entered only comments for my pictures and I have left the titles emptied.
Can I do this automatically ?

Thanks and regards
Henri
JeffTucker

Posts: 8,039
Registered: 31-Jan-2006
Re: Title and comment
Posted: 16 Jul 18, 13:21   in response to: hspagnolo in response to: hspagnolo
 
  Click to reply to this thread Reply
AFAIK, there's no way to do that automatically.

(Might make for an interesting external tool - offer to swap comments for titles. Perhaps with an option to do it for only the current folder, or for all folders. Maybe not apply it to folder titles/descriptions.)
hspagnolo

Posts: 101
Registered: 23-Mar-2016
Re: Title and comment
Posted: 16 Jul 18, 13:57   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
Thanks. Not a problem to not apply to folders (this is quick to copy and paste). But for images... I would like to do that for almost 3800 images.
How to have such an external tool?

Regards
Henri
JeffTucker

Posts: 8,039
Registered: 31-Jan-2006
Re: Title and comment
Posted: 16 Jul 18, 14:01   in response to: hspagnolo in response to: hspagnolo
 
  Click to reply to this thread Reply
hspagnolo wrote:
How to have such an external tool?

Someone would have to write the code for the tool. Not simple.
AndreWolff

Posts: 1,289
Registered: 14-Dec-2007
Re: Title and comment
Posted: 16 Jul 18, 16:21   in response to: hspagnolo in response to: hspagnolo
 
  Click to reply to this thread Reply
hspagnolo wrote:
Did there is a way to duplicate the content of the comments into the titles and the inverse (depending what has been filed by the user). Eg. I have entered only comments for my pictures and I have left the titles emptied.
What is the problem?

In most skins you can choose the type of description to show on a a slide page or under a thumbnail: Title and / or Keywords and / or Comment. I use in my pictures also only comment entered in Adobe Lightroom 6.
hspagnolo

Posts: 101
Registered: 23-Mar-2016
Re: Title and comment
Posted: 16 Jul 18, 17:49   in response to: AndreWolff in response to: AndreWolff
 
  Click to reply to this thread Reply
Thank you. The problem is that titles and comments are not used the same and especially when sharing on Facebook, which uses titles. As explained into my previous post, I enter texts into comments and leave titles emptied. Now I would like to duplicated the content of comments into titles, but not manually.
AndreWolff

Posts: 1,289
Registered: 14-Dec-2007
Re: Title and comment
Posted: 16 Jul 18, 17:52   in response to: hspagnolo in response to: hspagnolo
 
  Click to reply to this thread Reply
hspagnolo wrote:
The problem is that titles and comments are not used the same and especially when sharing on Facebook, which uses titles.
That depends also on the skin which comment field is used for facebook.
Which skin are you using?
hspagnolo

Posts: 101
Registered: 23-Mar-2016
Re: Title and comment
Posted: 16 Jul 18, 17:58   in response to: AndreWolff in response to: AndreWolff
 
  Click to reply to this thread Reply
Turtle and Photoblogger
davidekholm

Posts: 3,442
Registered: 18-Oct-2002
Re: Title and comment
Posted: 18 Jul 18, 13:33   in response to: hspagnolo in response to: hspagnolo
 
  Click to reply to this thread Reply
hspagnolo wrote:
Hello,

Did there is a way to duplicate the content of the comments into the titles and the inverse (depending what has been filed by the user). Eg. I have entered only comments for my pictures and I have left the titles emptied.
Can I do this automatically ?

Thanks and regards
Henri


It's actually rather easy if you're willing to write one of two lines of code:
1) Open jAlbum's "tools" folder and copy the file "Set comments to file names.bsh". Name the copy "Copy comments to titles.bsh"
2) Edit this copy in a text editor (jAlbum has one, just hit CTRL+E)
3) Edit line 15 which reads:
ao.setComment(ao.getName());
Change it to the following:
ao.setTitle(ao.getComment());
If you rather prefer to swap titles and comments, you can write code like this:
String comment = ao.getComment();
ao.setComment(ao.getTitle());
ao.setTitle(comment);


"ao" is the current album object and this tool iterates through all album objects of an open project, including those in sub folders. It doesn't affect folders though. To also do so, simply delete the "else" word on the line before.
davidekholm

Posts: 3,442
Registered: 18-Oct-2002
Re: Title and comment
Posted: 18 Jul 18, 13:35   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
If you want your own tools to survive jAlbum updates (reinstalling jAlbum), then put them in a "tools" folder under jAlbum's config folder (see Tools->Open directories->Config directory)
hspagnolo

Posts: 101
Registered: 23-Mar-2016
Re: Title and comment
Posted: 18 Jul 18, 16:07   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
Thanks David, I will try this ☺

Regards
Henri
hspagnolo

Posts: 101
Registered: 23-Mar-2016
Re: Title and comment
Posted: 18 Jul 18, 16:17   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
Hi David,

Sorry, but the "Set comments to file names.bsh" does not exists on my MAC under the Tools folder?

Thanks and regards
Henri
RobM

Posts: 3,815
Registered: 4-Aug-2006
Re: Title and comment
Posted: 18 Jul 18, 17:52   in response to: hspagnolo in response to: hspagnolo
 
  Click to reply to this thread Reply
JAlbum’s tools folder is within the application itself, with jAlbum open use SHIFT + CMD + P and then navigate to the tools subfolder.
hspagnolo

Posts: 101
Registered: 23-Mar-2016
Re: Title and comment
Posted: 18 Jul 18, 17:57   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
This is where I am, but no such file, sorry
hspagnolo

Posts: 101
Registered: 23-Mar-2016
Re: Title and comment
Posted: 18 Jul 18, 18:00   in response to: hspagnolo in response to: hspagnolo
 
  Click to reply to this thread Reply
Here is the liste of files within this folder:
/Applications/jAlbum.app/Contents/Java/tools/Apply ordering to subfolders.bsh
/Applications/jAlbum.app/Contents/Java/tools/Batch make album.bsh
/Applications/jAlbum.app/Contents/Java/tools/Batch rename files.bsh
/Applications/jAlbum.app/Contents/Java/tools/Cache image ordering.bsh
/Applications/jAlbum.app/Contents/Java/tools/Convert upper case to lower case.bsh
/Applications/jAlbum.app/Contents/Java/tools/Copy file metadata to xmp.bsh
/Applications/jAlbum.app/Contents/Java/tools/Correct image orientation.bsh
/Applications/jAlbum.app/Contents/Java/tools/Import album folder as album project.bsh
/Applications/jAlbum.app/Contents/Java/tools/jAlbum core update.bsh
/Applications/jAlbum.app/Contents/Java/tools/Perform garbage collection.bsh
/Applications/jAlbum.app/Contents/Java/tools/Rename slide variables.bsh
/Applications/jAlbum.app/Contents/Java/tools/Replace spaces with dashes.bsh
/Applications/jAlbum.app/Contents/Java/tools/Reset file date to camera date.bsh
/Applications/jAlbum.app/Contents/Java/tools/Reset folder date to last file date.bsh
/Applications/jAlbum.app/Contents/Java/tools/Reset Jalbum to factory defaults.bsh
/Applications/jAlbum.app/Contents/Java/tools/Sample tool.bsh
/Applications/jAlbum.app/Contents/Java/tools/Server mode with upload.bsh
/Applications/jAlbum.app/Contents/Java/tools/Server mode.bsh
/Applications/jAlbum.app/Contents/Java/tools/Show supported file types.bsh
/Applications/jAlbum.app/Contents/Java/tools/Zip project folder.bsh
Legend
Forum admins
Helpful Answer
Correct Answer

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