Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RafalBuchner/5affdfafc76785c637ea7c5d2a035787 to your computer and use it in GitHub Desktop.
Save RafalBuchner/5affdfafc76785c637ea7c5d2a035787 to your computer and use it in GitHub Desktop.
"atom-shell-commands":
commands: [
{
arguments: [
"-p"
"{FilePath}"
]
command: "roboFont"
name: "build robofont"
options:
keymap: "alt-r"
pwd: "{FileDir}"
}
]
@ddaanniiieeelll
Copy link

I was very happy when I saw this yesterday, but somehow I can't make it work.
I think I followed all instructions properly:
installed atom-shell-commands
put the your text in the config file
downloaded pyobjc
allowed remote scripting in robofont and installed the shell command

Now from how I understood it a simple script like

f = CurrentFont() 
print(f)

should return the current font in robofonts output window when I run it in Atom.
Instead, in Atom, I get the error : 'CurrentFont()' is not defined and robofonts output window stays empty.
Any chance you could help me out with this?

@RafalBuchner
Copy link
Author

RafalBuchner commented May 5, 2019

how exactly you run the script? have you tried to do it by hitting option and "r" (that is the shortcut set in the config, that I shared)?

@ddaanniiieeelll
Copy link

Nevermind, while installing the shell command I checked Allow remote scripting but apparently I unchecked it again.
While Robofont stays installed as shell command remote scripting was simply disabled (because it still was installed it didn't occur to me to check if remote scripting is allowed).
Simple as that …
But thanks anyways

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment