cmdln / flashbake

Scripts to gather information for including in version history comments and to make using source control a bit simpler for non-technical projects.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error when committing with iTunes plugin

gwrome opened this issue · comments

I just installed flashbake to give it a spin, and when I use the music plugin to record what's playing in iTunes, every commit message includes an error message like this in the middle of the iTunes information:

osascript[68251:707] Error loading /Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types: dlopen(/Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types, 262): no suitable image found. Did find: /Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types: no matching architecture in universal wrapper osascript: OpenScripting.framework - scripting addition "/Library/ScriptingAdditions/Adobe Unit Types.osax" declares no loadable handlers. 2012-02-18 23:23:34.823 osascript[68251:707] Error loading /Library/ScriptingAdditions/List & Record Tools.osax/Contents/MacOS/List & Record Tools: dlopen(/Library/ScriptingAdditions/List & Record Tools.osax/Contents/MacOS/List & Record Tools, 262): no suitable image found. Did find: /Library/ScriptingAdditions/List & Record Tools.osax/Contents/MacOS/List & Record Tools: no matching architecture in universal wrapper osascript: OpenScripting.framework - scripting addition "/Library/ScriptingAdditions/List & Record Tools.osax" declares no loadable handlers.

I'm currently using an intel mac running Lion (10.7.3). Some googling has lead me to believe it has something to do with Adobe Unit Types not providing a 64bit binary. For example, see the discussion here: http://forums.adobe.com/thread/486208.

I have no python experience whatsoever, so I don't know how to fix it. Any help would be appreciated.

Other than that, flashbake is very cool. Thanks for all the hard work you've put in already.

Sorry, I no longer possess a Mac on which I can troubleshoot this, let alone a 64-bit one running Lion.

I don't have a mac on which to test / troubleshoot this.

I'm pretty sure this has to do with a change in the way that itunes exports data around thumbnails/other images, which triggers the type error that you're seeing.

Can you compare the format that Lion exports this information compared to something in one of the previous version, and then adjust the parsing accordingly?

I cannot do anything OS X related any more. I haven't reviewed the code for this plugin in quite some time but I don't think it is doing any parsing, really, of what it is able to get out of the OSA scripting bridge. If your hypothesis is correct, which I suspect it may be, the problem is occurring well before it gets to flashbake. If there is a fix to be done in flashbake, it is mostly likely to tweak what functions the bit of AppleScript is calling, that there has been some change to the typelib that needs to be reflected.

It seems if you have certain Adobe Software installed it prevents a number of AppleScript related tools from working correctly (including osascript). "Solution 1" listed here should solve the problem for you.

Thanks, jpenney! Your solution fixes the problem Adobe Unit Types.osax problem.

But it doesn't correct the second List & Record Tools.osax problem. I figured out that I had an outdated version of that file as well. You can get the updated version here: http://www.latenightsw.com/freeware/RecordTools/index.html. Once I installed the updated version, everything worked fine.

Thanks for your help, guys.