Re: Working example of #SCRIPT# place holder in clipping

2024-05-23 Thread 'Gary Ash' via BBEdit Talk
This doesn't seem to work. is there some sort of permission that has to be 
setup?

On Wednesday, May 22, 2024 at 4:40:23 AM UTC-4 jj wrote:

> Hi Gari,
>
> Use this script for a 90 characters line width:
>
> *tell* *application* "BBEdit"
>
> *set* vCount *to* 91 - (startColumn *of* selection)
>
> *set* vTxt *to* ""
>
> *if* vCount > 0 *then*
>
> *repeat* vCount *times*
>
> *set* vTxt *to* vTxt & "*"
>
> *end* *repeat*
>
> *end* *if*
>
> *return* vTxt
>
> *end* *tell*
>
>
>
> name it *line-of-asterisk.scpt* and place it in the *same folder* as the 
> clipping.
>
> And use this clipping with just the filename:
>
> #SCRIPT line-of-asterisk.scpt#
>
> See BBEdit 15.1 manual p. 336.
>
> HTH
>
> Jean Jourdain
>
> On Sunday, May 19, 2024 at 9:50:19 PM UTC+2 Gary Ash wrote:
>
>> I've got an AppleScript that I'm trying to run from a clipping but it 
>> doesn't seem to work.
>> The script does work from the script editor
>>
>> #SCRIPT /Users/garyash/Library/Application 
>> Support/BBEdit/Scripts/line-of-asterisk.scpt #
>>
>> line-of-asterisk.scpt
>>
>> *tell* *application* "BBEdit"
>>
>> *set* theLineNumber *to* ((*startLine* *of* *selection*) *of* *text 
>> window* 1)
>>
>> *set* theColumnNumber *to* ((*startColumn* *of* *selection*) *of* *text 
>> window* 1)
>>
>> *set* txt *to* ""
>>
>> *repeat* (90 - theColumnNumber) *times*
>>
>> *set* txt *to* (txt & "*")
>>
>> *end* *repeat*
>>
>> *set* *selection* *to* txt
>>
>> *tell* *text* 1 *of* *window* 1
>>
>> *select* *insertion point* *after* *line* theLineNumber
>>
>> *end* *tell*
>>
>> *end* *tell*
>>
>>
>> i did a chmod +x in case that was it
>>
>> thanks for any help
>>
>

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or believe that the application isn't working correctly, please email 
"supp...@barebones.com" rather than posting here. Follow @bbedit on Mastodon: 
<https://mastodon.social/@bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/d2fd93b5-3921-4c2f-842e-92c8c133f41cn%40googlegroups.com.


Working example of #SCRIPT# place holder in clipping

2024-05-19 Thread 'Gary Ash' via BBEdit Talk
I've got an AppleScript that I'm trying to run from a clipping but it 
doesn't seem to work.
The script does work from the script editor

#SCRIPT /Users/garyash/Library/Application 
Support/BBEdit/Scripts/line-of-asterisk.scpt #

line-of-asterisk.scpt

*tell* *application* "BBEdit"

*set* theLineNumber *to* ((*startLine* *of* *selection*) *of* *text window* 
1)

*set* theColumnNumber *to* ((*startColumn* *of* *selection*) *of* *text 
window* 1)

*set* txt *to* ""

*repeat* (90 - theColumnNumber) *times*

*set* txt *to* (txt & "*")

*end* *repeat*

*set* *selection* *to* txt

*tell* *text* 1 *of* *window* 1

*select* *insertion point* *after* *line* theLineNumber

*end* *tell*

*end* *tell*


i did a chmod +x in case that was it

thanks for any help

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or believe that the application isn't working correctly, please email 
"supp...@barebones.com" rather than posting here. Follow @bbedit on Mastodon: 

--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/eabe5be9-84bb-41b3-ae05-db59199e083an%40googlegroups.com.


Coloring text representing numbers

2016-11-11 Thread Gary Treible
Hello,

Sorry in advance for a very simple question.  I code in QB64 and have made 
a language module for it that actually works rather well.  My question has 
to do with the color selections in "preferences".  I can see where the 
definitions for keywords, predefined symbols, strings and comments come 
from in the Language Module plist.  I don't understand how to specify what 
represents a number, in order to get the color shown in the preferences 
panel to display.  Presently, numbers in my code are displayed as regular 
text (in that color).  There are others as well, like preprocessor 
directives and variables that I can't figure out how to specify in the 
codeless plist.  I'm probably thinking about it wrong, but I can't find any 
good references to the issue on the web.  Is there a way to get BBedit to 
"find" numeric values in source code and color that text with the 
preference pane color for numbers?

Thanks,

Gary

-- 
This is the BBEdit Talk public discussion group. 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 Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: Same-level alignment wrap indentation

2016-05-16 Thread Gary Chike
Awesome! Thank you Sam! 

On Monday, May 16, 2016 at 10:21:51 AM UTC-4, Sam H. wrote:
>
> Preferences → Editing → Soft-wrapped line indentation → First line 
>
> On 15 May 2016, at 11:39 PM EDT, Gary Chike wrote: 
>
> > Maybe this has been brought up before, but I'm wondering if BBedit can 
> > display text wrapping similar to Sublime Text and some other editors 
> > where 
> > the text is contained to the element instead of being justified to the 
> > left 
> > margin. 
> > 
> > 
> > 
> > <
> https://lh3.googleusercontent.com/-c5VAk68WOgM/VzlAVFlqv4I/JRQ/bvOI0YmKs6M7TeInsTPnnAhJYU52xj7sACLcB/s1600/BBeditSublime.png>
>  
>
> > 
> > 
> > 
> > 
> > 
> > 
> > -- 
> > This is the BBEdit Talk public discussion group. If you have a 
> > feature request or would like to report a problem, please email 
> > "sup...@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 Google 
> > Groups "BBEdit Talk" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> > an email to bbedit+un...@googlegroups.com . 
> > To post to this group, send email to bbe...@googlegroups.com 
> . 
>

-- 
This is the BBEdit Talk public discussion group. 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 Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.


Same-level alignment wrap indentation

2016-05-16 Thread Gary Chike



Maybe this has been brought up before, but I'm wondering if BBedit can 
display text wrapping similar to Sublime Text and some other editors where 
the text is contained to the element instead of being justified to the left 
margin.










-- 
This is the BBEdit Talk public discussion group. 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: 

--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.


Re: Inverted question marks and carriage returns

2016-04-21 Thread Gary Chike
Wow, that worked wonderfully. Thank you! 

Cheers,

Gary

On Monday, April 18, 2016 at 8:37:45 AM UTC-4, Patrick Woolsey wrote:
>
> On 4/17/16 at 5:33 PM, chi...@gmail.com  (Gary Chike) wrote: 
>
> >Hi everyone, 
> >I noticed that when I save an HTML file in other editors like 
> >Espresso or Chocolat and open that file in BBedit, the carriage 
> >returns are replaced with red inverted question marks. TextMate 
> >shows "" everywhere in the same file. Interestingly enough, 
> >when I save the same file in Sublime Text or Flux 6, the red 
> >inverted question marks disappear and the formatting returns to 
> >normal in both BBedit and TextMate. Any thoughts? 
>
>
> Since such a file almost certainly contains mixed line endings, 
> please choose Text -> Normalize Line Endings, then save the 
> file, and it should display correctly everywhere. 
>
>
> Regards, 
>
>   Patrick Woolsey 
> == 
> Bare Bones Software, Inc. <http://www.barebones.com/> 
>
>
>

-- 
This is the BBEdit Talk public discussion group. 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 Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.


Inverted question marks and carriage returns

2016-04-18 Thread Gary Chike
Hi everyone,
I noticed that when I save an HTML file in other editors like Espresso or 
Chocolat and open that file in BBedit, the carriage returns are replaced 
with red inverted question marks. TextMate shows "" everywhere in the 
same file. Interestingly enough, when I save the same file in Sublime Text 
or Flux 6, the red inverted question marks disappear and the formatting 
returns to normal in both BBedit and TextMate. Any thoughts?

Gary

-- 
This is the BBEdit Talk public discussion group. 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 Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.


Cut/Copy and Append

2014-06-08 Thread Gary Chike
Hi everyone,
I'm new to BBedit and I've been going through the tutorial and I'm not 
having any luck with the Cut/Copy and Append command. 

I copy some text (command + copy) then I 'copy and append' (Shift + command 
+ copy) additional text. But when I past (command + v), I just get the last 
text copied twice. 

Simple example:

I want this green car for Christmas.


I copy I want this then I copy and append  green car for Christmas. 
  if I paste .. shouldn't I get I want this green car for Christmas. 
 Instead I get green car for Christmas. green car for Christmas.

Maybe I'm just missing the whole point of the command. :-/

Cheers,

Gary

-- 
This is the BBEdit Talk public discussion group. 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 Google Groups 
BBEdit Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.


Re: Open with BBEdit Contextual Menu Item in Finder?

2014-04-02 Thread Gary Sprung
Thanks for the info that it is in the Services menu. Better than nothing. I 
wish I knew a way to edit the Open With... menu. On my new MacBookPro, 
BBEdit is not listed as an app that will open .css files.

On Saturday, March 15, 2014 10:21:28 AM UTC-6, VikR wrote:

 In the Finder I often use the Open with BBEdit contextual menu item. 
 Lately I noticed it's moved from the bottom of the contextual menu, to 
 Services sub-menu in the contextual menu. Is there a way to put it back in 
 the list of items that is immediately visible in the contextual menu, i.e. 
 not in the submenu?




-- 
This is the BBEdit Talk public discussion group. 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 Google Groups 
BBEdit Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.


BBEdit bounces but no windows open

2013-03-11 Thread Gary Hoffman
In my iMac with Mac OS X 10.7.5, I've tried opening an older BBEdit and now 
a new one (10.5.2) but after bouncing, it never opens a window. There are a 
number of inaccessible files it may be trying to open. I've trashed all the 
files in ~/Library/Application Support/BBEdit.

How can I launch the app and have it ignore the files it thinks it needs to 
open?

Gary

-- 
-- 
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 Google Groups 
BBEdit Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Multi-File search inside an ePub

2012-09-01 Thread Gary Yuen
Seems not many ask about this. I use BBEdit mainly for ePubs and this would 
help a lot. It's amazing this seems to be the only decent editor that can 
open ePubs but working with them sure could be nicer. If someday there's 
more, like a preview tab (like Coda) where it'd display the page (knowing 
what style sheet to use), or even the whole ePub, with TOC and all, that'd 
be amazing.

A modern modern UI with some features like a search box for the current 
project (to filter and find files) would be nice too. :)

Gary

On Wednesday, January 18, 2012 10:13:54 AM UTC-8, F. Javier wrote:

 Is it possible to perform a multi-file search in all the html files 
 contained in an ePub? How? 

 Thanks in advance

-- 
-- 
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: Assigning Keystroke to Scratchpad

2011-09-07 Thread gary
Thanks Chris, the second script works as advertised. It is a tad bit
slower than the first one. I haven't gotten around to running it as a
compiled script but I will soon. Thanks again. Been using it every
day.

Philippe, I'm guessing what you're saying is that script simply uses
what keyboard maestro gives you. I haven't yet figured out how that
needs to be used (I'm still learning how to use keyboard maestro), but
when I do I'll give it a try :)

cheers,
gary



On Aug 29, 2:08 pm, Philippe Martin f...@macrobyte.net wrote:
 Why using Keyboard Maestro if you do it all in AppleScript? :)

 It's very easy to do in pure KM:

 - If condition met execute action
         all of the following are true
                 the front window
                         title is
                                 Scratchpad
         execute the following actions:
                 - type the cmd-w keystroke
                 - use variable FrontApp
                         to set the front application by name
 otherwise execute the following actions
         - set variable FrontApp
                 to %CurrentApplication%
         - activate BBEdit.app
         - pause until condition met
                 all of the following are true
                         a menu
                                 with this name
                                         Show Scratchpad
                                 is enabled
         - select a menu item
                 in BBEdit.app
                         Menu title Window
                         Menu item Show Scratchpad

 Assign it a hot key and you're done.

 All the best,

 Philippe

 On 29 août 2011, at 07:19, Christopher Stone wrote:









  On Aug 28, 2011, at 18:33, Christopher Stone wrote:
  I'm sort of ticked with the irregularities, so I'll probably rewrite the 
  script tomorrow.

  __

  Hey Gary,

  Okay.  This script bypasses all but BBEdit and Keyboard Maestro.  It runs a 
  trifle faster if you run it as a compiled script rather than as text.

  --
  Best Regards,
  Chris

  --- 
  --
  ## OPEN BBEDIT SCRATCHPAD ##
  --- 
  --
  on openScratchpad()
    tell application BBEdit
      open scratchpad window
      activate
      set index of window Scratchpad to 1 # Workaround for hidden apps 
  issue.
    end tell
  end openScratchpad
  --- 
  --
  ## RESTORE NAMED APPLICATION ##
  --- 
  --
  on kmRestoreApp()
    tell application Keyboard Maestro Engine
      do script dict
              keyAction/key
              stringSetApplicationByNameMatches/string
              keyIsActive/key
              true/
              keyIsDisclosed/key
              true/
              keyMacroActionType/key
              stringUseVariable/string
              keyVariable/key
              stringrestoreAppKM/string
            /dict
      set value of variable restoreAppKM to FALSE
    end tell
  end kmRestoreApp
  --- 
  --
  try
    tell application Keyboard Maestro Engine
      set currentApp to process tokens %CurrentApplication%
      try
        set restoreApp to value of variable restoreAppKM
      on error
        make new variable with properties {name:restoreAppKM, value:FALSE}
      end try
      if currentApp ≠ BBEdit then
        set value of variable restoreAppKM to currentApp
        openScratchpad() of me
      else if currentApp = BBEdit then
        if value of variable restoreAppKM = FALSE then
          openScratchpad() of me
        else
          kmRestoreApp() of me
        end if
      end if
    end tell
  on error errMsg number errNum
    set sep to ==
    set e to sep  return  Error:   errMsg  return  sep  return ¬
       Error Number:   errNum  return  sep
    beep
    tell application System Events to display dialog e
  end try
  --- 
  --

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

 __
  Philippe MARTIN                
  http://flip.macrobyte.net

-- 
You received

Re: Assigning Keystroke to Scratchpad

2011-08-29 Thread gary
Thanks Chris, will definitely try this out.

On Aug 29, 3:56 pm, Christopher Stone listmeis...@thestoneforge.com
wrote:
 On Aug 29, 2011, at 14:08, Philippe Martin wrote:

  Why using Keyboard Maestro if you do it all in AppleScript? :)

 __

 Hey Philippe,

 Why ask why?  :)

 A) The Applescript mostly drives Keyboard Maestro.

 B) I wanted to provide a near TURNKEY solution for Gary.

 C) I wanted to learn more about driving KM with XML, because this provides a 
 means to build on-the-fly macros.

 D) I haven't learned all the ins and outs of KM5's conditionals yet.

 E) I'd rather send events than drive the UI when possible.

 I'll try out your method later as an exercise and see what I think.

 --
 Best Regards,
 Chris

-- 
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: Assigning Keystroke to Scratchpad

2011-08-28 Thread gary
Chris,

If I may ask one more question. I promise, my last.

As I said, everything works great. I can get to the scratchpad no
matter what I'm doing, and quickly. I was curious though. Something
like Simplenote has a preference for a shortcut key. If I'm in Safari
and press f11 Simplenote appears. I can then press f11 and its gone,
with the focus returned to Safari (I don't have to re-click safari or
switch back to it). Is something like that possible with applescript
and keyboard maestro or is that beyond their capabilities?

cheers,
gary

On Aug 27, 10:52 pm, gary garyr...@gmail.com wrote:
 Chris,

 Thanks for all the info and help. The global Scratchpad is what I
 want. In fact, this works much better for me now that I realize each
 project has it's own Scratchpad. I'd rather keep them separate. If I
 have something on a global Scratchpad I want to use in a Project I'll
 just copy it over.

 The only thing I'm really curious about is why the document called up
 by the apple script doesn't have a .txt extension. But as long is
 doesn't cause problems I'll just ask no questions :)

 Again, thanks for your help and patience. I really do appreciate it.

 cheers,
 gary

 On Aug 27, 8:21 pm, Christopher Stone listmeis...@thestoneforge.com
 wrote:







  Hey Gary,

  Thanks for taking the time to suss this out.

  On Aug 27, 2011, at 18:15, gary wrote:

   The Scratchpad file that is called up when I use Keyboard Maestro lives 
   here:
   /library/application support/bbedit

  Right.  There lives the global Scratchpad file.

   There is one strange thing about it. It doesn't show an extension, but 
   info says it's a text file. I can see what I've written on it with quick 
   view. However, if I click on it to open it the apple script editor opens 
   it. I get an error that says a identifier can't go after this 
   identifier.

  Don't worry about that.  It IS odd that it would be associated with the 
  Applescript Editor on your machine rather than TextEdit but not terribly.

  You can change it in the Finder if you want to.

  The error is caused by the Applescript Editor trying to compile it into 
  Applescript.

   I have two projects, and when I click show package contents they both 
   have a Scratchpad file inside. Each maintains it's own info. And unlike 
   the global scratchpad in application support, they do show a .txt 
   extension, and when clicked, are opened by bbedit.

  Okay.  I had noticed the 'Scratchpad' and 'Unix Worksheet' items associated 
  with the project, but I never access them in the file pane and didn't 
  realize they were part of the project rather than the global files.

  Learn something new and all that...

   And secondly, should I be concerned that the global Scratchpad in bbedit 
   application support shows no extension, and is set to be opened with the 
   apple script editor?

  No.

   I thought this might simply be because the file was created with an apple 
   script

  The file is not created with Applescript.  The script simply calls the 
  global Scratchpad window.

   and I also thought I could just go to info and change what the file is 
   associated with from the apple script editor to bbedit, but I thought I 
   might screw something up.

  This should not cause any problems.

  --

  From the BBEdit 10 Release Notes:

  ◦ There's a new command on the Window menu: Show Unix Worksheet. This 
  will open a worksheet document that is application-wide, and backed by a 
  worksheet file saved in your Application Support/BBEdit folder. Like the 
  Scratchpad, changes here are saved automatically.

  
There's also a Unix worksheet window application property available to 
  the scripting interface.

  (* Repeated for the Scratchpad)

  --

  ◦ Project windows grow a couple of new lists:
  ◦ Recently Used: Shows documents recently opened into this project's window.
  ◦ Scratchpad  Worksheet: Every project document carries its own scratch 
  pad and worksheet document. This is shared for all users of the project, so 
  if you wish you can use the scratchpad to make notes for other users; or 
  store handy commands in the worksheet.
  ◦ These can be collapsed or hidden, if desired.

  --

  NOW - Back to your original issue:

  Are you wanting to open the GLOBAL Scratchpad or the one LOCAL to your 
  project file?

  --
  Best Regards,
  Chris

-- 
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: Assigning Keystroke to Scratchpad

2011-08-27 Thread gary
Thanks Chris! I got it working almost immediately. Works perfectly.

The only weird thing is that I have one project, and the Scratchpad
integrated into the project doesn't jive with the generic Scratchpad I
get with other files and by using the keystroke. Do projects have
there own Scratchpad separate from a generic Scratchpad.

I looked at the manual but saw nothing about this. Anyone have a clue?



On Aug 26, 10:06 pm, Christopher Stone listmeis...@thestoneforge.com
wrote:
 On Aug 26, 2011, at 11:42, gary wrote:

  Ahh, that's what I want, the ability to call it up even if it's not
  the front most app. I actually have a license for keyboard maestro.

 __

 Hey Gary,

 Run this from an Applescript action in Keyboard Maestro.

 --
 Best Regards,
 Chris

 __

 tell application BBEdit
   try
     activate
     open scratchpad window
   on error errMsg number errNum
     set sep to ==
     set e to sep  return  Error:   errMsg  return  sep  return ¬
        Error Number:   errNum  return  sep
     beep
     display dialog e
   end try
 end tell

-- 
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: Assigning Keystroke to Scratchpad

2011-08-27 Thread gary
Okay, after fumbling around here's what I've found out. I apologize if
I'm stating the obvious but I've just started using bbedit and have
never done anything with applescript.

The Scratchpad file that is called up when I use Keyboard Maestro
lives here:

/library/application support/bbedit

There is one strange thing about it. It doesn't show an extension, but
info says it's a text file. I can see what I've written on it with
quick view. However, if I click on it to open it the apple script
editor opens it. I get an error that says a identifier can't go after
this identifier.

I have two projects, and when I click show package contents they
both have a Scratchpad file inside. Each maintains it's own info. And
unlike the global scratchpad in application support, they do show
a .txt extension, and when clicked, are opened by bbedit.

If I open either project scratchpad their name is scratchpad.txt. But
when I open the global Scratchpad with my keyboard shortcut, it only
says Scratchpad, without the .txt extension, in the title bar. Which,
I assume, is because of what I mentioned earlier (though it's a text
file it's set to open with the apple script editor).

So to sum up, what I see is one scratchpad not attached to any
project, and a scratchpad for each project I create. That's the only
way it makes sense to me. Am I correct?

And secondly, should I be concerned that the global Scratchpad in
bbedit application support shows no extension, and is set to be opened
with the apple script editor? I thought this might simply be because
the file was created with an apple script, and I also thought I could
just go to info and change what the file is associated with from the
apple script editor to bbedit, but I thought I might screw something
up.

Sorry this is so long and for any confusion.

gary



On Aug 27, 3:22 pm, Christopher Stone listmeis...@thestoneforge.com
wrote:
 Hey Gary,

 On Aug 27, 2011, at 14:33, gary wrote:

  Thanks Chris! I got it working almost immediately. Works perfectly.

 Good.

  The only weird thing is that I have one project, and the Scratchpad 
  integrated into the project doesn't jive with the generic Scratchpad I get 
  with other files and by using the keystroke. Do projects have there own 
  Scratchpad separate from a generic Scratchpad.

 That IS weird.  As far as I know you cannot open *the* Scratchpad in a 
 project window.

 Is there a 'Last Saved' date and 'File Path' associated with the one in the 
 project?

 Could *you* have create your own 'Scratchpad' file and associated it with the 
 project?

 What happens if you Command-Click on the menu bar icon one the one in the 
 project?

 --
 Best Regards,
 Chris

-- 
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: Assigning Keystroke to Scratchpad

2011-08-27 Thread gary
Chris,

Thanks for all the info and help. The global Scratchpad is what I
want. In fact, this works much better for me now that I realize each
project has it's own Scratchpad. I'd rather keep them separate. If I
have something on a global Scratchpad I want to use in a Project I'll
just copy it over.

The only thing I'm really curious about is why the document called up
by the apple script doesn't have a .txt extension. But as long is
doesn't cause problems I'll just ask no questions :)

Again, thanks for your help and patience. I really do appreciate it.

cheers,
gary

On Aug 27, 8:21 pm, Christopher Stone listmeis...@thestoneforge.com
wrote:
 Hey Gary,

 Thanks for taking the time to suss this out.

 On Aug 27, 2011, at 18:15, gary wrote:

  The Scratchpad file that is called up when I use Keyboard Maestro lives 
  here:
  /library/application support/bbedit

 Right.  There lives the global Scratchpad file.

  There is one strange thing about it. It doesn't show an extension, but info 
  says it's a text file. I can see what I've written on it with quick view. 
  However, if I click on it to open it the apple script editor opens it. I 
  get an error that says a identifier can't go after this identifier.

 Don't worry about that.  It IS odd that it would be associated with the 
 Applescript Editor on your machine rather than TextEdit but not terribly.

 You can change it in the Finder if you want to.

 The error is caused by the Applescript Editor trying to compile it into 
 Applescript.

  I have two projects, and when I click show package contents they both 
  have a Scratchpad file inside. Each maintains it's own info. And unlike the 
  global scratchpad in application support, they do show a .txt extension, 
  and when clicked, are opened by bbedit.

 Okay.  I had noticed the 'Scratchpad' and 'Unix Worksheet' items associated 
 with the project, but I never access them in the file pane and didn't realize 
 they were part of the project rather than the global files.

 Learn something new and all that...

  And secondly, should I be concerned that the global Scratchpad in bbedit 
  application support shows no extension, and is set to be opened with the 
  apple script editor?

 No.

  I thought this might simply be because the file was created with an apple 
  script

 The file is not created with Applescript.  The script simply calls the global 
 Scratchpad window.

  and I also thought I could just go to info and change what the file is 
  associated with from the apple script editor to bbedit, but I thought I 
  might screw something up.

 This should not cause any problems.

 --

 From the BBEdit 10 Release Notes:

 ◦ There's a new command on the Window menu: Show Unix Worksheet. This will 
 open a worksheet document that is application-wide, and backed by a worksheet 
 file saved in your Application Support/BBEdit folder. Like the Scratchpad, 
 changes here are saved automatically.

 
There's also a Unix worksheet window application property available to the 
 scripting interface.

 (* Repeated for the Scratchpad)

 --

 ◦ Project windows grow a couple of new lists:
 ◦ Recently Used: Shows documents recently opened into this project's window.
 ◦ Scratchpad  Worksheet: Every project document carries its own scratch pad 
 and worksheet document. This is shared for all users of the project, so if 
 you wish you can use the scratchpad to make notes for other users; or store 
 handy commands in the worksheet.
 ◦ These can be collapsed or hidden, if desired.

 --

 NOW - Back to your original issue:

 Are you wanting to open the GLOBAL Scratchpad or the one LOCAL to your 
 project file?

 --
 Best Regards,
 Chris

-- 
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: Assigning Keystroke to Scratchpad

2011-08-26 Thread gary
Ahh, that's what I want, the ability to call it up even if it's not
the front most app. I actually have a license for keyboard maestro.
Guess it's time to check it out. Thanks.

On Aug 26, 8:52 am, Philippe Martin f...@macrobyte.net wrote:
 That would work only when BBEdit is the frontmost app, though. To make a 
 globally available hot key you need something like Keyboard Maestro.

 Philippe

 On 26 août 2011, at 14:05, Ken Lanxner wrote:









  Preferences - Menus  Shortcuts - Window - Show Scratchpad.

  Click the end of the row with the menu item to add a keystroke.

  Ken

  garyr...@gmail.com (gary) wrote on  8/25/11  11:47 PM

  I've just started using bbedit 10.  I really like the scratchpad, very
  handy. I noticed that you can call on the scratchpad from the dock
  icon. Even handier. But that made me wish, since I'm keeping bbedit
  open all the time, that I could call up the scratchpad with a simple
  key stroke.

  I thought it might be in preferences, but I don't see it. I did find
  this website:

 http://www.communitymx.com/content/article.cfm?page=4cid=5F514

  where the author claims to have done just that, but he doesn't say
  how. Any thought or pointers on how to accomplish this would be great.

  --
  Simple Lives Web Design
 http://simplelives.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

 __
  Philippe MARTIN                
  http://flip.macrobyte.net

-- 
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: Using PyFlakes as the Python Syntax Checker?

2011-08-17 Thread Gary Robinson
Hi, I just want to say that I completely agree with Jeff's comment. I found 
that comment by Googling bbedit pyflakes because I'd very much like to see 
the same capability. It would significantly add to BBEdit's power as a 
Python editor.

The great thing about pyflakes for this application, compared to other 
python lints, is that it doesn't actually import other modules. It just 
looks at the file it's presented with to make sure everything makes sense.

Thanks,
Gary

-- 
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 Language Module for ExpressionEngine

2011-04-30 Thread Gary Cheeseman
I would like to find an ExpressionEngine2 language module too.

-- 
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: EDITOR=bbeditFix.sh crontab -e still results in temp file must be edited in place

2010-09-10 Thread Gary Leydon
Hey thanks so much, that was more than precise. I'm sure I can find it
when I get back to work, thanks for taking the time and sharing your
knowledge.

On Fri, Sep 10, 2010 at 3:59 PM, Carlton Gibson
carlton.gib...@gmail.com wrote:
 I know the answer to this, but because I'm away from the Mac I can't put it 
 to hand just now.

 Basically, there's an expert preference you have to turn off that was new in 
 9.5

 It's called something like safe-saves.

 If you go to Help you cam get to the latest release notes and it will tell 
 you there.

 Sorry I can't be more precise.

 Sent from my iPhone

 On 10 Sep 2010, at 19:53, gbl gary.ley...@gmail.com wrote:

 OS X 10.6.4
 BBedit 9.5.1

 can't seem to get bbedit to edit a crontab even after doing what man
 bbedit suggests

 ~/bbeditFix.sh

 #!/bin/sh
 bbedit -w $@

 chmod 744 bbeditFix.sh

 .bash_profile
 EDITOR=~/bbeditFix.sh

 crontab -e   #runs bbedit I make changes save from bbedit and shell
 puts up:

 crontab: temp file must be edited in place

 In BBedit prefs tried turning off Automatically refresh documents as
 they change on disk : this had no effect

 under Text Files make backup before saving is NOT checked

 any ideas?

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


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