BBEdit AppleScript Problem
I can't figure out why this AppleScript is not working. I'm trying to do the following: Starting with a selection of multiple lines, beginning at a line start and ending with a return, I want to: (1) shift the selection one increment to the right; (2) add an opening div tag before it, preceded but the number of tabs that preceded the first line of the selection before the shift; (3) add a closing dive tag after it, similarly tabbed. The script runs fine, and returns what I would expect, until the last action, the Replace line. But the replacement replaces all the text with two garbage characters. Several variants for addressing the target string are listed, but it's not working either way. Here's the script. Any help -- or an easier approach -- is welcome. Thanks. Rick Gordon set vOpeningTag to div class=\keep\ return set vClosingTag to /div return tell application BBEdit 10 set vSelection to selection tell vSelection set vTabLeader to (find ^ + options {search mode:grep, showing results:false} searching in contents) shift direction right end tell set vSelection to selection tell vSelection set vStart to characterOffset set vEnd to characterOffset + length end tell set vOpeningTag to vTabLeader vOpeningTag set vClosingTag to vTabLeader vClosingTag tell document 1 set vTarget to a reference to characters vStart thru vEnd -- OR set vTarget to characters vStart thru vEnd tell contents of vTarget -- OR tell vTarget replace (?s)(.+) using vOpeningTag \\1 vClosingTag options {search mode:grep, showing results:false, extend selection:true} end tell end tell end tell -- ___ RICK GORDON EMERALD VALLEY GRAPHICS AND CONSULTING ___ WWW: http://www.shelterpub.com -- 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@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com 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 supp...@barebones.com rather than posting to the group. Follow @bbedit on Twitter: http://www.twitter.com/bbedit
RE: BBEdit AppleScript Problem
Ah, I got it. I needed to set vTabLeader to found text of the find operation. Rick Gordon -- On 7/20/12 at 1:43 AM -0700, Rick Gordon wrote in a message entitled BBEdit AppleScript Problem: I can't figure out why this AppleScript is not working. I'm trying to do the following: Starting with a selection of multiple lines, beginning at a line start and ending with a return, I want to: (1) shift the selection one increment to the right; (2) add an opening div tag before it, preceded but the number of tabs that preceded the first line of the selection before the shift; (3) add a closing dive tag after it, similarly tabbed. The script runs fine, and returns what I would expect, until the last action, the Replace line. But the replacement replaces all the text with two garbage characters. Several variants for addressing the target string are listed, but it's not working either way. Here's the script. Any help -- or an easier approach -- is welcome. Thanks. Rick Gordon set vOpeningTag to div class=\keep\ return set vClosingTag to /div return tell application BBEdit 10 set vSelection to selection tell vSelection set vTabLeader to (find ^ + options {search mode:grep, showing results:false} searching in contents) shift direction right end tell set vSelection to selection tell vSelection set vStart to characterOffset set vEnd to characterOffset + length end tell set vOpeningTag to vTabLeader vOpeningTag set vClosingTag to vTabLeader vClosingTag tell document 1 set vTarget to a reference to characters vStart thru vEnd -- OR set vTarget to characters vStart thru vEnd tell contents of vTarget -- OR tell vTarget replace (?s)(.+) using vOpeningTag \\1 vClosingTag options {search mode:grep, showing results:false, extend selection:true} end tell end tell end tell -- ___ RICK GORDON EMERALD VALLEY GRAPHICS AND CONSULTING ___ WWW: http://www.shelterpub.com -- 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@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com 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 supp...@barebones.com rather than posting to the group. Follow @bbedit on Twitter: http://www.twitter.com/bbedit -- ___ RICK GORDON EMERALD VALLEY GRAPHICS AND CONSULTING ___ WWW: http://www.shelterpub.com -- 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@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com 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 supp...@barebones.com rather than posting to the group. Follow @bbedit on Twitter: http://www.twitter.com/bbedit
Re: 9.6.3 Open file - how to change displayed files from 'modified' list to 'created' list?
Good afternoon, Not really a BBEdit issue, standard OS feature, but to answer your question On 19/07/12 at 1:01 PM -0700, hill guitar hillguitarcomp...@gmail.com wrote: BUT I have not been able to create a query to address changing this criteria in BBedit help or user manual, as one would might do using the Show View Options in the View pull down in the Finder. Anyone got a suggestion? Thank you. Change to list view, right-click column header, add the Date Created column. Charlie -- Ꮚ Charlie Garrison ♊ garri...@zeta.org.au O ascii ribbon campaign - stop html mail - www.asciiribbon.org 〠 http://www.ietf.org/rfc/rfc1855.txt -- 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@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com 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 supp...@barebones.com rather than posting to the group. Follow @bbedit on Twitter: http://www.twitter.com/bbedit
Re: BBEdit looks quite bad on Retina MBP
Have been using BBEdit on my Retina MacBook pro and noticed any problems or fuzzy text at all. Cannot see any difference between its display on the macbook or on an attached apple LED... -- 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@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com 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 supp...@barebones.com rather than posting to the group. Follow @bbedit on Twitter: http://www.twitter.com/bbedit
Re: Coda 2 is nice, but no match for BBEdit
Also given Coda 2 a try after using BBEdit for more than 10 years. As I do not like some of the changes they have made in version 10. But a lot of things simply do not work in Coda or are not included. Such as balance tags. The BBEdit preview is nice but updates too often and I do not like the icons on top of the window that do not do anything, just take up screen space, also every time you hit preview you get a new window. Installed LifeReload instead, Safari even scrolls down to were you were before and you get the console etc. Fixed some other annoying version 10 things and shortcoming by adding clippings for them. But do not understand why Barebones keeps taking good features away or replacing them with more complicated features. The ftp browser used to have a bookmarks selector which allowed to switch from one site to another by simply sleeting another bookmark. Think this was added in version 5 and then removed in version 9.1 it now takes four clicks to do the same (instead of just one). Which as resulted in me no longer using the build in ftp browser. -- 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@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com 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 supp...@barebones.com rather than posting to the group. Follow @bbedit on Twitter: http://www.twitter.com/bbedit
Change Size of Currently Open Documents in Project window?
I know this question has been asked before, but haven't seen definitive answer. (https://groups.google.com/forum/#!searchin/bbedit/currently$20open$20documents/bbedit/RepDJIDprjM/yApASFjbhMgJ) So, i'm using v10.1.2 and again wondering if it is possible to change the size of the currently open documents section in the project window. I would love to have that be half the size of my project window's left bar. Or is there a way to open a separate panel that shows all currently open documents with adjustable size? Thanks.. -- 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@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com 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 supp...@barebones.com rather than posting to the group. Follow @bbedit on Twitter: http://www.twitter.com/bbedit
Re: Coda 2 is nice, but no match for BBEdit
While I (almost) never use BBEdit's FTP capability, there's certainly a bookmark dropdown when you select Open from FTP/SFTP Server in version 10.1.2. Lawrence San mailto:lawrence...@gmail.com July 20, 2012 10:58 I'm not sure what you mean by removed in version 9.1. I'm still using BBEdit 9.6.3 and when I choose Open from FTP/SFTP Server... the little dialog box that comes up has a bookmark dropdown right there, and I can choose any of my FTP bookmarks in one click. This dropdown menu is gone in version 10? CapRoberts mailto:p33...@gmail.com July 19, 2012 22:52 Also given Coda 2 a try after using BBEdit for more than 10 years. As I do not like some of the changes they have made in version 10. But a lot of things simply do not work in Coda or are not included. Such as balance tags. The BBEdit preview is nice but updates too often and I do not like the icons on top of the window that do not do anything, just take up screen space, also every time you hit preview you get a new window. Installed LifeReload instead, Safari even scrolls down to were you were before and you get the console etc. Fixed some other annoying version 10 things and shortcoming by adding clippings for them. But do not understand why Barebones keeps taking good features away or replacing them with more complicated features. The ftp browser used to have a bookmarks selector which allowed to switch from one site to another by simply sleeting another bookmark. Think this was added in version 5 and then removed in version 9.1 it now takes four clicks to do the same (instead of just one). Which as resulted in me no longer using the build in ftp browser. -- 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@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com 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 supp...@barebones.com rather than posting to the group. Follow @bbedit on Twitter: http://www.twitter.com/bbedit Martin Post mailto:martinpostber...@googlemail.com May 24, 2012 4:20 This is not strictly BBEdit related, but may be relevant to some HTML CSS coders here anyway. There was a lot of excitement around Coda 2 during the last days, and I gave into the hype and bought it today from the App Store at the reduced price, although I maintain all my sites in BBEdit. I was curious enough to spend 40 EUR. Long story short: It's a nice app. The GUI is beautiful, the reference docs are a welcome addition. But in terms of features - especially with regards to site management -, even Coda 2 doesn't hold a candle to BBEdit. Includes alone (which can be updated and fine-tuned using variables) are something I couldn't live/work without – Coda's snippets are not really an adequate replacement. Same goes for fine-tuned RegEx search/replace, collections, the markup editor, Process Lines containing etc. I would love to see a Transmit-style Sync site feature in BBEdit, but that's about the only feature I really need a third-party app for. I guess I will use Coda here and there for a small project, but for everything else, I'll stick with BBEdit. (All this is not supposed to badmouth a competitor, but it might save some people some money.) -- 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@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com 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 supp...@barebones.com rather than posting to the group. Follow @bbedit on Twitter: http://www.twitter.com/bbedit -- 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@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com 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 supp...@barebones.com rather than posting to the group. Follow @bbedit on Twitter: http://www.twitter.com/bbedit
Re: Coda 2 is nice, but no match for BBEdit
It sounds to me like folks have things kitty wompus on this thread. Version 10 has a dropdown called setup within which you set up sites and ftp. Version 9 accessed this totally differently through the preferences menu which version 10 no longer does. It's just UI changesit's in there. On Jul 20, 2012, at 3:13 PM, Watts Martin wrote: While I (almost) never use BBEdit's FTP capability, there's certainly a bookmark dropdown when you select Open from FTP/SFTP Server in version 10.1.2. -- 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@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com 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 supp...@barebones.com rather than posting to the group. Follow @bbedit on Twitter: http://www.twitter.com/bbedit