At 20:42 -0700 9/3/10, Doug McNutt wrote:

At 16:05 -0800 3/9/10, Kendall Conrad wrote:
I know how to use AppleScript with BBEdit to move the cursor, replace
 >content, etc...

Apple's osascript UNIX tool allows for short bursts of AppleScript. Python and perl can both prepare scripts as text and ask the kernel to execute them.

This a something of a red herring. Both Python and Perl can indeed do that and both also have other ways of doing it, using, in the case of Perl for example, Mac::Carbon, without using AppleScript, but these other ways are not easy to learn and have a long lead time while the modules are loaded. Besides that these scripts have to be run from outside BBEdit and not from the palettes or the script menus within BBEdit.

At 16:05 -0800 3/9/10, Kendall Conrad wrote:
... haven't found a way to let Python tell BBEdit to do things like
move the text cursor and replace content at a certain spot.

Moving the cursor is one thing, which can't be done from within BBEdit; setting the selection is another, which can.

Replacing content 'at a certain spot' will happen if you select the certain spot before running the UNIX Perl or Python script or filter. The question is not at all clear.

JD

--
You received this message because you are subscribed to the "BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, please email "[email protected]" rather than posting to the group.

Reply via email to