For example there is in Mavericks under System Preferences, Keyboard, Shortcut, Services: "Open selected file in TextEdit". The problem is that I want to use a different editor, not only for a one type of file, but for any selected files, just like this example says, selected file.
I want to usually open configuration files, or files without extension and its too complicated to assign always open with for each file extension.
Programmers can help.
Edit
I found out that I have to edit the .plist in the package of the app, and I copied and changed the name of TextEdit with the app I want to use in the following code.
The problem is that the default shortcut does not even work for TextEdit. I don't understand what the problem is. I think some other people observed this bug before ?
I want to usually open configuration files, or files without extension and its too complicated to assign always open with for each file extension.
Programmers can help.
Edit
I found out that I have to edit the .plist in the package of the app, and I copied and changed the name of TextEdit with the app I want to use in the following code.
The problem is that the default shortcut does not even work for TextEdit. I don't understand what the problem is. I think some other people observed this bug before ?
<dict>
<key>NSMenuItem</key>
<dict>
<key>default</key>
<string>Open Selected File in TextEdit</string>
</dict>
<key>NSMessage</key>
<string>openFile</string>
<key>NSPortName</key>
<string>TextEdit</string>
<key>NSSendTypes</key>
<array>
<string>public.plain-text</string>
</array>
<key>NSRequiredContext</key>
<dict>
<key>NSTextContent</key>
<string>FilePath</string>
</dict>
</dict>
Last edited: