Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > New Script Editor (ß2)

New Script Editor (ß2)
Thread Tools
Professional Poster
Join Date: Oct 2001
Location: London
Status: Offline
Reply With Quote
Jul 25, 2003, 04:24 PM
 
Apple have released a second beta of Script Editor 2.

It has a much nicer UI than the old one and it appears to have Project Builder-style autocompletion.



and a Library - so you can get at frequent Dictionaries:




http://www.monkeyfood.com/thestuff/f...torLibrary.jpg
(Last edited by Diggory Laycock; Jul 25, 2003 at 05:00 PM. )
You know it makes sense. ☼ ☼ ☼ Growl.
     
Fresh-Faced Recruit
Join Date: Feb 2001
Status: Offline
Reply With Quote
Jul 31, 2003, 02:31 PM
 
Originally posted by Diggory Laycock:
[B]Apple have released a second beta of Script Editor 2.

It has a much nicer UI than the old one and it appears to have Project Builder-style autocompletion.
How does this work? I see the completion, but how do I accept the completed word, without typing it all
     
Senior User
Join Date: Oct 2000
Location: Midwest
Status: Offline
Reply With Quote
Jul 31, 2003, 11:25 PM
 
F5 will complete the word that is greyed out. Script Editor 2.0 beta 2 caches the terms it encounters when opening a dictionary. The F5 key is a Cocoa designation. If the autocomplete displays an ellipse, pressing the complete key will present a pop-up menu that will give the available choices. The cancel key is by default the 'esc' key.

You need to enable Script Assitant in the Editing preferences pane.

It is definitely a work-in-progress, once completed it will be a much better tool.

HTH
Craig
     
Senior User
Join Date: Nov 2001
Location: State of Denial
Status: Offline
Reply With Quote
Aug 1, 2003, 02:01 AM
 
Is there any way to customize the key that completes the term? It's rather awkward on a powerbook to press Fn-F5 (since the F5 key acts as numlock without the Fn key).
[Wevah setPostCount:[Wevah postCount] + 1];
     
Professional Poster
Join Date: Oct 2001
Location: London
Status: Offline
Reply With Quote
Aug 1, 2003, 07:07 AM
 
Originally posted by Wevah:
Is there any way to customize the key that completes the term? It's rather awkward on a powerbook to press Fn-F5 (since the F5 key acts as numlock without the Fn key).
I don't know if this will work for sure (i.e. not sure if ScriptEditor will inherit these preferences) - but try editing the Key Bindings prefs in Project Builder:

You know it makes sense. ☼ ☼ ☼ Growl.
     
Mac Elite
Join Date: Feb 2001
Location: Vancouver, WA
Status: Offline
Reply With Quote
Aug 1, 2003, 01:38 PM
 
Nope -- PB/Xcode's key binding UI is specific to PB/Xcode. To change it for other apps, you'll need to use the generic Cocoa key binding customization system... which has no GUI for configuration.

Create a file at ~/Library/KeyBindings/DefaultKeyBindings.dict and put the following in it:
Code:
{ "\Uf70a" = "complete:'; }
This will rebind complete to F7, which can be keyed without requiring modifiers on most iBooks/PowerBooks. (It's what I use on my laptop.)

To use a different key, you'll need to change the thing on the left, which is the (Unicode?) key code. See NSEvent.h for several common key codes. To include a modifier key, you'll need to preface the key code with a special symbol (@ for command, ~ for option, ^ for control). You can also put in additional lines to
bind other actions -- see NSResponder.h for a list of standard text editing actions you can bind.

For more info, see the PBXKeyBindings.dict file inside PB/Xcode's app wrapper, or the Expert Preferences Release Notes for Project Builder (you may need an older version -- they seem to have removed or relocated that part of the docs in Xcode). IIRC, Mike Ferris' TextExtras provides some keybinding help, too.
Rick Roe
icons.cx | weblog
     
Senior User
Join Date: Nov 2001
Location: State of Denial
Status: Offline
Reply With Quote
Aug 1, 2003, 06:26 PM
 
Excellent. Actually, I should have known that had I been paying attention, what with digging through PB's documentation for fun on and off.
[Wevah setPostCount:[Wevah postCount] + 1];
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 02:14 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2