ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Using Python and AppleScript Together
Subject:   A generic problem with this
Date:   2007-05-10 09:29:03
From:   jimschimpf
I've read a number of articles about using Applescript with various languages, your article and articles using Ruby but none of these ever work on my box (1Ghz 12" Powerbook with 10.4.9). There is something wrong with osascript on my box, if I attempt something simple like


osascript -e "tell app TextEdit to quit"


I get:


2007-05-10 12:19:44.573 osascript[26045] CFLog (21): Error loading /System/Library/Components/AppleScript.component/Contents/MacOS/AppleScript: error code 4, error number 0 (Symbol not found: __cg_png_destroy_write_struct
Referenced from: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO
Expected in: /usr/local/lib/libPng.dylib
)
osascript: can't open default scripting component.


What have I broken and how could I fix this ?


--jim


1 to 2 of 2
  1. A generic problem with this
    2007-05-11 18:41:43  BareFeet [View]

    • Noah Gift photo A generic problem with this
      2007-05-12 15:27:11  Noah Gift | O'Reilly AuthorO'Reilly Blogger [View]

  2. Noah Gift photo A generic problem with this
    2007-05-10 09:55:02  Noah Gift | O'Reilly AuthorO'Reilly Blogger [View]

1 to 2 of 2