Re: Newbie: Scripting a better HOME button?

2010-07-31 Thread Kendall Conrad
I reworked your code some and got it to work properly as far as my testing found. - tell application BBEdit activate set _current_line_number to startLine of selection -- Find the character offset for the cursor position set aaa

Re: Newbie: Scripting a better HOME button?

2010-07-31 Thread John Delacour
At 08:52 -0700 30/7/10, offtone wrote: I'll tinker around! Some solutions have already been posted, and they're helpful starts for sure. The script I posted is more than a helpful start; it is a full solution. Have you tried it?! JD -- You received this message because you are subscribed

Re: Newbie: Scripting a better HOME button?

2010-07-31 Thread Kendall Conrad
Well, offtone was wanting the script to first go to the smart home position, and if done again, would go to the start of the line, and if already at the start of the line, would go to the smart home. The same behavior often found in IDEs like NetBeans when using the home key. Your script only went

Re: Newbie: Scripting a better HOME button?

2010-07-31 Thread Gabriel Roth
I never would have thought of this feature if not for this thread, but I really like it. Thanks to the original poster, and to everyone who contributed to this script, which I've now got bound to Command-Left. On Sat, Jul 31, 2010 at 6:47 PM, Kendall Conrad angelw...@gmail.com wrote: With

Re: Newbie: Scripting a better HOME button?

2010-07-31 Thread John Delacour
At 15:47 -0700 31/7/10, Kendall Conrad wrote: With more testing I found there were some cases where the script didn't work so I have made further improvements. Below is the new script. I set command+left to be the shortcut for it, which works out pretty well. Applescript is verbose enough