How to delete preferences of a script?


#1

Maybe it’s a stupid question, but how can I reset or delete the preferences of a specific script in Glyphs?

In my particular case it’s the “Steal Kerning from InDesign” script of Mekkablue.
When you first start it, you will be ask about the place of InDesign. I accidental selected Illustrator and not InDesign from the list. So everytime I start the script, Illustrator will be opened instead of InDesign. :frowning:

Thanks so much in advance
Thomas


#2

You look into the .py file, and search for Glyphs.defaults, in its vicinity you will usually find a reverse domainname, in our case "com.mekkablue.stealKerningFromInDesign.indesignAppName". This is the key under which the preference is saved. Now you can write this in the Macro window and press Run:

del Glyphs.defaults["com.mekkablue.stealKerningFromInDesign.indesignAppName"]

#3

Hi thanks for the help,
hmm, this doesn’t seems to work. The prefs will be deleted, I checked this with

print Glyphs.defaults["com.mekkablue.stealKerningFromInDesign.indesignAppName"]
Results (in my case): Adobe Illustrator
del Glyphs.defaults["com.mekkablue.stealKerningFromInDesign.indesignAppName"]
print Glyphs.defaults["com.mekkablue.stealKerningFromInDesign.indesignAppName"]
Results: None

So, the prefs are deleted then (with “None” as proof), but as soon as I start the script, Adobe Illustrator will be opened. :frowning:

I also quit Glyphs, same results.
Hmm, any other prefs I could delete?

Thanks so much,
Thomas


#4

Then it must be an AppleScript internal setting. You could zip the AI app, and run the script to force it to ask you again.


#5

This worked! Thanks a lot!

Thomas