Searching for Square Images Only?

Discussion in 'macOS' started by That-Guy, Jul 19, 2014.

  1. That-Guy macrumors 6502a

    That-Guy

    Joined:
    Feb 25, 2012
    Location:
    UK
    #1
    I know this sounds really strange but all my photos from my iPhone end up on my computer thanks to dropbox. This includes all my Instagram photos which are obviously square.

    What I want to do is be able to search for all these square images, basically images with the same height and width. So I can post the images onto a website.

    Does anyone know if the built in search function can do this? maybe an Apple Script or even a third party app?

    I could download the photos from Instagram but these are at a much lower quality (600px x 600px) the ones on my computer are between 1000px and 3000px square.

    Any help, suggestions and ideas welcome :)
     
  2. maflynn Moderator

    maflynn

    Staff Member

    Joined:
    May 3, 2009
    Location:
    Boston
    #2
    Did you see if Adobe's Bridge could do that (part of the Photoshop suite)?

    I don't think there's any built in functionality within OSX that allows for that sort of searching.
     
  3. That-Guy thread starter macrumors 6502a

    That-Guy

    Joined:
    Feb 25, 2012
    Location:
    UK
    #4
    That looks like it may do the trick, next question........how do I run apple scripts? and is that script looking for a certain folder on the desktop? :)
     
  4. Bruno09, Jul 21, 2014
    Last edited: Jul 21, 2014

    Bruno09 macrumors 68020

    Joined:
    Aug 24, 2013
    Location:
    Far from here
    #5
    Open AppleScript Editor (/Applications/Utilities), paste the script, compile, save, then run it.

    It will rename any square image on the Desktop by adding "SQ.JPG" to the name.

    If you wanted the script to search in a certain folder instead of the Desktop folder, you would need to modify the script.

    Please note that the script does not work for me (on Mavericks) : it "sees" and renames only the first square image it finds. (I have an error 10004).

    Hopefully some one else will help you more than I can do.
     
  5. That-Guy thread starter macrumors 6502a

    That-Guy

    Joined:
    Feb 25, 2012
    Location:
    UK
    #6
    Hoping someone here knows what the issue is :(
     
  6. Bruno09 macrumors 68020

    Joined:
    Aug 24, 2013
    Location:
    Far from here
    #7
    Hi,

    I think I just found the solution : you must select all the pictures, then run the script ----> it does work and rename all the square images.

    This is because the script reads : "set selected_items to selection"

    Just tried again ---> it does work.
     
  7. That-Guy thread starter macrumors 6502a

    That-Guy

    Joined:
    Feb 25, 2012
    Location:
    UK
    #8
    You have been great thank you! This is the last question I promise....would you know how to edit the script so it runs is this folder Desktop>Photos

    It's only because I have thousands of images so can't place them all on to the desktop :D
     
  8. Bruno09 macrumors 68020

    Joined:
    Aug 24, 2013
    Location:
    Far from here
    #9
    Just tested : you don't need to modify the script.

    What I would suggest :

    - open the script in AppleScript Editor
    - File / Export : save it as an application, not a script.
    - name this application "Square Images" for example

    - put the icon in the Dock so that you can run it easily

    - in your "Photos" folder, select all the images (Cmd a)

    - click on the "Square Images" application's icon in the Dock.

    ---> all the square images in ~/Desktop/Photos will be renamed ("JPG.SQ" is added to the name)
     
  9. That-Guy thread starter macrumors 6502a

    That-Guy

    Joined:
    Feb 25, 2012
    Location:
    UK
    #10
    Brilliant Thank You :)
     

Share This Page