sketchplugins / plugin-requests

A collection of plugins requested to our Twitter account
https://twitter.com/sketch
MIT License
211 stars 64 forks source link

Replace Font.sketchplugin error #4

Closed chris-dura closed 9 years ago

chris-dura commented 9 years ago

Hello!

New to Sketch... when trying to run the Replace Font.sketchplugin I get the following error:

ReferenceError: Can't find variable: doc
stack: onRun@/Users/CDura/Library/Application Support/com.bohemiancoding.sketch3/Plugins/Untitled.sketchplugin:5:20
line: 5
sourceURL: /Users/CDura/Library/Application Support/com.bohemiancoding.sketch3/Plugins/Untitled.sketchplugin

Script executed in 0.007434s

Sketch Version 3.3.2 (12043)

bomberstudios commented 9 years ago

How have you installed it?

chris-dura commented 9 years ago

Sorry, I haven't really done any 101 tuts or anything, but it seemed like I didn't have to "install" it. I was just trying to figure it out without reading the manual. I just went to Plugins > Custom Plugin... then copy+pasted the code and hit Run.

bomberstudios commented 9 years ago

Yeah, that's what I thought.

If you download and install it by double clicking the .sketchplugin file, it'll work fine. However, since GitHub's UI is a disaster for single-file downloading, I'll try to update the plugin so that it works when copying & pasting to Sketch 3.3

chris-dura commented 9 years ago

Cool, thanks!