Topic Options
Rate This Topic
#54710 - 07/23/10 01:21 PM Copy IMatch Categories into IPTC categories
Kristof Offline
Newbie

Registered: 01/28/05
Posts: 8
Hello!

I am trying to modify the Copy IMatch Categories into IPTC categories (supplied with IMatch) to use a different hierarchy separator. I.e. to use | instead of . (dot).

I have had a look at the script, but could not figure out where the separator is added. Is it possible to perform a change like this?

Thanks,

Kristof

Top
#54712 - 07/23/10 02:54 PM Re: Copy IMatch Categories into IPTC categories [Re: Kristof]
John_Zeman Online   content
Addict

Registered: 06/19/06
Posts: 688
After a quick glance at the script, I believe you can't find where the . separator is processed in that script because it's not. Instead the script simply uses the full name of each category which of course includes the . separators. So you would need to process each category name as it's read to replace each . with a | before writing to the IPTC record.
_________________________
John Zeman
Loc: Western Iowa, USA
JohnZeman.com

Top
#54713 - 07/23/10 03:26 PM Re: Copy IMatch Categories into IPTC categories [Re: Kristof]
khodadad Moderator Online   content
Moderator and Scripting Guru
Oldtimer

Registered: 06/10/05
Posts: 3942
Locate the line:

Code:
cats(ci) = c.FullName


and replace it with:

Code:
cats(ci) = replace(c.FullName, ".", "|") 
_________________________
Khodadad
Look here for scripts and to learn scripting.


Top
#54714 - 07/23/10 04:13 PM Re: Copy IMatch Categories into IPTC categories [Re: khodadad]
Kristof Offline
Newbie

Registered: 01/28/05
Posts: 8
Thank you very much.

I was trying to make the changes in the cats(ci) after converting to string with CStr(cats(ci)) but did not succeed. Replacing before the conversion as you suggested was the right solution.

Regards,

Kristof

Top


Moderator:  DeKa42, khodadad, Mario, Richard, sinus 
New General Topics
Rename and IPTC Data
by claudermilk
1 second ago
Ferdinands Create-Country-Provi
nce-City-Location Categories Script

by Ferdinand_Paris
Today at 12:36 PM
Duplicate image entries when relocating database
by helpmeivefallen
Today at 04:07 AM
IMatch-Smugmug integration script v1.3.00
by jch2103
Today at 02:47 AM
IMSmugTools - populate thumbnails
by jch2103
Today at 02:42 AM
Version Check
IMatch 3.6.0.94
released on 14.05.2010
Forum Stats
4296 Members
12 Forums
7740 Topics
50370 Posts

Max Online: 160 @ 04/02/08 10:02 AM
Top Posters
Mario 10413
khodadad 3942
Richard 3518
BenAW 2301
claudermilk 2031
Newest Members
barjo07, Madon, AKoerber, Markus_M, Nigelinlondon
4296 Registered Users
Who's Online
4 registered (claudermilk, emalvick, Shenstone, speedskater), 13 Guests and 2 Spiders online.
Key: Admin, Global Mod, Mod
Links
photools.com Wiki
photools.com
Release Notes
Installation Instructions