mekkablue / Glyphs-Scripts

Python scripts for the Glyphs font editor
http://glyphsapp.com/
Apache License 2.0
387 stars 104 forks source link

Steal Kerning Indesign #95

Closed fizzybubbele closed 8 years ago

fizzybubbele commented 8 years ago

Dear Mekkablue,

when I try your script this error appears in the macro-panel:

Start Traceback (most recent call last): File "Steal kerning from InDesign.py", line 81, in Glyphs.clearLog() File "GlyphsApp/init.py", line 535, in __ClearLog

AttributeError: 'GSMenu' object has no attribute 'clearConsole' End

Please, can you help me? Thank you.

mekkablue commented 8 years ago

Which version of Glyphs, the OS, InDesign?

fizzybubbele commented 8 years ago

Thanks. Here are the versions: Glyphs 2.3b, OS El Capitan 10.11, Indesign CC 2015.

ghost commented 8 years ago

I cannot reproduce it in the latest beta, but I get a different error which needs to be fixed in the app. Perhaps update the modules. Or run it again with the latest stable version.

fizzybubbele commented 8 years ago

Thanks for your support. I tried to run the script with the latest stable version (2.2.2) and now it's popping up this message: 75:80: syntax error: Expected end of line but found identifier. (-2741)

mekkablue commented 8 years ago

Cannot reproduce it. Have you set up the InDesign document the way it is described?

fizzybubbele commented 8 years ago

Yes, I did so and I figured out that it still works with Indesign CS6. I recently updated all my software versions (Glyphs 2.2.2 and IndesignCC2015) on my new mac and the macro panel shows more errors:

AppleScript Error: 85:90: syntax error: Expected end of line but found identifier. (-2741)

AppleScript Error: 79:84: syntax error: Expected end of line but found identifier. (-2741)

AppleScript Error: 41:57: execution error: Can’t get application "InDesign". (-1728)

AppleScript Error: 75:80: syntax error: Expected end of line but found identifier. (-2741)

It’s no big issue if you can’t reproduce it.

ghost commented 8 years ago

That means that the script could not find InDesign. Do you have the latest version of the scripts?

fizzybubbele commented 8 years ago

Yes, I have the latest versions of all scripts – I absolutely updated everything.

ghost commented 8 years ago

Then you will Need To edit the script, I am afraid. Type

tell app "InDesign" end

…in AppleScript Editor and compile, the editor will change the code, then search and replace the code in the .py file accordingly.

fizzybubbele commented 8 years ago

Thank you! It works very well.