Re: Can any AppleScript gurus help? Script to get filename of active dialog

2012-03-09 Thread John Delacour
At 19:23 -0700 9/3/12, LuKreme wrote: On 09 Mar 2012, at 09:21 , John Delacour wrote: > At 06:55 -0700 9/3/12, LuKreme wrote: >> > can get the filename of the front-most document in BBEdit, but I'm > afraid I just don't grok AppleScript. set docName to name of text window 1 That wil

Re: Can any AppleScript gurus help? Script to get filename of active dialog

2012-03-09 Thread Dmitry Markman
try check environment variable $BB_DOC_NAME see User Manual page 309 On Mar 9, 2012, at 9:23 PM, LuKreme wrote: > > On 09 Mar 2012, at 09:21 , John Delacour wrote: > >> At 06:55 -0700 9/3/12, LuKreme wrote: >> >> >>> On 08 Mar 2012, at 21:57 , Mark Christian wrote: >>> can get the filen

Re: Can any AppleScript gurus help? Script to get filename of active dialog

2012-03-09 Thread Dmitry Markman
check also the following tell application "BBEdit" if (count of text windows) > 0 then select text window 1 set curr_file to file of text window 1 set curr_path to POSIX path of curr_file end if end tell On Mar 9, 2012, at 9:23 PM,

Re: Take Control of BBEdit

2012-03-09 Thread LuKreme
On 09 Mar 2012, at 08:45 , Rich Siegel wrote: > We're pleased to announce the release and immediate availability of "Take > Control of BBEdit", a brand-new title from Take Control Books. In "Take > Control of BBEdit," long-time BBEdit user Glenn Fleishman has taken up > the challenge of explaining

Re: Can any AppleScript gurus help? Script to get filename of active dialog

2012-03-09 Thread LuKreme
On 09 Mar 2012, at 09:21 , John Delacour wrote: > At 06:55 -0700 9/3/12, LuKreme wrote: > > >> On 08 Mar 2012, at 21:57 , Mark Christian wrote: >> >> > can get the filename of the front-most document in BBEdit, but I'm >> > afraid I just don't grok AppleScript. >> >>set docName to name of

Re: Python Tidy Text filter

2012-03-09 Thread Clark Goble
Weird. I just tried it again and it works fine for me. (I wrote that blog post) What version of python are you using. Might you have a different version coming via MacPorts or Fink? On Mar 8, 2012, at 2:41 PM, Rick Yentzer wrote: > I followed the directions I received from > http://www.libe

Re: Change font used by "Copy as Styled Text" ?

2012-03-09 Thread Lawrence San
That's funny -- I never noticed the "Copy as Styled Text" command before I read your post. I just tried it... and regardless of whether I pasted into an RTF document in Bean or TextEdit, it didn't come in as styled. I looked through the application prefs of BBEdit (9.6.3), Bean, and TextEdit, and r

Re: [ANN] Take Control of BBEdit

2012-03-09 Thread Mo! Langdon
At 9:40 AM -0800 3/9/12, Steve Nicholson wrote: Awesome. Five bucks is an absolute no-brainer. This will be the first book I read on my new iPad. At full price, this one's a no-brainer; thanks, Rich!! Slán, mo! -- -- You received this message because you are subs

Re: [ANN] Take Control of BBEdit

2012-03-09 Thread Steve Nicholson
Awesome. Five bucks is an absolute no-brainer. This will be the first book I read on my new iPad. -Steve On Mar 9, 2012, at 7:45 AM, Rich Siegel wrote: > Good { morning, afternoon, evening }, > > We're pleased to announce the release and immediate availability of "Take > Control of BBEdit", a

Re: Can any AppleScript gurus help? Script to get filename of active dialog

2012-03-09 Thread John Delacour
At 06:55 -0700 9/3/12, LuKreme wrote: On 08 Mar 2012, at 21:57 , Mark Christian wrote: > can get the filename of the front-most document in BBEdit, but I'm > afraid I just don't grok AppleScript. set docName to name of text window 1 That will get you the name of the window. This will

[ANN] Take Control of BBEdit

2012-03-09 Thread Rich Siegel
Good { morning, afternoon, evening }, We're pleased to announce the release and immediate availability of "Take Control of BBEdit", a brand-new title from Take Control Books. In "Take Control of BBEdit," long-time BBEdit user Glenn Fleishman has taken up the challenge of explaining how to acc

Re: JQuery syntax coloring

2012-03-09 Thread Rick Yentzer
Apparently I'm not doing this right. I used the bbedit --maketags on the file which contains a list of jquery commands. When I look at the tag file it only contains: !_TAG_FILE_FORMAT 2 /extended format; --format=1 will not append ;" to lines/ !_TAG_FILE_SORTED 1 /0=unsorted, 1=sorted, 2=foldca

Re: Can any AppleScript gurus help? Script to get filename of active dialog

2012-03-09 Thread LuKreme
On 08 Mar 2012, at 21:57 , Mark Christian wrote: > Heya, gang; > I'm a complete AppleScript moron. I've been trying to figure out how I > can get the filename of the front-most document in BBEdit, but I'm > afraid I just don't grok AppleScript. It's been a long time since I actually used AppleSc

Re: JQuery syntax coloring

2012-03-09 Thread Rich Siegel
On Thursday, March 8, 2012, Rick Yentzer wrote: How do I get the basic methods in jquery to be syntax colored. You should be able to generate a ctags file for them, using "bbedit --maketags" on the jQuery sources. The resulting file can live in your Application Support/BBEdit/Completion Da

Can any AppleScript gurus help? Script to get filename of active dialog

2012-03-09 Thread Mark Christian
Heya, gang; I'm a complete AppleScript moron. I've been trying to figure out how I can get the filename of the front-most document in BBEdit, but I'm afraid I just don't grok AppleScript. Are there any kind souls out there who could help me out? I promise to use this as a good opportunity to under

Change font used by "Copy as Styled Text" ?

2012-03-09 Thread Rob Allen
Hi, Is it possible to change the font that's used for "Copy as Styled Text"? It seems to default to Helvetica 13pt. Regards, Rob... -- 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 bbedit@goo

Re: Digest for bbedit@googlegroups.com - 9 Messages in 4 Topics

2012-03-09 Thread Mark Learst
You have to create your own codeless module (or whatever they call them). BTW, getElementById ect… those are basic JavaScript methods to access the DOM and for some reason Rich S. didn't think having basic JavaScript (or the core) syntax high-lighting was needed (according to his emails), so you