Can't set editor

18 views
Skip to first unread message

Ryan Cuza

unread,
Sep 30, 2011, 4:57:42 PM9/30/11
to greasemonkey-users
The button in the options does nothing, and there is no file called
greasemonkey.editor in the about:config page.

GreaseMonkey

unread,
Oct 3, 2011, 11:40:11 AM10/3/11
to greasemonkey-users
if de greasemonkey.editor doesnt exist, you have to cretae it with
secondary button->new->string->"greasemonkey.editor"->value: [the path
to your preferred text editor].
After doing that you can edit your userScripts. I did it.
Geetings!

cynwoody

unread,
Nov 1, 2011, 3:16:28 PM11/1/11
to greasemon...@googlegroups.com
I had this problem using Greasemonkey 0.9.12 on Firefox 7 on the Mac. I tried setting the editor using both the dialog and about:config. But I still couldn't edit files. The error console (Cmd-Shift-J) was showing an error in the file ~/Library/Application Support/Firefox/Profiles/7k43tcas.default/extensions/{e4a8a97b-f2ed-450b-b12d-ee082ba24781}/modules/util/openInEditor.js.

Examining the file, it was apparent it was trying to invoke

open -a appFile.path script.file.path

However, appFile was defined nowhere. So, I edited the file and changed appFile.path to 'TextWrangler'.  Problem solved.

If you do it, you may want first to try the resulting open command in Terminal and make sure it does what you want. Substitute the name of your editor for appFile.path and the path to your script for script.file.path.
 

Anthony Lieuallen

unread,
Nov 1, 2011, 3:35:37 PM11/1/11
to greasemon...@googlegroups.com
On 11/01/2011 03:16 PM, cynwoody wrote:
> ..

> Examining the file, it was apparent it was trying to invoke
>
> open -a appFile.path script.file.path
> ..

https://github.com/arantius/greasemonkey/commit/f693dc48d6d94401280d44617f0b9c765781063c#diff-3

Which should be in the development channel beta, feel free to give it a
shot:
https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/#beta-channel
(Open the "development channel" dropdown at the bottom.)

Reply all
Reply to author
Forward
0 new messages