• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: bug in Script Editor 2 Beta ??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bug in Script Editor 2 Beta ??


  • Subject: Re: bug in Script Editor 2 Beta ??
  • From: John Delacour <email@hidden>
  • Date: Mon, 28 Apr 2003 20:59:05 +0100
  • Mac-eudora-version: 6.0a16

At 2:14 pm -0400 28/4/03, Hudson Barton wrote:

SE 2 Beta implements "application services". In these services there is a utility for executing a script command such as a math calculation like "2+2". In Apple's documentation, I see a keyboard equivalent of "Command-Shift-*" . On my PB G4, which does not have an extended keyboard, this command is read as "Command-Shift-8". I'm guessing this is a bug, or is there some way to key it in as requested.


Select the script below and do Services>..Run as Applescript



set f to "" & (path to me) & "Contents:Info.plist"
tell app "Finder" to open file f



Then follow these instructions

At 10:49 pm +0200 7/4/03, Romain Brestac wrote:
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.
_______________________________________________
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.

References: 
 >Re: System Events expires? (From: <email@hidden>)
 >bug in Script Editor 2 Beta ?? (From: Hudson Barton <email@hidden>)

  • Prev by Date: Re: bug in Script Editor 2 Beta ??
  • Next by Date: scope property, parent, load script
  • Previous by thread: Re: Services Menu (was ...)
  • Next by thread: Re: System Events expires?
  • Index(es):
    • Date
    • Thread