Setting custom folder icon in OS X?

Discussion in 'Python' started by Jet Jaguar, Sep 3, 2006.

  1. Jet Jaguar

    Jet Jaguar Guest

    I'm trying to find a way to set a custom folder icon in OS X. I
    thought that Applescript would be able to do it, but apparently it
    can't. Is there anything in the Macintosh libraries of Python that
    will allow me to take an image file (e.g., jpeg, png, tiff, etc.) and
    set it as the icon for a folder?

    Kevin D. Smith
     
    Jet Jaguar, Sep 3, 2006
    #1
    1. Advertising

  2. Jet Jaguar

    Kevin Walzer Guest

    Jet Jaguar wrote:
    > I'm trying to find a way to set a custom folder icon in OS X. I
    > thought that Applescript would be able to do it, but apparently it
    > can't. Is there anything in the Macintosh libraries of Python that
    > will allow me to take an image file (e.g., jpeg, png, tiff, etc.) and
    > set it as the icon for a folder?
    >
    > Kevin D. Smith
    >

    There might be a way to do this via PyObjC (the Python-Objective C
    bridge), which provides access to the Mac's Cocoa frameworks.

    --
    Kevin Walzer
    Poetic Code
    http://www.kevin-walzer.com
     
    Kevin Walzer, Sep 4, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Miro Durcik

    app.rc resource's icon to .net Icon

    Miro Durcik, Oct 9, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    1,437
    Miro Durcik
    Oct 9, 2004
  2. THY
    Replies:
    3
    Views:
    2,988
    Alvin Bruney
    Oct 16, 2003
  3. Grant Edwards

    setting icon using py2exe?

    Grant Edwards, Jun 29, 2004, in forum: Python
    Replies:
    11
    Views:
    12,841
    Grant Edwards
    Jul 1, 2004
  4. Dan Polansky
    Replies:
    3
    Views:
    866
    Larry Barowski
    Feb 12, 2007
  5. Bodi
    Replies:
    1
    Views:
    318
    Lasse Reichstein Nielsen
    Nov 18, 2003
Loading...

Share This Page