Skip to main content
Hayder77
Participant
Feb 28, 2026 9:41 PM UTC
Answered

is there a script to arrange small objects alphabetically?

I have small photos of Hot wheels cars, I want a script to automatically arrange these Hot wheels photos in a way that they are alphabetically sorted from A to Z (left upper corner to right lower corner) in a square or rectangular shape (number of columns equal 50% of number of rows) and each object is sitting on 60% on the next object. Will add photo of before arrangement and after arrangement (the one I done manually and want is number 2)

 

    Stephen Marsh
    Stephen MarshCorrect answer
    Community Expert
    Mar 1, 2026 12:06 AM UTC

    ​@Hayder77 

     

    You have very specific requirements that are not covered by a generic script.

     

    As a starting point, you can use a script to alphabetically stack the layers, then another script or action can be used to manipulate the canvas and position the layers.

     

    Adobe has the default script “Load Files into Stack”.

     

    Then there are similar 3rd party scripts:

     

     

     

     


    Do you always want to automate the stack and layout into sets of four layers? If so, I wrote a script for this:

     

     

    Do you always want a 2x2 layout, or will this vary., such as 3x6 or 4x8 etc?

     

    If you already have the layers in a file and want to sort them and lay them out, then a different script would be required.

    5 replies

    barbara_a7746676
    Community Expert
    Community Expert
    Mar 1, 2026 5:01 AM UTC
    Hayder77
    Hayder77Author
    Participant
    Mar 1, 2026 12:32 PM UTC

    Hi,

    Thank you for your reply, but I want a script to sort the photos not their layers.

    Translate
    Stephen Marsh
    Community Expert
    Community Expert
    Mar 1, 2026 11:54 PM UTC

    ​@Hayder77 

    Can you provide sample images and answer my questions in my other reply?

    Translate
    Stephen Marsh
    Community Expert
    Stephen MarshCommunity ExpertCorrect answer
    Community Expert
    Mar 1, 2026 12:06 AM UTC

    ​@Hayder77 

     

    You have very specific requirements that are not covered by a generic script.

     

    As a starting point, you can use a script to alphabetically stack the layers, then another script or action can be used to manipulate the canvas and position the layers.

     

    Adobe has the default script “Load Files into Stack”.

     

    Then there are similar 3rd party scripts:

     

     

     

     


    Do you always want to automate the stack and layout into sets of four layers? If so, I wrote a script for this:

     

     

    Do you always want a 2x2 layout, or will this vary., such as 3x6 or 4x8 etc?

     

    If you already have the layers in a file and want to sort them and lay them out, then a different script would be required.

    Translate