Skip to main content
Hayder77
Participant
February 28, 2026
Answered

is there a script to arrange small objects alphabetically?

  • February 28, 2026
  • 2 replies
  • 69 views

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)

 

    Correct answer Stephen Marsh

    @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.

    2 replies

    barbara_a7746676
    Community Expert
    Community Expert
    March 1, 2026
    Hayder77
    Hayder77Author
    Participant
    March 1, 2026

    Hi,

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

    Stephen Marsh
    Community Expert
    Community Expert
    March 1, 2026

    @Hayder77 

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

    Stephen Marsh
    Community Expert
    Stephen MarshCommunity ExpertCorrect answer
    Community Expert
    March 1, 2026

    @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.