photools.com Community

IMatch Discussion Boards => IMatch Scripting and Apps => Topic started by: sinus on August 07, 2017, 09:22:15 AM

Title: can ID be something?
Post by: sinus on August 07, 2017, 09:22:15 AM
Sometimes I have a warning about "duplicate apps".

If I then change only one number in this line

  "id": "3750C1CC-0CD8-4E22-844D-5E2B025DB",

it works.
Is this line very important?
Could it be only one number or letter like "A" or "123"?
Title: Re: can ID be something?
Post by: thrinn on August 07, 2017, 10:33:28 AM
Mario commented in some post that this id only has to be unique (two apps are not allowed to have the same id, the App Manager will complain if they do). It can be some arbitrary string.
You get the "duplicate apps" warning e.g. if you just copy an existing app (with all it's files).
Title: Re: can ID be something?
Post by: sinus on August 07, 2017, 02:35:26 PM
Quote from: thrinn on August 07, 2017, 10:33:28 AM
Mario commented in some post that this id only has to be unique (two apps are not allowed to have the same id, the App Manager will complain if they do). It can be some arbitrary string.
You get the "duplicate apps" warning e.g. if you just copy an existing app (with all it's files).

Thanks, Thorsten
I have missed these comments from Mario, but now you made it also clear for me.
Thanks. I will do so, make every ID unique.
Title: Re: can ID be something?
Post by: Mario on August 07, 2017, 03:36:40 PM
Did you read the article Structure of app.json Files (https://www.photools.com/dev-center/doc/imatch/tutorial-app-json.html) which explains the id and every other element in the app.json file?

CHanging only one character in a GUID basically violates it - which itÄs still a GUID (globally unique identifier) you have manually changed it and thus could cause a collision.
As I say in the docs, it is recommended to use a GUID. But every unique name will do.

There are many free on-line GUID geneators where you can just copy/paste a new GUID. For example. https://www.guidgen.com/

The App Manager also creates new GUID for new apps.
Title: Re: can ID be something?
Post by: sinus on August 07, 2017, 05:01:48 PM
Quote from: Mario on August 07, 2017, 03:36:40 PM
Did you read the article Structure of app.json Files (https://www.photools.com/dev-center/doc/imatch/tutorial-app-json.html) which explains the id and every other element in the app.json file?

CHanging only one character in a GUID basically violates it - which itÄs still a GUID (globally unique identifier) you have manually changed it and thus could cause a collision.
As I say in the docs, it is recommended to use a GUID. But every unique name will do.

There are many free on-line GUID geneators where you can just copy/paste a new GUID. For example. https://www.guidgen.com/

The App Manager also creates new GUID for new apps.

Thanks, Mario, for clarification.
I have simply overread this! I was quite sure, that you have documented this somewhere, your help-guides are really very, very good!  :)