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 "" with two carriage returns. The following AppleScript compiles but it doesn't actually do anyth

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 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 langua

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. Ho

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: u

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

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 if I use the HTML palette button an

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-22 Thread John Delacour
At 13:44 -0700 22/06/2011, Warren Michelsen wrote: Why does this code as a Unix filter not delete table column 1? #!/usr/bin/perl s/(^)(.*?<\/td>)(.*?<\/td>)(.*?<\/td>)(<\/tr>)/\1\3\4<\/tr>/; print; Instead, all selected text is replaced with nothing. What about this script is malformed? I

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 Smil

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 ap

Re: GREP Cleanup

2011-05-06 Thread John Delacour
At 17:28 -0400 06/05/2011, you wrote: Ideally I want the regex or reflow to but the attribut , for instance, on char 4, and all the values on char 60. does that make sense? It might make more sense if you wrote out some pseudo-code showing precisely what you wish to achieve. The answer is

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 someth

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: 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: 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 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 set for utf-8, most

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 c

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 using

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 ope

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 subsc

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 document

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 Support/B

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 expec

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

Re: Code Completion for my classes and methods

2011-01-06 Thread John Delacour
On 6 January 2011 23:21, Charlie Garrison wrote: > -- >   Ꮚ Charlie Garrison ♊ > > 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 12,320 characters! JD -- You rece

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 BBEdi

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 misundersta

Re: Scratchpad like window for Unix Script Output?

2010-12-21 Thread John Delacour
On 21 December 2010 22:33, Matt Martini wrote: > This doesn't do what was intended (or at least what I want to see), > I want the Unix Script Output Window to always start out blank.   With your > method above the output of commands would be saved (appended) for > every command.  Not ideal.  I wa

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 >

Re: How to force open files IN BBEdit?

2010-12-11 Thread John Delacour
On 11 December 2010 05:36, ricolich 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 other app Try this Apple/Perl scr

Re: How to sort a list of items comma separated

2010-12-10 Thread John Delacour
On 9 December 2010 18:43, Matt Martini wrote: > > Try this perl script.  You can use it from the command line or you can put it > in >     ~/Library/Application Support/BBEdit/Unix Support/Unix Filters/ Here's another way to to it, which will sort alphabetically even if Bombay is capitalized:

Re: Help using grep

2010-11-22 Thread John Delacour
At 21:22 +0100 22/11/2010, you wrote: On 22.11.2010 11:24, Rene wrote: Works like a charm. Thanks, Roland! But seems to me a bit cumbersome. Yes indeed. Here a Perl script, which is printing out the wished result to your shell in one run:... while () { if (/(.+?)(\d+)\.tif\n/

Re: Windows text editor

2010-11-16 Thread John Delacour
At 08:06 -0600 16/11/2010, Doug Pinkerton wrote: I work in BBEdit, but keep TextWrangler on all of the other Macs I may need to touch around here. We also have a handful of Windows boxes. I need a free tool for them that has roughly the same text editing capabilities as TextWrangler, and an in

Re: ® vs ® and creating shortcuts to submenu

2010-11-07 Thread John Delacour
At 12:01 -0800 07/11/2010, Linda wrote: Sorry, that is what I thought that I said. I want to use ® and not the "r" with a circle around it and not the other way around. It is BBEdit that changes it to the "r" with a circle around it. Why do you want to use these entities like ® at all? They

Re: Replace on Different Line Than Find?

2010-11-02 Thread John Delacour
At 07:58 -0700 01/11/2010, Warren Michelsen wrote: Within each file passed to the Perl script, I want to find the line beginning "movieYear : " and get the four digits following the space and before the line end character. ^movieYear : (\d{4}) I need to append a space and the four digits (w

Re: converting to ascii in the scratchpad for a applescript/service

2010-10-27 Thread John Delacour
At 13:50 -0700 27/10/2010, Paul Ingraham wrote: I just don't seem to know how to convert the stuff on the scratchpad to ASCII. on run {input, parameters} tell application "BBEdit" set wasVisible to visible of scratchpad window set contents of scratchpad w

Re: how to paste in a specific column

2010-10-14 Thread John Delacour
At 08:33 -0700 14/10/2010, jtk wrote: Has anyone figured out how to automatically place a character (e.g., &) in the same column of selected lines? This would be really useful for Fortran continuation lines. So far I can't see how to do it other than spacing one by one over from the end of the t

Re: BBEdit vs TextWrangler

2010-10-13 Thread John Delacour
At 13:31 -0700 13/10/2010, Linda wrote: I just downloaded the demo of BBEdit after using TextWrangler. When I open the same exact document, at the bottom it says "UTF-8, With BOM" in BBEdit and in TextWrangler it is UTF-8. Shouldn't it be the same no matter what editor I open the document with?

Re: Find and move lines to new document.

2010-09-27 Thread John Delacour
At 18:14 -0700 22/09/2010, Coffeeman wrote: ... What I need to do is move all the words with a 4 on their line to a new document completely. There are 75,000 lines with 4 on it in my document so manually moving is not an option. Can you please suggest a method? Write a UNIX filter such as :

Re: tabs and spaces options nightmare!

2010-09-07 Thread John Delacour
At 08:18 -0500 07/09/2010, Dennis Cox wrote: Do you have Auto-expand tabs checked in your prefs? If you turn on invisibles do you get the tab character - a triangle? Preferences --> Editor Defaults ...and it's worth mentioning that when you change the preference the change will apply to wind

Re: tabs and spaces options nightmare!

2010-09-07 Thread John Delacour
At 02:55 -0700 07/09/2010, froddd wrote: Here's my problem: in most, if not all, editors I've used besides BBEdit, pressing the tab key creates a tab, as it should. But then pressing backspace deletes one space at a time, rather than the whole tab... Driving me mad! It is impossible for BBEdit

Re: AppleScript - find

2010-08-22 Thread John Delacour
At 09:57 -0700 21/08/2010, you wrote: When I run the following simple script the result contains only {found:true}. Why is there no found text, found object, etc.? tell application "BBEdit" set findResult to find "" searching in document of window 1 options {search mode:literal, startin

Re: Saved window state frustration

2010-08-13 Thread John Delacour
At 09:15 -0500 13/08/2010, Brian Frick wrote: At one point, there was a setting to save (or not save) window state. In BBE9, it has been moved, removed, changed, or something to the point where I cannot find the setting.  Can anyone direct me to the preference? Open the drawer in Preferenc

Re: Newbie: Scripting a better HOME button?

2010-08-06 Thread John Delacour
At 03:10 +0100 01/08/2010, I wrote: repeat with _i from 1 to _linelength if item _i of _line is not in {space, tab, ASCII character 202} then I've just realized that's not very clever. Should be: set _nbsp to ASCII character 202 repeat with _i from 1 to _linelength if ite

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 with

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 subscribe

Re: Newbie: Scripting a better HOME button?

2010-07-29 Thread John Delacour
At 14:51 -0700 29/7/10, Kendall Conrad wrote: From AppleScript Editor you can open dictionaries for each application. Check out BBEdit's and look for the pieces that let you look at the current line, then you can make use of the regex you gave combined with grep search and you should be on your

Re: Hard Wrap in Text Factories?

2010-07-12 Thread John Delacour
At 21:21 -0700 10/7/10, Doug wrote: I have a boat load of text files that need formatting, and I've made a Text Factory that does everything but one last thing. I don't have the option to do a Hard Wrap on a text file at n (say 70) characters, at least not within a Text Factory. I'm sure I could

Re: Flip a Table

2010-07-09 Thread John Delacour
At 13:12 -0600 7/7/10, LuKreme wrote: On 5-Jul-2010, at 14:48, John Delacour wrote: then it is simple. Just write the following little routine, select the lines in the document you want to reverse and run the script. You don't even need a script. TEt Menu - > Sort lines -> Us

Re: Flip a Table

2010-07-06 Thread John Delacour
At 12:56 -0400 6/7/10, Patrick Woolsey wrote: Both filters and scripts must start with a valid shebang line. The file in question is in my UNIX Filters folder and has the suffix .pl. It has no shebang, like several other filters, and works fine. So does BBEdit know something the manual does

Re: Flip a Table

2010-07-06 Thread John Delacour
At 17:49 -0700 5/7/10, Warren Michelsen wrote: Is this a Perl script? Should it start with: #!/usr/bin/perl Yes; and no, it makes no difference if it is run as a UNIX filter in BBEdit. JD while (<>) { chomp; push @_, $_ } for (reverse @_){ next if /^$/; # ignore blank lines print

Re: Flip a Table

2010-07-05 Thread John Delacour
At 10:37 -0700 5/7/10, Warren Michelsen wrote: ...I'm guessing that Perl is the best tool for this job. It has a reverse function so I'm guessing that the original selection could be read into an array, using "" as delimiters, then regurgitated in reverse order of the original. How you do i

Re: Tag maker always uses tabs, ignores auto-expand setting

2010-06-22 Thread John Delacour
At 16:52 -0700 21/6/10, Semper Fidelis wrote: Have you tried using "Text" -> "Detab..." from the main menu? That strips tabs from a file. Note, however, that if you use some value other than BBEdit's default of "4" as the number of tab spaces to be "detabbed," you will need to adjust the tab v

Re: Diacritic-blind search

2010-06-07 Thread John Delacour
At 12:49 -0700 7/6/10, Greg Shenaut wrote: The normal way to do that is to put [=e=] inside a grep character class, like « v[[=e=]]r », but when I tried that just now in BBEdit, I got a message "The search cannot proceed, because of a syntax error in the Grep pattern: POSIX collating elements

Diacritic-blind search

2010-06-07 Thread John Delacour
When I search documents in various languages in BBEdit I don't want to have to use accents in the search pattern. When I look for "ver" I want to find verse, vérbo and vèrso and not only the unaccented forms, not to speak of Greek. So far as I can see BBEdit is not able to do such searche

Re: Using BBEdit as an external editor for Mail

2010-04-30 Thread John Delacour
At 23:11 +0200 30/4/10, Christian Bogen wrote: Try QuickCursor [1]. I don’t know if it works with Mail, though. [1]Êhttp://www.hogbaysoftware.com/products/quickcursor/ ... where you will read: "It’s also incomplete. It works with some ap

Re: Open 'Read As' Does not include 'other' encodings

2010-04-02 Thread John Delacour
At 13:34 -0700 2/4/10, galaher wrote: ...In my case I would like the option of using the Open menu with the ability to choose Traditional Chinese Big5 HKSCS from the Read As dropdown menu. How do I do this? Go to Preferences::Text Encodings and check those you need. JD -- You received this

Re: BBedit to Excel... (to Access)

2010-03-26 Thread John Delacour
At 21:37 -0700 25/3/10, Flignar wrote: ...I open it in excel, it's fine. Copy it to BBedit,do some grep, paste it back in all the carriage turns make the data populate multiple cells. What is the magic F/Replace I need to do in BBedit that will let me paste everything back into excel. Everythin

Re: OT: terminal settings

2010-03-25 Thread John Delacour
At 11:49 -0700 25/3/10, Steve deRosier wrote: It's painful to open up several windows (sometimes I have 6 or more open per machine) and change the profile via inspector for each one. Have you looked at Terminal's scripting dictionary? For example you can do this from the command line: $ o

Re: Controlling BBEdit via script other than AppleScript

2010-03-10 Thread John Delacour
At 13:15 +0100 10/3/10, Maarten Sneep wrote: The catch is that BBEdit does not process Apple Events while running Unix scripts (including Perl, Python, Ruby, Shell, Tcl, ...). That means that if you run a script from the BBEdit #! menu, you cannot send Apple Events to BBEdit from that script. Th

Re: Controlling BBEdit via script other than AppleScript

2010-03-10 Thread John Delacour
At 16:05 -0800 9/3/10, Kendall Conrad wrote: I know how to use AppleScript with BBEdit to move the cursor, replace content, etc., but can other scripting languages do this as well, such as Python? Look at the last section of the BBEdit SDEF dictionary. Use plain AppleScript for the BBEdit s

Re: Controlling BBEdit via script other than AppleScript

2010-03-10 Thread John Delacour
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

Re: Find-Replace Patterns Via AppleScript

2010-03-04 Thread John Delacour
At 18:38 -0500 3/3/10, Charles Hartley wrote: I'm afraid you're way over my head, but I'm interested in learning how to use this. Save it in your UNIX FIlters folder, open your file in a window and run the filter by clicking it in the palette, where you can also set a key shortcut for it if

Re: Find-Replace Patterns Via AppleScript

2010-03-03 Thread John Delacour
At 12:56 -0800 3/3/10, you wrote: I will have a set of files that follow a pattern of (1) disposable header text that always ends with "VALUES (" which is found only once in the text. (2) the required data that I must preserve. (3) disposable footer text that always begins with ");/*!" which is

Re: Perl/Cwd anomaly

2010-02-08 Thread John Delacour
At 08:11 -0500 8/2/10, Jim Correia wrote: BBEdit passes -I `script’s directory` when executing the script so that local modules are found. By default, it doesn’t mess with the working directory. You can choose “Run…” (hold down the option key) and set “chdir to Script’s Folder” in that dialo

Re: Any (hidden) settings for editing window width?

2010-02-08 Thread John Delacour
At 00:37 -0800 8/2/10, hkrems wrote: Using the 'Apple Magic Mouse' since a couple of days it happens often that I don't seen the text in the editing window. Sure it's my fault: I've touched the surface of the mouse and somehow wiped the text out of sight. But it is annoying Looking at the slider

Perl/Cwd anomaly

2010-02-08 Thread John Delacour
A Perl script I am developing and running from BBE rather than in Terminal begins thus: #!/usr/local/bin/perl use strict; use Cwd; use Math::Trig; use Svgq; Now the module Svgq resides in the same directory as the script and there is no difficulty locating it, whereas getcwd() always return

Perl sub curiosity

2010-01-21 Thread John Delacour
In writing a Perl script I used a subroutine CHECK() and had to change it because it seems to be a reserved name -- it appears syntax-coloured blue unlike any of my other subroutines. I do not generally use the & prefix to run a subroutine, incidentally. That's probably very very bad, but do

Re: shell script to -stdin?

2009-12-10 Thread John Delacour
At 10:44 -0800 10/12/09, outis wrote: >I have placed the following shell script into the "unix scripts" >folder: > >#!/bin/bash > >textutil -fontsize 12 -convert rtf ~/Desktop/*.html > > >As you can see, it simply takes all the .html files on the Desktop and >converts them to .rtf. > >My questions

Re: "make new document" fails after using for a year

2009-11-14 Thread John Delacour
At 11:53 -0800 14/11/09, Mosby wrote: >The error message says "BBEdit doesn't understand the make message." Does it understand 'make window'? 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

Re: Can I preview a webpage with its CSS to see the whole appearance?

2009-09-22 Thread John Delacour
At 05:17 -0700 22/9/09, Pierre DeBois wrote: >If so, how? I can preview a HTML page, but my pages will not show the >entire appearance without the link to the CSS. Perhaps I'm missing something. Either you link to the stylesheet or you copy the style to the . How else can the browser

Keeping BBEdit awake

2009-09-20 Thread John Delacour
With varying frequency I copy text from a browser and paste it into a BBEdit document. If I leave BBEdit idle for too long, it takes several seconds for the application to reawake and these dalys add up to an annoyance. Is there a setting that will prevent BBEdit from dozing off? JD --~--~

Re: Default Window Size does not stick

2009-08-21 Thread John Delacour
At 09:04 -0700 19/8/09, jmpdude wrote: >I'm having the same problem. I just got a new, larger display, and >wanted to reposition all of my default window settings. No matter >what I do, BBEdit is keeping the old positions. So, I'm having to >manually reposition all of my worksheet windows, for

Preview fails in Opera 10.00

2009-08-03 Thread John Delacour
If I drop the file onto the Opera icon there is no problem, and the URI is shown as: but if I select Preview from the Markup menu in BBEdit, the URI is shown as: and I get the following error page: Error! Could not open file You tried to access the address file://localhost/Mac%20Mini/Use

Re: replacing items in sequential list with items from a different list

2009-06-14 Thread John Delacour
At 12:45 -0700 11/6/09, JohnL wrote: >I want to turn the numerals in these lines > > >lorem ipso 240 >>nother ipso 241 >>mas ipsos 242 >> ... > >fini ipsos 26x > >into new numbers so that this is the result > >>lorem ipso 487 >>nother ipso 488 >>mas ipsos 489 >> ... > >fini ipsos 50x In th

Re: Keyboard shortcuts for custom scripts

2009-06-13 Thread John Delacour
At 21:48 -0700 12/6/09, chewy wrote: >I have an applescript under the Scripts menu... >how do I assign a keyboard shortcut to it? Do menu: Window>Palettes>Scripts and use the Set Key button. Jd --~--~-~--~~~---~--~~ You received this message because you are subs

Re: Hard Wrap

2009-06-05 Thread John Delacour
At 21:03 -0600 4/6/09, le...@gmail wrote: >I have a bunch of text files (hundreds, maybe thousands); some are  >hard wrapped at 72 characters, some are hard wrapped at 80 characters,  >a few are hard wrapped at 132 characters, and some are not wrapped at  >all (every paragraph is one line. > >I w

Re: XHTML: Naive question about in (Document Syntax check)

2009-05-31 Thread John Delacour
At 12:52 -0500 31/5/09, Fritz Anderson wrote: >results.xhtml:76: Document type does not permit element "" in >content of element "". > >The header declarations are: > > > JD --~--~-~--~~~---~--~~ You received this messa

Re: 'Encode Entities in Attributes' vs Japanese text in UTF-8: any good reason to use it?

2009-05-19 Thread John Delacour
At 18:13 -0700 17/5/09, mason wrote: >Does anybody know if there is any legitimate reason to encode Japanese >text in HTML tag attribute values, even if you are using UTF-8 text >encoding? > >I am using BBEdit to prune a Japanese company's Dreamweaver-crud >website into something more correct and

Re: Move a Text Line to the Start

2009-05-18 Thread John Delacour
At 12:28 -0700 17/5/09, Warren Michelsen wrote: >Given a text document containing a number of lines separated by line >breaks, I need to find a particular line and move it to the start of >the document. > >Seems like a strategy would be to find the entire document in three parts: >the lines bef

Re: Find word & delete line

2009-05-02 Thread John Delacour
At 22:42 -0700 1/5/09, Greg Reyna wrote: >I'm trying to write a script that will open an ascii file, search for >a word, delete the entire line that word is on, then search again to >EOF, and save. A UNIX Filter such as this ought to do the trick: #!/usr/bin/perl my $word = "something"; while (

Re: Greek letter entities

2009-04-16 Thread John Delacour
At 05:39 -0600 16/4/09, le...@gmail wrote: >...Trouble is, with the exception of π (which is identical to Π) Since when? >none of these seem to display in the preview anymore, thought they are  >all ok when I look at the file with Firefox (but they only display as >lowercase letters). I don't

Re: Highlighting begining/ending character in pairs

2009-03-23 Thread John Delacour
At 19:03 -0700 22/3/09, Zhiva wrote: >...In vim, if you write a function like this: > >function name() { > >mumbojumbo >} > >and put your cursor on the last curly bracket, it will hilight the >first one. Very neat on nested code. > >Does this work on BBedit? Is there a setting I havent found? Pu

Re: Unix Script Output window questions

2009-03-20 Thread John Delacour
At 09:32 -0400 20/3/09, Jim Correia wrote: >On Mar 19, 2009, at 5:35 PM, Tom_P wrote: > >> 1. the Unix Script Output window always comes to the front when "#! -> >> Run" my script. >> This makes drives me mad as it takes my keyboard focus away from my >> script document. Is there a way to cha

Re: Is it possible to hide the project pane?

2009-02-14 Thread John Delacour
At 14:01 -0800 13/2/09, TomP wrote: >Is there a way to hide the project pane? Use the minimize button. JD --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "BBEdit Talk" group. To post to this group, send email to b

Re: Serializing lines in BBEdit

2009-02-13 Thread John Delacour
At 20:50 -0800 10/2/09, djnoyze wrote: >I basically want to search for "0 @000#@ INDI" and upon each find >replace "000#" with an incremental integer on each consecutive find >start at 0001, 0002, 0003, etc. Just create a Unix filter with the following code: #!/usr/bin/perl my $n = 1; while (<>

Re: Deprecated still available via Markup > Font Style

2009-01-22 Thread John Delacour
At 12:27 -0800 22/1/09, interrobang wrote: >...BBEdit...still inserts an for italics when the has >been deprecated in favor of . I'll take my warnings and recommendations from rather than some stormy office, and the use of is considered perfectly valid XHTML 1.1.

Re: Executing Script for any File Open?

2009-01-07 Thread John Delacour
At 06:39 -0800 7/1/09, Mike Conley wrote: > > Not at this point in time. We have a feature request open to provide   >> hooks to Open, Close, Save, and other core events, but as of now, it   >> has not been tackled. > >Thanks, that's pretty much what I figured. > >I'll just sit here, then, and

Re: grep pattern

2008-12-20 Thread John Delacour
At 12:23 -0800 20/12/08, outis wrote: >What would the syntax be to replace: > >{\RL {\ezr Bunches of Hebrew words here}} > >with: > >Bunches of Hebrew words here > >How would I replace everything on either side of the text: the {\RL >{...}} syntax with the .html-like <...> syntax? Try : Search

Re: Tidy-Question about character-Set

2008-12-18 Thread John Delacour
At 23:30 -0800 16/12/08, Karl Pfeiffer wrote: >I have a beginner-question. Using charset=iso-8859-1 or UTF8 and >coding Umlaute like ä with ä >tidy writes back ä and so on (ü,ö,ß ...). Text-encoding (Edit-menu) is >ISO Latin1, line-ending Mac. >How to do that Tidy keeps the encoding? Are you us

Re: [ANN] BBEdit 9.1

2008-12-15 Thread John Delacour
At 13:10 -0500 15/12/08, Morbus Iff wrote: > > I've used Monaco 9 in the past. I've just set Consolas 12, to >> see what all the hoopla is about. Is it supposed to be this fuzzy? > >To answer my own question, yes, yes, apparently it does, as if I turn >off the font smoothing for 12 or lower, it

Re: ad hoc shell filter?

2008-12-13 Thread John Delacour
At 09:54 -0800 13/12/08, gshenaut wrote: >I was hoping for an easy solution to this very basic and obvious >utility, but I guess there isn't one. Let me describe what I want to >do one more time, and then I'll move on. > >(1) Select some text in BBedit >(2) Run the ad-hoc shell pipeline utility.

<    1   2   3