Re : Capturing code snippets
Re : Capturing code snippets
- Subject: Re : Capturing code snippets
- From: Romain Brestac <email@hidden>
- Date: Mon, 7 Apr 2003 22:49:10 +0200
Le 06 Avril 2003, M. Gruchet a ecrit:
This is a very well descriptive procedure. Bravo!
(Even if I prefer the "Make new AppleScript" command from the Services
menu.)
Much more than mine:
--------------------------------------
tell app "Mail" to activate
tell application "System Events"
click menu item "Open Selection" of menu "TextEdit" of menu item
"TextEdit" of menu "Services" of menu item "Services" of menu "Mail"
of menu bar 1 of application process "Mail"
end tell
--------------------------------------
Useful, if we could join a shortkey to a script in Script Menu: should
be much more useful than browsing the Services menu to find an
appropriate command, or going up to the right script in Script Menu.
Why not as an applet in the Dock...
The goal is to send a selection in a script editor easily and quickly!
I'd like the "Make new AppleScript" as contextual menu item in Mail
;-)
Kind regards,
Philippe/SVM Mac
http://svmmac.vnunet.fr
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>
If you want, you can also translate the title of the menu item into
your favorite language if you modify the key <default> of <NSMenuItem>
Voila, voila...
Then log out /in, and wait 30 seconds. You should see the new shortkey
in front of the menu item.
I think there is another good solution for displaying and capturing
Applescripts from mailing lists but I will talk about it in a separate
message :-)
Romain.
-------------------------------------------------
Victory attained by violence is tantamount to a defeat, for it is
momentary.
Mahatma Gandhi (1869 - 1948), May 3, 1919
_______________________________________________
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.