Suppression of 'replace all' confirmation dialogue

2012-02-12 Thread John Delacour
When I do a 'replace all' I don't want BBEdit to tell me the results. Growl does this without requiring me to click an OK. How do I get rid of this pesky alert? JD -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups. To post to

Re: Select part of frontmost document

2011-12-30 Thread John Delacour
At 18:05 + 24/12/11, Phil Dobbin wrote: ...I've got a file I'm wondering is there a way to select all the text between line 1 line 1217 so it can be copied to the Clipboard... Here's a case where AppleScript probably provides the best answer -- for one thing you can choose what to

Re: Large text search

2011-11-10 Thread John Delacour
At 14:24 -0800 10/11/11, Sumtingwong wrote: I have searched everywhere, but cannot find what I need to complete this task. I have a large file in a foreign language, each word separated by a newline. I need to bounce this file off several hundred other files to show the frequency of each

Re: In a TextFactory line how to replace multiple instances of a string?

2011-11-01 Thread John Delacour
At 21:06 -0300 27/10/11, Francisco A. Hirsch wrote: Say I have the following lines that appear multiple times in a text: code captionirrelevant/caption trtdsomething 1/tdtdsomething 2/tdÉtdsomething n/td/tr /code I want to replace all of the td with th using a TextFactory (it's part of a

Re: In a TextFactory line how to replace multiple instances of a string?

2011-11-01 Thread John Delacour
At 18:39 -0400 1/11/11, Ronald J Kimball wrote: Perhaps you meant something like this: #! /usr/bin/perl use strict; my $switch_on; while () { $switch_on = 1 if /caption/; $switch_on = 0 if $switch_on s/td/th/g; print; } __END__ Yes, except that I'd write 'and' and not '', not being

Re: GREP - Matching everything between two delimiters

2011-10-20 Thread John Delacour
At 11:17 -0700 20/10/11, dp wrote: I need to find and replace everything between and including the delimiters !-- Begin value list -- and !-- End value list -- The text to be replaced includes returns. Early attempts with (.*) found only the opening delimiter and the next line, stopped by the

Re: GREP to remove from the 10th Tab to the last character

2011-10-16 Thread John Delacour
At 16:59 -0700 15/10/11, bigga wrote: What I need is to select from the 10th tab character to the last character, and delete. Any assistance is appreciated. \t[^\t]*$ replace with nothing. Interpretation: the end of the line preceded by, in order, a right angle bracket, any number of

Re: Sort order of methods list

2011-10-13 Thread John Delacour
At 08:15 -0700 13/10/11, Govinda wrote: Under the title bar of a window you have a pop-up that may say (no symbol selected) until you are within a subroutine etc. Thanks John, but I don't see that. Am I an idiot here, or what am I missing more subtle than obvious? ?? Here is a screen

Re: Sort order of methods list

2011-10-12 Thread John Delacour
At 08:44 -0700 12/10/11, Govinda wrote: In the old version of BBEdit 9.x the listing of methods in the dropdown was sorted by apha. For example: http://dl.dropbox.com/u/848795/dev/bbeditsort.png could you explain to me how you even get any such list up in your view the first place.

Re: Filepath when editing remote files

2011-10-11 Thread John Delacour
[ bcc to supp...@barebones.com ] At 07:52 -0700 10/10/11, simonzebu wrote: Since installing the trial of BBedit 10, the filepath at the top of the editing window now shows some BBedit internal filepath rather than the filepath to the website on the server. Since I am usually working on

Re: Filepath when editing remote files

2011-10-11 Thread John Delacour
At 08:42 +1300 11/10/11, Tom Robinson in response to simonzebu: See the footer of every message: I really do think it is for the Barebones people and not for their guests on the list to do any necessary policing, as from time to time they do. No self-appointed listmoms are needed. I

Re: Grep - negate expression with quantifier

2011-10-07 Thread John Delacour
At 18:58 +0200 5/10/11, Løseth Tor Rafsol wrote: I have a list of words that are separated by carriage returns. This finds words that are 6 characters long: ^[\w]{6}$ Any suggestion on how to negate this expression so that it finds all the words that are not 6 characters long? If you want

Re: Implementing CTRL+h as BACKSPACE, and a BBEdit AppleScript Bug

2011-10-04 Thread John Delacour
At 12:47 -0700 4/10/11, manyc wrote: When clicked with the mouse via the menu it works exactly as expected-- sending a single BACKSPACE. When assigned to a key command such as CTRL +h, however, it deletes whitespace with a single hit yet will delete an entire word rather than a single character

Re: sh script

2011-10-01 Thread John Delacour
At 15:30 -0500 1/10/11, Chip Warden wrote: It looks like you have a space in your shebang line where it shouldn't be. The line should look like: #!/bin/bash not: #! /bin/bash I know Wikipedia occasionally gives a bum steer http://en.wikipedia.org/wiki/A_bum_steer but here's what it says

Re: possible to set upper case tags as the default?

2011-09-29 Thread John Delacour
At 11:40 -0700 29/9/11, blinde wrote: actually, i use the utilities palette... but i'm looking for a setting so i don't have to do this manually... i would always get upper case tags... anyone else? If Barebones were ever to make it possible to have upper case tags inserted with their

Re: Repeating a Grep Search Until It Fails

2011-09-24 Thread John Delacour
At 16:33 -0400 24/9/11, Ronald J Kimball wrote: .. Here's a Perl script that does it: #!perl -p s{(«)([^»]+)(»)}{my $x = $2; $x =~ tr,A-Za-z0-9 -,,cd; $1$x$3}ge; __END__ It works with this: one «abç» two «abc∂» three «aßcdé» but not with this: one «a®bc» two «abc®™» three «®®a» and

Re: Repeating a Grep Search Until It Fails

2011-09-24 Thread John Delacour
At 01:03 -0700 24/9/11, Rick Gordon wrote: How can I set up a grep search that will repeat looping through the document until all instances have been processed? For instance, say I've set up markers (« and ») around target source strings, and want to process thos strings to remove any

Re: Repeating a Grep Search Until It Fails

2011-09-24 Thread John Delacour
At 00:34 +0100 25/9/11, John Delacour wrote: #!/usr/local/bin/perl... Sorry! That should probably be #!/usr/bin/perl on most people's systems. JD -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups. To post to this group, send

Re: Repeating a Grep Search Until It Fails

2011-09-24 Thread John Delacour
At 19:54 -0400 24/9/11, Ronald J Kimball wrote: When I run this filter on your sample text, I get the following result: http://gyazo.com/5bc49629f7d4b0faf663634585fd6355.png What am I doing wrong? I'm not sure. Both the target file and the filter script were encoded as my default UTF-8

Re: Repeating a Grep Search Until It Fails

2011-09-24 Thread John Delacour
At 09:52 +1000 25/9/11, Charlie Garrison wrote: Sorry! That should probably be #!/usr/bin/perl on most people's systems. Or make it more generic; #!/usr/bin/env perl That will use the first perl found in $PATH. In fact for Text Filters #!perl is enough, as I've just discovered from

Re: Repeating a Grep Search Until It Fails

2011-09-24 Thread John Delacour
At 10:13 +1000 25/9/11, Charlie Garrison wrote: Rather than: use encoding 'utf-8'; Try: use encoding 'utf8'; It could be that 'utf-8' is an alias for 'utf8', so may not make any difference, but 'utf8' is the correct value. Have you tried it? It simply does not work, and it is NOT the

'perl: warning: Setting locale failed' with BBEdit 10.0.2 (3095)

2011-09-18 Thread John Delacour
At 12:57 -0400 18/9/11, Rich Siegel wrote: A new 10.0.2 pre-release build is now available. At 11:38 -0700 18/9/11, Aman wrote: Some one has already created a text filter for putting text in decent looking columns.. Please see this page: http://entable.s3.amazonaws.com/index.html I

Re: [ANN] BBEdit 10.0.2 (3091) pre-release

2011-09-12 Thread John Delacour
At 13:44 -0400 12/09/2011, Rich Siegel wrote: * Unix filters (run from the Apply Text Filter menu) now accept the selection on `STDIN`. This is a change from previous versions, in which BBEdit wrote a temporary file and passed it as `argv[0]`. If you have any Unix scripts in the

Re: Rewrap quoted text service using BBEdit

2011-09-09 Thread John Delacour
At 05:43 -0700 09/09/2011, erikmh wrote: Here's what I have: on run {input, parameters} tell application BBEdit set wasVisible to visible of scratchpad window set contents of scratchpad window to input set w to open scratchpad window rewrap quoted text w width 68 with

Re: line comments for Text Un/Comment Selection?

2011-09-09 Thread John Delacour
At 11:02 -0700 09/09/2011, Michael T. Wescoat wrote: defaults write com.barebones.bbedit LanguageSpecific:PreferLineCommentsWhenCommenting -bool YES I have also restarted BBEdit twice since doing this. However, my efforts have failed to restore the desired preference for line comments. Can

Re: Can someone explain ctags to me?

2011-09-07 Thread John Delacour
At 14:45 -0700 07/09/2011, Alex Popescu wrote: 3. when saving the script make sure that it is saved as Script + Run only (nb: according to the documentation the script must be compiled and I assume Run only option means it is compiled) I have not experimented with the application under

Re: Help with applescript for BBEdit formatting

2011-09-06 Thread John Delacour
At 10:27 -0700 06/09/2011, Rick Yentzer wrote: Am I looking in the wrong spot? At 09:47 -0700 06/09/2011, Oliver Taylor wrote: It should be very easy to assign a shortcut to a clipping. Just pull up the clippings palette and use the set key button to assign a shortcut. -- You received

Re: GREP/Regex for dummies?

2011-09-06 Thread John Delacour
At 14:58 -0400 06/09/2011, Jefferis Peterson wrote: IOW, what is the symbol for optional but not necessary spaces? This should be near the first page of anything you read about regex. ab\s*c will match abc and ab[any amount of white space]c Paste this into a BBEdit doc and run it from

Re: BBEdit - Find Replace using a list

2011-09-02 Thread John Delacour
At 04:00 -0500 02/09/2011, Christopher Stone wrote: Save the script as an Applescript and put it in the BBEdit script menu. Give it a handy keyboard shortcut. Open your saved 'EN' text file template from the directory you wish to create the new files in. Run the script. Ditto for my

Re: Help with writing applescript for BBEdit

2011-09-02 Thread John Delacour
At 11:05 -0700 02/09/2011, Rick Yentzer wrote: I'm attempting to write an applescript that will automate some keystrokes. What I want to occur is when I'm inside a tag like so: taginsertion point/tag I want to be able to run the script to get the following format: tag insertion point

Re: BBEdit - Find Replace using a list

2011-09-01 Thread John Delacour
At 17:05 -0700 31/08/2011, JT wrote: ...I have 30 language files that I automate graphics production and the text files are identical except each one calls a new file in the path. For example, file://KR.tif and I need to change the 'KR' to AU, GB, DK and so on and save each find and replace

Re: Scripting search/replace

2011-08-23 Thread John Delacour
At 13:54 -0700 20/08/2011, verdonv wrote: Hi Chris, Thanks for the feedback and the example. I like the simpler pattern too :-) As to why I am activating it from a clipping, well because it is part of a bigger set of clippings. So far as I can see you can use shell scripts in clippings

Re: Scripting search/replace

2011-08-23 Thread John Delacour
At 09:03 -0400 20/08/2011, Verdon Vaillancourt wrote: I am writing a tiny applescript, that I invoke with a clipping, to do a search/replace on a string and return the string. I'm mostly there. My string might look like this... C EM Am7F The result looks like this... [C] [EM]

Re: How to make a feature request for moveable (variable) tab stops?

2011-08-20 Thread John Delacour
At 14:04 -0700 19/08/2011, Watts Martin wrote: ...or what he needs to do is to set space-filled columnar data in the way of an old punch card, i.e.: [-field-][-field-][---field---] text more text starting here other text foobar walla walla bing bang23skidoo

Re: Find BBEdit support folder via AppleScript

2011-08-19 Thread John Delacour
At 21:46 -0400 18/08/2011, Rich Siegel wrote: On Thursday, August 18, 2011, Watts Martin lay...@gmail.com wrote: ...it probably has to be something the script figures out on its own. In any running AppleScript, path to me returns (what looks like) an alias to the script. To find the

Re: Insert date with GREP

2011-08-18 Thread John Delacour
At 10:23 +0200 18/08/2011, Mark wrote: Does anybody know if there's a way to enter today's date via search and replace? I have files with strings like this imported2009-02-12/imported and I'm processing them with a text factory that does a lot of other stuff. I would like it to also change

Re: Insert date with GREP

2011-08-18 Thread John Delacour
At 15:52 -0400 18/08/2011, Ronald J Kimball wrote: Although you add 1900 to the year, I think you forgot to add 1 to the month returned by localtime. Yep :-[ Here are two alternate ways to format today's date: my @date = localtime; my $date = sprintf %04d-%02d-%02d, $date[5] + 1900,

Re: No authenticated open/save in the App Store version

2011-08-17 Thread John Delacour
At 14:00 -0700 17/08/2011, crag wrote: Of course I figured it would be easier for future upgrading... I have always found upgrading with BareBones direct about as easy as it gets. You won't ever see me anywhere near the App Store. BBEdit doesn't suck but I bet App Store does, like so many

Re: creating multiple paragraphs

2011-08-16 Thread John Delacour
At 21:21 -0700 02/08/2011, Ken Lanxner wrote: Hi. Prior to v. 10, I could select a list of lines separated by two or more line breaks and invoking Paragraph would wrap each line in paragraph tags. The following short Perl text filter ought to do what you want: #! /usr/bin/perl chomp ($_ =

Re: Save question in Lion

2011-08-16 Thread John Delacour
At 12:34 +0200 16/08/2011, Marek Stepanek wrote: ...I did not realized, that the normal user is not able to save files into ~/Library any more ... What is this? How are we supposed to do it? Apple is putting us more and more under tutelage. iSpy Even in SL I find navigating in the Save

Re: BBedit 10: Images and Alternative Text

2011-08-16 Thread John Delacour
At 15:42 -0700 16/08/2011, steveax wrote: On Aug 16, 3:22 pm, LuKreme krem...@kreme.com wrote: Since an alt tag is REQUIRED it makes sense to supply one, else the code BBEdit inserts for the image is syntactically invalid. Not in HTML5, and in any case, inserting the filename is a

Re: Incrementing numbers in a rectangular selection

2011-08-13 Thread John Delacour
At 21:10 -0500 12/08/2011, Christopher Stone wrote: On Aug 12, 2011, at 11:50, John Delacour wrote: Place the cursor anywhere in a line consisting of variable1 ...the line content is not propagated on my system. Starting with the cursor in the variable line the variable gets eaten

Re: Greedy GREP

2011-08-13 Thread John Delacour
At 23:50 -0500 12/08/2011, Christopher Stone wrote: Ronald will no doubt come up with something brilliant, and JD will likely come up with a nice Perl filter. :) You bet! #! /usr/bin/perl while () { $found++ if /^time/i; print if $found == 2; } That's presuming you have something

Re: Greedy GREP

2011-08-13 Thread John Delacour
Let's try that again with HTML. Google always gets plain text wrong in the display in the web archive. Google things are designed by neanderthals with no idea what an RFC is. I wish Barebones would transfer the list to ListServ or some other decent list server. #! /usr/bin/perl while () {

Re: Incrementing numbers in a rectangular selection

2011-08-12 Thread John Delacour
At 00:54 -0500 12/08/2011, Christopher Stone wrote: Script one will operate on the selected variable name OR let you enter a variable name IF no text is selected... Place the cursor anywhere in a line consisting of variable1 This script supposes you want n similar variables with incrementing

Re: Is there no longer a palette for simple HTML formatting?

2011-08-12 Thread John Delacour
At 12:53 -0700 12/08/2011, Alain Paradis wrote: There is a paletter. It took a lot of clicking before I found it. Go Window [menu], then Palettes. Then the hidden fact is that HTML Markup Tools is clickable. That'll give you the palette I'm guessing you're looking for. I think you'll also

Re: Windowless AppleScript?

2011-08-11 Thread John Delacour
At 01:24 -0700 11/08/2011, Walter Ian Kaye wrote: ...what do you think of a notion of being able to harness BBEdit to manipulate text *without* a window? Like, instead of 'tell text document 1' it could be 'tell someTextObject'? I think I'm typing in my sleep... I think so too. When you

Re: Applescript pasting help

2011-08-11 Thread John Delacour
At 09:55 -0700 11/08/2011, Watts Martin wrote: What I want to do is make it behave like the Paste command: either insert the new Markdown text at the insertion point, or replace the selected text if there's a selection. But so far I've had no luck in figuring out how to do this ...set

Re: Incrementing numbers in a rectangular selection

2011-08-11 Thread John Delacour
At 01:08 +0200 12/08/2011, Roland Küffner wrote: Speaking of rectangular selections ... Why? How much time and bother does it take simply to make such a selection? This works quite well whilst the numbers do not cross a decimal border (9 - 10, 99 - 100, etc. - the character count is no

Re: Scripts that report information about selected text?

2011-08-10 Thread John Delacour
At 11:00 -0700 10/08/2011, rowen wrote: I'd want to write a script that reports the sum and mean of a column of numbers that are selected using column selection. I have a Python text filter that does this now with normally selected text (working on the first number found on each line), but it

Re:

2011-08-10 Thread John Delacour
At 23:32 +0100 10/08/2011, Jean-Baptiste wrote: -- Jean-Baptiste Sent with http://www.sparrowmailapp.com/?sigSparrow A pigeon might have been more successful! -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups. To post to this

Re: How to get an unsaved document's selection from a UNIX script?

2011-08-09 Thread John Delacour
At 08:46 -0700 09/08/2011, Prachi Gauriar wrote: I want to automatically produce Java accessor methods (getters/ setters) for the instance variables that I have selected in BBEdit. My plan is to use a script to read the selection from BBEdit, generate the accessors, and put the accessor methods

Re: Clipping and indent

2011-08-09 Thread John Delacour
At 21:56 -0700 08/08/2011, Prachi Gauriar wrote: While, John's suggestion of using a UNIX filter is a bit cleaner than this AppleScript + Clipping stuff, the unfortunate thing about UNIX filters is that if you don't have anything selected, it operates on the entire text of the selection, which

Re: Clipping and indent

2011-08-08 Thread John Delacour
At 06:34 -0700 08/08/2011, verdonv wrote: Well, I think I'm on the right track combining applescript with a clipping, but I'm missing something really basic in my applescript. Seems a rather clumsy way to do things. You can do it with a simple text filter (UNIX filter). Here's one in Perl

Removing menu key equivalents

2011-08-08 Thread John Delacour
I've already mentioned how long it took me to hit upon the trick to edit menu key equivalents. The problem now is how to remove the key shortcuts. If I type option-return (just a very unintuitive gamble) the shortcut disappears, only to return as soon as I type return. How is it done? JD

Re: Removing menu key equivalents

2011-08-08 Thread John Delacour
At 13:10 -0500 08/08/2011, Christopher Stone wrote: On Aug 08, 2011, at 12:35, John Delacour wrote: ...The problem now is how to remove the key shortcuts. If I type option-return (just a very unintuitive gamble) the shortcut disappears, only to return as soon as I type return. Where

Re: Document Info in BBEdit 10

2011-08-03 Thread John Delacour
At 06:49 -0500 03/08/2011, Christopher Stone wrote: Never did click a button; pressed a keyboard shortcut. Despite the fact that the status bar display has been around a long time, I've nearly always used the dialog. Vertical list; easier to read; provided both document and selection

Re: (Case 213150) Windows not cascading

2011-07-31 Thread John Delacour
At 20:41 -0400 30/07/2011, Rich Siegel wrote: I just checked here, and was able to verify that windows cascade down and to the right, as expected. I'm wondering if perhaps you have a menu script attached to File•New Text Document that forces a particular window shape; or if some other setting

Re: (Case 213150) Windows not cascading

2011-07-31 Thread John Delacour
At 20:41 -0400 30/07/2011, Rich Siegel wrote: ...I'm unable to duplicate the observed behavior here (and I don't recall seeing any other reports of it so far). ...I also zipped Application Support/BBEdit and deleted the folder. This does not change the behaviour. I deleted

Assigning Keys to Menu Commands

2011-07-30 Thread John Delacour
On page 324 of the manual I read: To set the key equivalent for a menu command, locate and select the entry for the command under the appropriate menu, click the Set Key button, and type the desired keystroke. A picture is shown of the new short slithery slidy preference pane, which shows

No math OR SVG in HTML5

2011-07-30 Thread John Delacour
The following page passes validation at w3.org: http://bd8.com/temp/math_svg.html as you will see if you click the validation link. BBEdit regards anything relation to the math and svg content as an error, which means I have no way of validating the code within BBEdit. Not only that, it is

Re: Extensive Horizontal Scroll?

2011-07-29 Thread John Delacour
At 18:42 -0700 19/07/2011, Dan wrote: Is there any reasoning behind the extensive available document horizontal scroll even if no text extends beyond the window boundary? Seems odd to my eye. Since most editors I'm used to don't show the horizontal scroll bar unless necessary, it indicates

Re: What's the BBEdit Sales Pitch?

2011-07-28 Thread John Delacour
At 20:49 -0700 27/07/2011, Brett Kelly wrote: If somebody asked me why I use vim, I'd tell them it's because you can configure it to do just about anything you want, you never have to touch the mouse and there is a vibrant, active developer community surrounding it that has built all manner of

Re: What's the BBEdit Sales Pitch?

2011-07-28 Thread John Delacour
At 10:33 -0400 28/07/2011, Tim Gray wrote: As someone who is using more Vim nowadays (MacVim is pretty nice), I would probably abandon it completely if BBEdit had a Vim mode. Especially one that included word and sentence motions... What do these motions achieve? Something that cannot be

Re: What's the BBEdit Sales Pitch?

2011-07-28 Thread John Delacour
At 10:38 -0500 28/07/2011, David Kelly wrote: Can we use BBEdit to compose email in Mail.app? :-) Of course you can, provided you are prepared to suffer using Mail.app at all and tolerate its very stupid scripting dictionary. You can also do it using less awful mail clients. I use mutt

Re: What's the BBEdit Sales Pitch?

2011-07-28 Thread John Delacour
At 12:55 -0400 28/07/2011, Tim Gray wrote: Of course, the whole thing about a modal editor like Vim is that you don't have to do all kinds of crazy key combos like command-control-key to run your command. But you do need to change mode, which requires some action on your part other than

Re: Search and replace multiple combinations at once?

2011-07-27 Thread John Delacour
At 10:03 -0700 27/07/2011, jgold723 wrote: I'm using BBEdit 8 (but willing to upgrade if necessary). I have a series of search and replace strings that I need to perform on a document. I'd like to build these once, then have BBEdit run them all on the document. Can that be done? How? The

Re: Sliding BBEdit 10 preferences

2011-07-24 Thread John Delacour
At 00:29 -0700 24/07/2011, Shai wrote: The new preference window in BBEdit 10 is proving to be annoying with its constant sliding up and down [...] you need to scroll to find the category you're interested in. Does anyone else feel the same? Yes, very much so. I'm sure most BBEdit users

Re: Can't stop BBEdit Progress

2011-07-24 Thread John Delacour
At 23:21 +0100 23/07/2011, Jason Davies wrote: Anything in Console? On 23 Jul 2011, at 19:21, John Delacour johndelac...@gmail.com wrote: As I write I have a progress window entitled 'BBEdit Progress' with a Stop button. I have no idea what is in progress... Nothing logged for BBEdit

Re: I give…what's an MDI window.

2011-07-24 Thread John Delacour
On 23 July 2011 22:46, Brett 476...@gmail.com wrote: I've searched the help file, the manual, and the Web site and nowhere is their an explanation of what MDI is. At least I couldn't find it. MDI is mentioned often in the release notes but no explanation is ever given. Could someone enlighten

Re: sites in 10

2011-07-24 Thread John Delacour
At 06:45 -0400 24/07/2011, Gabriel Roth wrote: On Sun, Jul 24, 2011 at 4:31 AM, Ken Lanxner mailto:k...@simplelives.comk...@simplelives.com wrote: How do you set the default site now in v. 10? I'm sure it is right in front of my eyes. Scripts Menu Web Sites Change Default Site. I have

Windows not cascading

2011-07-24 Thread John Delacour
Manual p 132 states: By default, new windows always stack down and right 20px. If you have saved a default window size, and that window is of full screen height, new windows will just stack to the right, and preserve their saved height. BBEdit 10 seems to to be blind to many of my previous

Re: Document type blindness

2011-07-23 Thread John Delacour
At 11:54 +1000 23/07/2011, Charlie Garrison wrote: On 22/07/11 at 9:49 PM +0100, John Delacour johndelac...@gmail.com wrote: using terms from application BBEdit make window with properties {source language:perl, Not sure it if it makes any difference, but try setting source language

Re: Simple search and replace script question

2011-07-23 Thread John Delacour
At 03:35 -0700 23/07/2011, Albert Frantz wrote: I'm brand new to BBEdit (love it!) and am trying to write a simple search and replace script. For now, I'm just trying to get it to find and replace /pp with two carriage returns. The following AppleScript compiles but it doesn't actually do

Re: What am I missing in BBEdit 10?

2011-07-23 Thread John Delacour
At 11:35 -0600 23/07/2011, LuKreme wrote: Ok I broke it. If I drag Screen Shot 2011-07-23 at 11.30.15 AM into either an editing BBEdit HTML doc or a. Brand new one, nothing happens 10.7 10.0.0 No problem here in 10.6.8 I created the file like this: 1 8 : 5 2 : 5 9 U s e r : j d

Can't stop BBEdit Progress

2011-07-23 Thread John Delacour
As I write I have a progress window entitled 'BBEdit Progress' with a Stop button. I have no idea what is in progress. It does not prevent my doing whatever I want to do in BBE. If I press the Stop button there is no reaction at all. If I press either ESC or command-dot there is a

Re: What am I missing in BBEdit 10?

2011-07-22 Thread John Delacour
At 10:07 -0700 22/07/2011, NotInUse wrote: I can absolutely state, without fail that no image insertion, whether via the HTML palette button, or dragging from the desktop to a document or from anywhere is inserting the full HTML markup for an image tag. I get img src=file path alt=* some text *

Re: What am I missing in BBEdit 10?

2011-07-22 Thread John Delacour
At 13:48 -0400 22/07/2011, Tim Gray wrote: On Jul 22, 2011 at 06:42 PM +0100, John Delacour wrote: Type control-command-n, type return, drag an image from the Finder to the insertion point. Are you saying that produces nothing? That's what happens for me. The jpg icon gains a green plus

Document type blindness [was What am I missing in BBEdit 10?]

2011-07-22 Thread John Delacour
At 14:22 -0400 22/07/2011, Seth Dillingham wrote: I did notice that new documents are no longer created as HTML by default OMM, and I seem to have misplaced the default language setting. I don't know how wide this new blindness is, but the script I use for creating a new Perl document:

Re: Thoughts and questions on v10

2011-07-22 Thread John Delacour
At 13:19 -0700 22/07/2011, Jay wrote: Find and replace also seems less functional in version 10... maybe it's just my workflow, but I much prefer the old modal find replace window, for two main reasons. BBEdit Help says: The old modal Find dialog is deprecated and no longer supported.

Re: Delete Table Column X

2011-06-22 Thread John Delacour
At 22:50 -0700 21/06/2011, Warren Michelsen wrote: When run, this warns me that Unix filters require Unix line endings and that temp.pl does not have them. That's odd. What programme did you use to create the script? I didn't have this problem with AppleScript Editor but I can imagine

Re: Delete Table Column X

2011-06-22 Thread John Delacour
At 07:19 -0700 22/06/2011, Warren Michelsen wrote: OK, I get it. It just changes the typed digit. Concocting the script to find/replace is for me to do! RIght! Exactly as I said at the time. And if you'd taken the trouble to see what it was doing, you would not have needed to post your next

Re: Delete Table Column X

2011-06-21 Thread John Delacour
At 08:10 -0700 21/06/2011, Warren Michelsen wrote: What I'd prefer, of course, is a more generalized solution that can handle any number of columns and delete any column designated. So I'm wondering if maybe a shell script is the solution. I often employ Perl scripts saved within the script

Re: Returning Unix filter output in new window

2011-05-06 Thread John Delacour
At 21:42 -0700 05/05/2011, Hertze wrote: But then I would need a way to pass the contents of my window (the text that will be converted) to the script and then have it output in a new window. Is that possible? I've tried it in the past with no luck. Well then, make a UNIX filter and do

Re: Returning Unix filter output in new window

2011-05-05 Thread John Delacour
At 09:14 -0700 05/05/2011, Hertze wrote: I've managed to create a shell script...which converts the contents of a window to LaTeX and overwrites its contents. Is there some way to make a Unix filter return the output to a new window instead? Use a UNIX *script* rather than a filter. From the

Re: Can't see Greek pasted into BBEdit

2011-05-02 Thread John Delacour
On 02/05/2011 at 20:56, krem...@kreme.com (LuKreme) wrote: On May 1, 2011, at 9:46, Will Mayall may...@fogcity.com wrote: If I paste the following (I hope it appears) into a document in BBEdit, I see nothing: більше ніж варто Make sure the font you a using for BBEdit has a complete glyph

Re: osascript in a clipping?

2011-05-02 Thread John Delacour
At 17:37 -0500 30/04/2011, Fritz Anderson wrote: ...FRONT_DOC = `osascript -e 'tell application BBEdit to POSIX path of \(file of document 1 as string\)'` and BBEdit hangs as the Apple Event re-enters it... This will always happen in any application. If you create and run this as a UNIX

Re: transliterate into cyrillic

2011-03-12 Thread John Delacour
At 04:51 -0800 12/03/2011, eleven wrote: I would still like to know if it is even possible to do transliteration chores like this within BBEdit thru a text factory or similiar, as well as any wisdom as to how to go about it... Your problem here is that is is not simple transliteration. You

Re: transliterate into cyrillic

2011-03-10 Thread John Delacour
At 10:00 +0100 10/03/2011, you wrote: Below are a few examples of garbled Cyrilic from a web page (this happens to be a CD track list). Is there a simple direct way to transliterate or re-encode these into proper Cyrillic characters using BBEdit? I've tried all the charsets in the 'Reopen

Re: Saving a text window via Applescript

2011-02-12 Thread John Delacour
At 00:54 -0600 12/02/2011, Christopher Stone wrote: tell application BBEdit tell front text window tell its document to save text end tell end tell Is there not a better way? tell application BBEdit to save the front document JD -- You received this message because you are

Re: Saving a text window via Applescript

2011-02-12 Thread John Delacour
At 03:12 -0600 12/02/2011, Christopher Stone wrote: On Feb 12, 2011, at 03:02, John Delacour wrote: tell application BBEdit to save the front document __ Well duh John. The point is that I'm already operating within

Re: Scratchpad location

2011-02-08 Thread John Delacour
At 21:09 -0800 07/02/2011, Patrick Teng wrote: I was wondering where is the location of the scratchpad file, and if I can change the location of that file. I would like to store the scratchpad file in my Dropbox folder so that I can access it anywhere. It is in ~/Library/Application

Re: Applescript: Execute a line in a worksheet

2011-02-08 Thread John Delacour
At 12:18 -0600 08/02/2011, Christopher Stone wrote: Is there a way to execute a line in a worksheet via Applescript? I've got a script that preassembles a command and opens it in a new worksheet, and I'd like for the script to execute the line as well to save me a step. You do mean

Re: Grep question: Replacing data that do not match criterion

2011-01-28 Thread John Delacour
At 13:32 -0500 28/01/2011, you wrote: On Thu, Jan 27, 2011 at 09:22:43PM -0800, steveax wrote: $tldn = '(com|net|edu|gov|int|mil|org|biz|name|coop|aero|info|[a-z][a-z])'; #most valid top level domains That list is a bit out of date these days, no? What tlds is it missing that you

Re: AppleScript: Open Hidden Files like httpd.conf

2011-01-27 Thread John Delacour
At 07:14 -0800 27/01/2011, shlepper wrote: After Migration from Tiger finally to a Intel-Optimized Mac OS some of my Script aren't working: Under Tiger it worked excellent: tell application BBEdit activate open {file MYHD:private:etc:httpd:httpd.conf} without LF translation...

Sticky Perl errors windows

2011-01-06 Thread John Delacour
I've written to BareBones about what I consider an annoying inconvenience in the latest versions and that is that when a (Perl) script throws an error and puts up an error window that window does not autoclose once the error is corrected and the script run successfully. I've been using

Re: Code Completion for my classes and methods

2011-01-06 Thread John Delacour
On 6 January 2011 23:21, Charlie Garrison garri...@zeta.org.au wrote: --   Ꮚ Charlie Garrison ♊ garri...@zeta.org.au O ascii ribbon campaign - stop html mail - www.asciiribbon.org 〠  http://www.ietf.org/rfc/rfc1855.txt I obviously need to swat up on my ASCII. I never realised it contained

Re: UltraEdit

2011-01-04 Thread John Delacour
At 10:12 +0100 04/01/2011, Maarten Sneep wrote: From what I understand, UtraEdit is written using wxWindows. Any crappy behaviour you see can be caused by either the UI kit they use, or a misunderstanding on the programmers' side of how a true Mac application should behave. ... a

Re: Applescript Insertion Point

2010-12-20 Thread John Delacour
On 20 Dec 2010, at 21:47, Christopher Stone wrote: This errors: tell application BBEdit try tell front text document properties of (get insertion point) end tell on error errMsg number errNum Error: errMsg return Error Number: errNum end try end tell Is my

Re: How to force open files IN BBEdit?

2010-12-11 Thread John Delacour
On 11 December 2010 05:36, ricolich richard.ronnb...@publishingkonsult.se wrote: I was probably not very clear in my question:... ... I just want to be able to open the file and view it's content in BBEdit, just as I can with any other type of text file, without BBEdit handing it over to any

<    1   2   3   >