Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

That-Guy

macrumors 6502a
Original poster
Feb 25, 2012
662
57
UK
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 :)
 
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.
 
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.
 
Last edited:
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.

Hoping someone here knows what the issue is :(
 
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.
 
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.

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
 
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)
 
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)

Brilliant Thank You :)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.