Skip to content

Find easier way to inject into app without menubar #16

@diimdeep

Description

@diimdeep

Currently I am using modified shell script(opens browser after load) and manually invoke it with pid

#!/bin/bash
lldb --attach-pid "$1" <<EOF
p (char)[[NSBundle bundleWithPath:@"/Library/Frameworks/FScript.framework"] load]
p (void)[FScriptMenuItem insertInMainMenu]
p (void)[[FSInterpreter interpreter] browse]
detach
quit
EOF

I tried to invoke it with service trough global hotkey but it not work everywhere.

tell application "System Events"
    set pid to unix id of the first process whose frontmost is true
end tell

do shell script POSIX path of (path to current user folder) & "Library/Services/fscript-inject " & pid with administrator privileges

Maybe write helper app to choose from list of process to inject into ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions