Search found 55 matches

by fenschop
28 Aug 18 10:23
Forum: Photo Supreme
Topic: Import iPhone images excluding Whatsapp (lores)
Replies: 1
Views: 231

Import iPhone images excluding Whatsapp (lores)

Is there a way to automatically exclude certain images form import. As the family iPhones take over more and more from the EOSes, I feel the need to import those as well, but not the big mess of images that enter the phone through Whatsapp or other lores sources. Selection could happen on filename b...
by fenschop
22 Aug 18 9:30
Forum: Photo Supreme
Topic: Short camera model in Rename script
Replies: 4
Views: 356

Re: Short camera model in Rename script

Is there a good reference to the syntax (like you applied above). My current approach is trying to find examples on this forum.
by fenschop
22 Aug 18 8:34
Forum: Photo Supreme
Topic: Short camera model in Rename script
Replies: 4
Views: 356

Short camera model in Rename script

Inspired by discussion on naming conventions by Stephen and snowman1 here: https://forum.idimager.com/viewtopic.php?f=57&t=27263#p120480 I decided to change my naming and include the camera model. However this text is long, like "Canon EOS 450D" and I prefer to have it shorter, like "450D". Are ther...
by fenschop
20 Aug 18 8:38
Forum: Photo Supreme
Topic: Import postprocessing script location
Replies: 19
Views: 1319

Re: Import postprocessing script location

Thanks! Because the workaround depends on the exact format of the Serializer behind AsString and it assumes that there is at least one more property after FileName. And of course the search strings should better not occur in filenames. TDownloadImage exported makes more robust code.
by fenschop
20 Aug 18 7:15
Forum: Photo Supreme
Topic: Import postprocessing script location
Replies: 19
Views: 1319

Re: Import postprocessing script location

I got my script running by deploying a workaround to parse the filename from the serialized object by the AsString method. See https://forum.idimager.com/viewtopic.php?f=57&t=27263#p120460 It looks like the FileName property can't be extracted in a nice way, as the Selected.Items[j] are of a type th...
by fenschop
17 Aug 18 23:19
Forum: Photo Supreme
Topic: Import postprocessing script location
Replies: 19
Views: 1319

Re: Import postprocessing script location

The Selected.Items in the importer seem to be (childs of) TXOMObject, and the attributes are likely stored in the props array of this object as a kind of key, value pairs, of type TOMProp. On TOMProp I can't find documentation. I guessed a few fields, but the most promising appear to be empty string...
by fenschop
17 Aug 18 21:37
Forum: Photo Supreme
Topic: Import postprocessing script location
Replies: 19
Views: 1319

Re: Import postprocessing script location

A lot of nice thoughts about filename conventions. Much simpler than my always slightly complicated solutions. But see it from this perspective: As a professional SW guy I don't want to feel defeated by a scripting environment in PSu4! Also the suggestion to cast it to TImageItem does not work. It g...
by fenschop
17 Aug 18 12:10
Forum: Photo Supreme
Topic: Import postprocessing script location
Replies: 19
Views: 1319

Re: Import postprocessing script location

My naming convetion is: YYYYMMDD_HHNNSS. However with multiple photos in same second, I want to extend this with "centiseconds" (CC) information, to be able to get the right sorting. Automatic windows extensions like _1 or _001 did not always adhere to time order I discovered. So: YYYYMMDD_HHNNSS_CC...
by fenschop
17 Aug 18 9:26
Forum: Photo Supreme
Topic: Import postprocessing script location
Replies: 19
Views: 1319

Re: Import postprocessing script location

OK. Makes sense. The FileName contained in the Selected object is at the new downloaded location. The suggested FileList identifier is not available. To get this working I need to create a new Imagetype object to rename it and to update lensinfo metadata. Do you exepct the following to work? Origina...
by fenschop
16 Aug 18 19:19
Forum: Photo Supreme
Topic: Import postprocessing script location
Replies: 19
Views: 1319

Re: Import postprocessing script location

Hi Hert,

TDownloadImage and TDownloadProfile are unknown identifiers. I hope you are able to take a deeper look into the source code.

BTW, is there something of reflection or are there ClassType methods available in this variant of object Pascal?

Frank
by fenschop
16 Aug 18 12:52
Forum: Photo Supreme
Topic: Import postprocessing script location
Replies: 19
Views: 1319

Re: Import postprocessing script location

Thanks Hert,

I can proceed testing tonight. Thanks on the headsup on Selected versus FileList. I will take a look.

I observed that TDownloadImage is not mentioned in the API documentation. (but as long as it has the property FileName, I can proceed converting my script).

Frank
by fenschop
15 Aug 18 17:26
Forum: Photo Supreme
Topic: Import postprocessing script location
Replies: 19
Views: 1319

Re: Import postprocessing script location

With some persistence I was able to "Say"the content of Selected.Items[0].AsString. It seems to be populated with a TXOMObjectStreamerObject that may have a member FileName. Back to the API docs.
PSu4-D1.png
PSu4-D1.png (41.84 KiB) Viewed 843 times
... No, I can't make sense of the screenshot.
by fenschop
15 Aug 18 17:13
Forum: Photo Supreme
Topic: Import postprocessing script location
Replies: 19
Views: 1319

Import postprocessing script Selected.Strings

Thanks Hert, it does the trick! Can I continue to use this thread for further questions getting the script running? In IDIV5 download scripts and scripts ran form UI got their images or filenames served in a different way. See a snippet of my old code: //Downloader script: Selected.Strings is a TTnt...
by fenschop
15 Aug 18 12:13
Forum: Photo Supreme
Topic: Import postprocessing script location
Replies: 19
Views: 1319

Import postprocessing script location

Hi, I am in the process of moving over form idimager V5 to Photosupreme 4. For IDimager5 I had a post-processing script in the downloader that basically renames timestamp file names when they were not unique due to multiple photo's taken in the same second. So name_001 and name_002 to a prefix with ...
by fenschop
11 May 10 20:50
Forum: Product Related Questions
Topic: LensInfo downloader script fails on JPG+RAW pictures
Replies: 5
Views: 534

Re: LensInfo downloader script fails on JPG+RAW pictures

Solved!

TCatalogue.AddFile2 fails on images that are already subversions. By replacing it with TCatalogue.FindFileQuick with the thrid paramter being "True"the script performs again is in V4.