Getting Started from Metacard

Sarah Reichelt sarah.reichelt at gmail.com
Thu Jun 29 20:45:02 EDT 2006


> There must be a keyboard shortcut to get to the script of the
> RevMenuBar stack or the script of the first card in it, other than
> typing into the message box:
>
> edit the script of cd 1 of stack "RevMenuBar"
>
> I'm used to simply typing command-option-S, or command-option-C.

In the General section Rev's preferences, there are a couple of
options which allow shortcuts to work with Rev's windows.


> I'd also like to modifiy some other keyboard shortcuts in the
> RevMenuBar stack, but adding an 'on commandKeyDown' handler to this
> stack's first card does nothing.  Other things I'd like to be able to
> modify:

Instead of modifying Rev's stacks 9which you would have to repeat with
every update), I recommend using a plugin that sets a frontScript to
trap for commandKeyDown and handles your shortcuts independently. I
wrote a plugin called FunKey to allow use of function keys in this way
and you are welcome to use it as a base for your own utility. You can
get it here: <http://www.troz.net/Rev/plugins.php>.


> Command-Option-click an object should open its script
> Command-A in the script editor should Select All.  Sometimes it does,
> sometimes it doesn't.

I use Daniels & Mara's Galaxy for editing. This allows you to get to
the script of any object without clicking & provides tabbed script &
property editing. I highly recommend it <http://www.daniels-mara.com/>

> After topLeveling the RevMenuBard stack I've commented out the
> MoveStack handler, but moving the stack still locks it to some
> invisible grid.

Sorry, no ideas here :-(


> Using the answer command brings up a window with a Revolutions icon in
> it.  If I delete the icon from this stack I end up with all kinds of
> script errors.

Firstly, you can use another of the preset icons for this by providing
the answer command with another parameter e.g.
  answer info "Hello"
  answer question "Is this what you want to do?"
  answer warning "Are you sure?"
  answer error "This is not a good idea!"

These options give an icon with a small Rev icon superimposed. For OS
X only, you can also set the gRevAppIcon & gRevSmallAppIcon globals to
your app's own icon, it will use these instead. At least it will in a
standalone, I'm not sure it does in the IDE.

HTH,
Sarah



More information about the use-livecode mailing list