Re : Capturing code snippets
Re : Capturing code snippets
- Subject: Re : Capturing code snippets
- From: Philippe GRUCHET <email@hidden>
- Date: Tue, 8 Apr 2003 03:06:52 +0200
I so humbly wrote:
No shortkey for the "Make new AppleScript" command
I'd like the "Make new AppleScript" as contextual menu item in Mail
;-)
From: Romain Brestac <email@hidden>
If you want to use the service menu "Make new Applescript" with a
shortkey, you can add it manualy.
Open the Script Editor 2 package , then Contents/info.plist. Open this
file with Property List Editor and click on the key "NSServices", then
click on the first item of this Array (Number 0). Create a new
dictionary called "NSKeyEquivalent" and a string in this dictionary
called "default". fill the value for this key with your Key Equivalent.
Personaly, I just typed "A" without quotes. The Shortkey is in this
case : SHIFT-APPLE-A.
Of course you have to check if there is not any conflict with other
services.
If you don't have Property List Editor, here is the xml part I added :
<key>NSKeyEquivalent</key>
<dict>
<key>default</key>
<string>A</string>
</dict>
Then log out /in, and wait 30 seconds. You should see the new shortkey
in front of the menu item.
Amazing! But where did you find that???
Note: "ManOpen" uses Cmd-Shift-A, and it's handy.
I just put @ and it works very fine:
<key>NSServices</key>
<array>
<dict>
<key>NSKeyEquivalent</key>
<dict>
<key>default</key>
<string>@</string>
</dict>
Cmd-@, and the selected snippet is send to Apple's SE2.
It's a real tip for scripters, instead of so many (too) long blah blah
blah.
I've learned at school that a certain Napolean said something like:
"A sketch is better than a long speech." ;-)
Note: is there a tool to manage contents of the Services menu items
(add/remove), handling shortkeys (add/remove/custom) ?
Thank you very much for your great help Romain!
Kind regards,
Philippe/SVM Mac
http://svmmac.vnunet.fr
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.