forked from KosmicTask/F-Script
-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Description
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
Labels
No labels