Re: [gthumb-list] New renaming format
- From: Matthias Hawran <matthias hawran net>
- To: gthumb-list gnome org
- Subject: Re: [gthumb-list] New renaming format
- Date: Fri, 8 Jan 2010 14:52:38 +0100
2010/1/8 Dr. Michael J. Chudobiak
<mjc avtechpulse com>
On 01/08/2010 08:20 AM, Matthias Hawran wrote:
Hi,
Can anyone please explain me how the new renaming special characters
code work?
It's just the %attr{ attribute name } I can't figure out how to use.
I suppose you can use stuff like mtime or so, since the %d is gone.
For example:
####-%attr{ Embedded::Photo::DateTimeOriginal }.%E
For now, you need to browse the source code to understand what codes are available...
You example doesn't work for me.
I had looked at the code but it didn't help me much.
My guess:
- extensions/rename_series/dlg-rename-series.c:get_attribute_value() calls gth_file_data_get_attribute_as_string()
- gthumb/gth-file-data.c:gth_file_data_get_attribute_as_string() does the job, like calling g_file_info_get_attribute_as_string()
- then you're on GFileInfo &
GFileAttribute
I managed to get this working:
%attr{time::modified}_####%E
but time::modified gives you the seconds since 01/01/1970... not very practical... :/
Matthias
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]