Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8891949
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T22:52:22+00:00 2026-06-14T22:52:22+00:00

I use OS X Mountain 10.8.2. I used Automator and added AppleScript, copying the

  • 0

I use OS X Mountain 10.8.2.

I used Automator and added AppleScript, copying the command from the old app’s developer at the Iconoodle – Convenient ICNS to PNG image conversion (Iconoodle isn’t supported by OS X 10.8 by being a PPC app). I saved the workflow as an application. I selected the images and dropped them into the application, but the images weren’t converted to ICNS. I also copied from the question Convert image to .icns file AppleScript Obj-C and it didn’t work either.

I’m really frustrated with it. I want to use Automator to convert the multiple images from PNG to ICNS once at all. It’s very annoying to convert each image to ICNS in the icon editor applications, one for one. The Preview.app doesn’t want to convert the image in format PNG to ICNS because it has only one page, it can convert it to ICNS only if the icon has many pages.

Do you know to make it?

Thank you for your attention, help and patience!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T22:52:24+00:00Added an answer on June 14, 2026 at 10:52 pm

    Here is another approach…
    NOTE: Your ORIGINAL pngs will be scaled to the expected size before the icns file is created. If you want to keep a copy of the original png, duplicate it first. You can also add a line or so to the script to do so automatically.

    property expectedSizes : {16, 32, 48, 128, 256, 512, 1024, 9999999}
    
    set myFiles to choose file with multiple selections allowed
    
    repeat with aFile in myFiles
    
        tell application "System Events" to set bPath to POSIX path of (container of aFile)
        set newPath to bPath & "/" & bName(aFile) & ".icns" as text
        set aFile to quoted form of (POSIX path of aFile)
    
        set {W, H} to {paragraph 1, paragraph 2} of (do shell script "sips -g pixelWidth -g pixelHeight " & aFile & " | grep -Eo [0-9]*$")
        set {W, H} to {W as number, H as number}
    
        if W > H then
            set W to eSize(W)
            do shell script "sips " & aFile & " -Z " & W & " -p " & W & space & W & " --padColor FFFFFF -i"
            delay 1
        else if H > W then
            set H to eSize(H)
            do shell script "sips " & aFile & " -Z " & H & " -p " & H & space & H & " --padColor FFFFFF -i"
            delay 1
            -- H = W but not in expected sizes
        else if H is not in expectedSizes then
            set H to eSize(H)
            do shell script "sips " & aFile & " -Z " & H & " -p " & H & space & H & " --padColor FFFFFF -i"
            delay 1
        end if
    
        do shell script "sips -s format icns " & aFile & " --out " & quoted form of newPath
    end repeat
    
    on bName(theFile)
        tell application "Finder" to set {name:fileName, name extension:nameExtension} to theFile
        set baseName to text 1 thru ((get offset of "." & nameExtension in fileName) - 1) of fileName
    end bName
    
    on eSize(lDimen)
        repeat with i from 1 to 8
            if lDimen < item i of expectedSizes then return item (i - 1) of expectedSizes
        end repeat
    end eSize
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Recently I‘m using OSX mountain lion. when I use Terminal.app, I found that my
I just installed Mountain Lion and Xcode, so under /Applications/Xcode.app/Contents/Developer/usr/bin I found the Git
I want to use Mountain Lion's new feature Notification Center. In NSUserNotification.h I found
I'm trying to use the new Mountain Lion NSUserNotificationCenter for my application (which isn't
I use mountain lion, i install ruby-1.9.3-p125. And i use rake new_post['test'] , the
I'm attempting to use the new mongodb aggregation framework from php. I'm using mongod
I am trying to use the po2json parser/converter from the JS gettext library (
I’m running Mac OS X v10.8 (Mountain Lion) with Xcode 4.5.1 with command line
I'm trying to use CUDA 5 RC1 on OS X Mountain Lion 10.8.1. When
I've just upgraded to Mountain Lion so I can use some of the C++11

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.