Program-created ID - must it be unique, and can I change it with text editor


x509

Well-known member
Member
VIP
Local time
7:17 PM
Posts
291
Location
Western USA
OS
Windows 11
As the title says, can I change a Windows (?) ID created by some program. Can I change it randomly, say by incrementing the value by 1 or 10?
This specific example is a "smart collection" created by Adobe Lightroom Classic, but my question applies to an ID created by any program. E. g. Word macros or Outlook email rules.

A Lightroom "smart collection" is really a set of conditions based on keywords, metadata, text, whatever. All photos that match all the conditions are included in that smart collection, which is a virtual view. The photo files themselves are NOT moved. Creating a smart collection within Lightroom is cumbersome, given the UI, so I was wondering if I could edit one smart condition to create others, varying just some of the specifics.

This is the actual code for a smart collection. The parts I've underlined are one lines I would want to edit. I've also highlighted the ID.

As a side question, how are these IDs generated?

Win 11 2H23

-------------------------------------

s = {
id = "6875A4F5-0A21-4FD6-A257-AFAEC521167A",
internalName = "DELETEDs - ALL",
title = "DELETEDs - ALL",

type = "LibrarySmartCollection",
value = {
{
criteria = "pick",
operation = "==",
value = -1,

},
{
criteria = "keywords",
operation = "any",
value = "CURRENT",
value2 = "",

},
combine = "intersect",
},
version = 0,
}
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    home built
    CPU
    AMD 7900x
    Motherboard
    ASUS AMD x670E ROG Strix E-A
    Memory
    64 GB
    Graphics Card(s)
    Nvidia 3060 Ti (but wanting to upgrade)
    Sound Card
    built-in
    Monitor(s) Displays
    Dell 24"
    Cooling
    AIO for CPU, fans for case
    Keyboard
    Das Keyboard 4
    Mouse
    Corsair M65 (white)
    Browser
    Firefox
    Antivirus
    Bitdefender
    Other Info
    Also have Lenovo T14S laptop (me) and Lenovo Slim 71 (wife)
As a side question, how are these IDs generated?
Those are called GUID's. They're pseudo-random identifiers generated with an extremely low probability of duplicate ID's.

To create a batch of 10 GUID's in PowerShell:
Code:
powershell "for ($i=1;$i -le 10; $i++) { (new-guid).Guid.ToUpper() }"
 

My Computer

System One

  • OS
    Windows 7

Latest Support Threads

Back
Top Bottom