Inject f-script into an application without a menu bar

233 views
Skip to first unread message

charlie

unread,
Sep 17, 2009, 3:00:41 PM9/17/09
to F-Script
I'd like modify an application that only runs in the status bar, thus
it does not have a menu bar. How can I run the f-script object browser
through gdb?

Thank you,
Charlie

Philippe Mougin

unread,
Sep 17, 2009, 7:10:10 PM9/17/09
to F-Script
In gdb, once F-script is loaded in the application, enter:

p (void)[[FSInterpreter interpreter] browse]

This instantiates an F-Script interpreter and asks it to open an
object browser.

Another way:

po [[@"[sys browse]" asBlock] value]

This one illustrates how to get gdb to execute F-Script code.

Philippe

Clay Bridges

unread,
Jan 29, 2013, 7:40:16 PM1/29/13
to f-sc...@googlegroups.com
Cool. What about an application like Dock? I tried both of those methods, and they don't work (Finder, as a control, did). 

Error message:

The program being debugged hit an ObjC exception while in a function called from gdb.




Gaston M

unread,
Sep 10, 2013, 3:30:55 AM9/10/13
to f-sc...@googlegroups.com
Same here. I would love to inject Dock.app. Same error.
Reply all
Reply to author
Forward
0 new messages