Can we get some way to activate a script directly with an accelerator instead of having to go through an alias? I've had to create several aliases recently to deal just with getting various accelerators to work for different people. Actually, having the full 13 options that aliases do would be even more convenient.
Accelerators activating scripts
Posted by Shaun Biggs on Mon 20 Aug 2007 09:19 PM — 4 posts, 17,737 views.
I'll have to check, it shouldn't be too hard.
This is implemented in version 4.27.
There is now an AcceleratorTo function that lets you specify where to send the text to, like DoAfterSpecial.
For example:
There is now an AcceleratorTo function that lets you specify where to send the text to, like DoAfterSpecial.
For example:
AcceleratorTo ("Ctrl+E", string.rep ('-', 60), 2) -- put 60 hyphens in the output window
AcceleratorTo ("Ctrl+D", "Sound ('ding.wav')", 12) -- play a ding sound
And to make it more readable, you can now specify the sendto locations with words:
AcceleratorTo ("Ctrl+E", string.rep ('-', 60), sendto.output) -- put 60 hyphens in the output window
AcceleratorTo ("Ctrl+D", "Sound ('ding.wav')", sendto.script) -- play a ding sound