icholy / ttygif

Convert terminal recordings to animated gifs
MIT License
3.93k stars 254 forks source link

osascript error for 32-bit #27

Open cameronoxley opened 10 years ago

cameronoxley commented 10 years ago

When running ./ttygif myrecording

I get the following error:

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

Seems to be related to Photoshop dependencies

Related Link: (Unit type conversion error)[http://helpx.adobe.com/photoshop/kb/unit-type-conversion-error-applescript.html]

screen shot 2014-05-31 at 2 48 55 pm

cameronoxley commented 10 years ago

After changing osascript to "arch -i386 osascriptxx" (as suggested by adobe) in ttygif_osx.c

I got this error: arch: posix_spawnp: osascript: Bad CPU type in executable

cameronoxley commented 10 years ago

Deleting the Adobe unit types file will fix the problem.

cd '/Library/ScriptingAdditions/' \ 
sudo tar cjf Adobe\ Unit\ Types.tar.bz2 Adobe\ Unit\ Types.osax \ 
sudo rm -rf 'Adobe\ Unit\ Types.osax' && sudo ln -s /dev/null ./Adobe\ Unit\ Types.osax 

However, this will break Photoshop...

icholy commented 10 years ago

I don't have a mac to test this out on. I guess I'll just leave this open in case anyone else runs into this issue.