Thread Locked This thread is locked - replies are not allowed.


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


Permlink Replies: 4 - Pages: 1 - Last Post: 10 Jun 21, 22:53 Last Post By: JeffTucker Threads: [ Previous | Next ]
AndreasHGW

Posts: 66
Registered: 21-Sep-2014
delete a keyword in all pictures (or replace)
Posted: 10 Jun 21, 09:41
 
Hello

it is possible to set keywords for several images at the same time very easy. But I can not find the same functionality for deleting a keyword in all pictures.

Or even better I would like to replace a keyword with another in all pictures at the same time. Is this possible or possible to implement in a future release?

best regards
Andreas
Laza

Posts: 2,191
Registered: 6-Sep-2005
Re: delete a keyword in all pictures (or replace)
Posted: 10 Jun 21, 09:46   in response to: AndreasHGW in response to: AndreasHGW
 
I move this question to the General discussion as it's not skin-related.
RobM

Posts: 3,490
Registered: 4-Aug-2006
Re: delete a keyword in all pictures (or replace)
Posted: 10 Jun 21, 11:01   in response to: AndreasHGW in response to: AndreasHGW
 
See this post for the system console code to do this.

Edited by: RobM on 10 Jun 2021, 10:04
The code is also posted in the wiki under console snippets

Edited by: RobM on 10 Jun 2021, 10:08
Works on JAlbum from version 17.1

Edited by: mrag on 10 Jun 2021, 13:19 to correct link to "this post"
AndreasHGW

Posts: 66
Registered: 21-Sep-2014
Re: delete a keyword in all pictures (or replace)
Posted: 10 Jun 21, 22:18   in response to: RobM in response to: RobM
 
Thanks for the script, in some cases it works fine. But in some cases I have problems.

I have keywords like 1963, 1963-2000, ...

I want to replace 1963 with 1961-1970. This works fine for pictures with keywords 1963 only.
But pictures with the keyword 1963-2000 will be replaced with 1961-1970-2000.

How can I prevent this?
JeffTucker

Posts: 7,384
Registered: 31-Jan-2006
Re: delete a keyword in all pictures (or replace)
Posted: 10 Jun 21, 22:53   in response to: AndreasHGW in response to: AndreasHGW
 
Legend
Forum admins
Helpful Answer
Correct Answer

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