Re: Assigning Scripts to "Hot Keys"
Re: Assigning Scripts to "Hot Keys"
- Subject: Re: Assigning Scripts to "Hot Keys"
- From: Walter Ian Kaye <email@hidden>
- Date: Sat, 21 Feb 2004 13:11:34 -0800
At 11:39a -0500 02/16/2004, email@hidden didst inscribe upon an
electronic papyrus:
Thanks to all for the suggestions on navigating in Excel using
Applescript. I have my scripts working exactly as I need them to now
and they are extremely fast compared to the Quickeys Macros I was
using before.
I have two more questions: 1) Is there a way to assign scripts to
run using a specific key combination while using Excel. I am trying
to emulate the way Quickeys works by assigning a "trigger" to each
script. For instance, the combination of control-g would play a
specific script to type specific text entries into a row of Exel.
Would this involve some kind of "meta script" that would call on the
scripts that contain each of the text macro scripts I've already
programmed? Or is this kind of thing even possible?
Well, uhh, why not use QuicKeys to trigger the script? I often launch
BBEdit by hitting Ctrl-Cmd-B, which is assigned to a QK containing
the simple script 'tell application "Finder" to open application file
id "R*ch"'.
2) Is there a way to program Applescript to wait until it sees a
specifec key (for instance an "enter" key) before it resumes its
playback? I would like for some of these macros to pause (for
instance until after I've entered a check number) before continuing
to play back.
Sure; put in a loop with a delay in it and a conditional which checks
for the trigger. As for how to check for it, that depends on some
factors. For example, are you running Jaguar or Panther? I think
Panther has keypress checks built in; for Jaguar you'd need Jon's
Commands. Neither one actually triggers anything, which is why you
need to poll via a loop.
-boo
_______________________________________________
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.