I'm new to BBEdit and haven't been able to puzzle out how to format shell
scripts. I'm mostly interested in re-indenting, but syntax checking and
whatnot wouldn't be unwelcome.
I'd appreciate being pointed in the right direction.
--
This is the BBEdit Talk public discussion group. If you
On 06/28/2021, at 04:35, Paul G mailto:p...@profile-music.com>> wrote:
> Would anyone be up to writing a couple of basic scripts for me to use in
> BBEdit?
> If so let me know price.
>
> I just need a script to alphabetically sort lines within certain parameters
> insid
On 6/28/21 at 5:35 AM, p...@profile-music.com (Paul G) wrote:
[...]
I just need a script to alphabetically sort lines within
certain parameters inside a text doc and another to replace
certain text within a text doc.
I know this may be simple but do not have knowledge or time to
do this
> On Jun 28, 2021, at 05:48, Paul G wrote:
>
> Hey All.
>
> Would anyone be up to writing a couple of basic scripts for me to use in
> BBEdit?
> If so let me know price.
>
> I just need a script to alphabetically sort lines within certain parameters
>
Hey All.
Would anyone be up to writing a couple of basic scripts for me to use in
BBEdit?
If so let me know price.
I just need a script to alphabetically sort lines within certain parameters
inside a text doc and another to replace certain text within a text doc.
I know this may be simple
Hi
I started compiling a .bbpackage with scripts for working with R files
(thanks jj).
You can find it at https://github.com/rkrug/R_bbpackage
Any feedback is welcome.
Cheers,
Rainer
--
This is the BBEdit Talk public discussion group. If you have a feature request
or need technical
Hi Rainer,
>From the *excellent* BBEdit User Manual;-)
*menu Help > User Manual*
*Organizing Scripts*
*Items in the Scripts menu and Scripts palette are displayed in
alphabetical order by default, but you can force them to appear in any
desired order by including any two characters fo
Hi
I have some scripts in the script menu which contains general scripts and
scripts for specific languages.
What is the easiest way of sorting these? I am using at the moment e.g `R)`
for R sripts. but is there something else?
Can I define dividers in the Scripts menu?
Can I define submenus
is powerful, but I
can no longer even read some of those scripts, much less maintain them.
Swift promises to be, among other things, a scripting language, so more
recently, I've been experimenting with writing persistent include scripts in
Swift. This is generally a pleasant experience, but some
On 8/25/20 at 8:33 AM, rai...@krugs.de (Rainer Krug) wrote:
I did it, but I can't remember how - how can I assign keyboard
shortcuts to scripts in BBEdit?
Do I have to go through System Preferences, or can I do it within BBEdit?
You can assign key shortcuts to top-level scripts via
I did it, but I can't remember how - how can I assign keyboard shortcuts to
scripts in BBEdit?
Do I have to go through System Preferences, or can I do it within BBEdit?
Thanks,.
Rainer
--
This is the BBEdit Talk public discussion group. If you have a feature request
or need technical
I had not responded to this because I had been working on python. Now I am
back to working with 500 line bash scripts again, and I must say that
though, yes, you can fold manually like that. It is not very helpful when
you are trying to write code. The little "indicators" in the gutt
On 10/30/19 at 7:42 PM, mschamsch...@gmail.com (Marius
Schamschula) wrote:
I could swear that I was asked to set this when I installed
earlier versions of BBEdit (when Sandbox support got added).
I've found that this setting has been reset after updating to
BBEdit 13.0.2). Annoying!
I could swear that I was asked to set this when I installed earlier
versions of BBEdit (when Sandbox support got added). I've found that this
setting has been reset after updating to BBEdit 13.0.2). Annoying!
On Wednesday, October 30, 2019 at 8:22:36 AM UTC-5, Rich Siegel wrote:
>
> On 10/30/19
This happened on a Mojave machine.
Yes, it also has zsh.
However, I've been using bash for 25 years, and Apple's choice isn't my
own. There are some subtle incompatibilities between bash and zsh.
All my machines have the current GPL 3 version of bash installed via
MacPorts.
I do have a
Apple Catalina as using ZSH now, if you’re using Catalina try that.
On Wed, Oct 30, 2019 at 05:50 Marius Schamschula
wrote:
> This morning, I updated a /bin/bash script, only to find
>
> marius$ mpup -u
> /Users/marius/Development/MacPorts/ports/bin/mpup: /bin/bash: bad
> interpreter: Operation
On 10/30/19 at 8:46 AM, mschamsch...@gmail.com (Marius Schamschula) wrote:
> This morning, I updated a /bin/bash script, only to find
>
> marius$ mpup -u
> /Users/marius/Development/MacPorts/ports/bin/mpup: /bin/bash: bad
> interpreter: Operation not permitted
This morning, I updated a /bin/bash script, only to find
marius$ mpup -u
/Users/marius/Development/MacPorts/ports/bin/mpup: /bin/bash: bad
interpreter: Operation not permitted
A quick search found:
marius$ xattr -l mpup
com.apple.TextEncoding: UTF-8;134217984
com.apple.quarantine:
Hi,
I would really like folding and a function pull down for my bash scripts.
Is that possible? Am I just missing something?
Thanks
--
The information in this e-mail is intended only for the person to whom it
is
addressed. If you believe this e-mail was sent to you in error and the
e
I am not sure what I am doing wrong. I have a several bash scripts with
many functions but I am not getting the function pulldown menu for them
like I do with my python scripts. The #!/bin/bash is present but not
helping. Can any one help?
Thanks.
Peace,
Lois
--
The information
Good question!
Have you tried using a unix worksheet to run the script from? That works for
me, although i’m not sure if it is respecting the virtualenv or not.
Cheers,
Dave
> On 12-May-2019, at 11:34 AM, Jan Erik Moström wrote:
>
> Is it possible to run a Python script directly from within
Is it possible to run a Python script directly from within BBEdit (like
using the standard "Run" command) but executing in a python virtual
environment?
= jem
--
This is the BBEdit Talk public discussion group. If you have a
feature request or need technical support, please email
Interesting suggestion (write routine) but I wouldn't know where to start and
the "inconvenience" is minimal.
(And yes, files are saved to disk, such that I could switch in terminal and run
from there. Just more convenient to hit cmd-R from BBEdit)
So, if a future BBEdit release were to check
On 02/22/2019, at 17:28, Gauvins mailto:gauvi...@gmail.com>> wrote:
> RUN in terminal aborts if BBEdit quits. From what I understand, quitting
> BBEdit purges compiled scripts on quit, which makes perfect sense. But I like
> to run scripts once I *think* I am done. Some take
RUN in terminal aborts if BBEdit quits. From what I understand, quitting
BBEdit purges compiled scripts on quit, which makes perfect sense. But I
like to run scripts once I *think* I am done. Some take several minutes to
complete, so I usually start some other small task. After a while I may
Hi,
> On 20 Aug 2018, at 13:01, Nestor Aguilera wrote:
>
> Hi Maarten:
>
> First of all, thank you very much for sharing your work. I have been using
> your scripts for a long time, working with TextWrangler and then BBEdit with
> TexLive, and occasionally with TexShop.
Hi Maarten:
First of all, thank you very much for sharing your work. I have been using
your scripts for a long time, working with TextWrangler and then BBEdit
with TexLive, and occasionally with TexShop. I made a few changes through
the years (with the invaluable help of Michael Sharpe), so I
Hi,
I’ve update my BBEdit TeX integration scripts following the sunsetting of
TextWrangler. Yes, I’m not using the script every day. Note that the scripts
are still unsupported.
Details can be found here:
https://msneep.home.xs4all.nl/latex/
Kind regards,
Maarten
--
This is the BBEdit Talk
lem. You just have to change the way your write the script.
c
> On Sep 19, 2017, at 12:33 PM, Chuck Dingee <chuck.din...@gmail.com
> <mailto:chuck.din...@gmail.com>> wrote:
>
> I have been using BBEdit for many years, and it has been quite a few since I
> have upgr
have been using BBEdit for many years, and it has been quite a few since
> I have upgraded. I am using version 9.6.3 (ancient, I know). I love it, and
> I figure if it ain't broke don't fix it. But I am thinking of upgrading now
> and want to make sure my old Apple Scripts will work. (Obviou
I have been using BBEdit for many years, and it has been quite a few since I
have upgraded. I am using version 9.6.3 (ancient, I know). I love it, and I
figure if it ain't broke don't fix it. But I am thinking of upgrading now and
want to make sure my old Apple Scripts will work. (Obviously I
False alarm, I was running an less than current version of BBEdit (probably
a pre-release).
Variables come through fine with current release (and current pre-release).
Face palm…
On 21 August 2016 at 08:55, Oliver Boermans wrote:
>
> On 20 August 2016 at 23:36, Christopher
On 20 August 2016 at 23:36, Christopher Stone
wrote:
> #! /usr/bin/env bash
> echo -e "BBEdit Environment Variables\n";
> echo -e "
> Doc Name: $BB_DOC_NAME
> Doc Path: $BB_DOC_PATH
> Doc Mode: $BB_DOC_MODE
> Doc Language: $BB_DOC_LANGUAGE
> Doc Sel Start:
On Aug 20, 2016, at 07:24, Oliver Boermans <boerm...@gmail.com> wrote:
> If I execute this script from the scripts menu in BBEdit:
> …
> Should I be seeing BB_DOC_NAME, BB_DOC_PATH and friends in the list that is
> output?
>
> I have been attempting to use the
If I execute this script from the scripts menu in BBEdit:
#!/bin/sh
printenv
Should I be seeing BB_DOC_NAME, BB_DOC_PATH and friends in the list that is
output?
I have been attempting to use these variables in a script, but they are
returning nothing, i.e.
#!/bin/sh
echo $BB_DOC_NAME
What
I'm editing (FreeBSD/FreeNAS) bash scripts in BBEdit (11.5.2) and hoping to
find ways to augment the included "Unix Script" language selection.
For example, I'd like to add these capabilities:
- Code Folding
- Finding function and variable declarations
Is there any way to make BBEdit
Try logging in and out.
On Tuesday, December 1, 2015 at 8:56:49 AM UTC-5, Stephen wrote:
>
> Hello,
>
> I created an Apple script, named it File•Save and placed it in Menu
> scripts. The script runs fine when I save a document but the actual file
> doesn't ever save
> On 01 Dec 2015, at 04:41, Stephen <windows4solita...@gmail.com> wrote:
>
> Hello,
>
> I created an Apple script, named it File•Save and placed it in Menu scripts.
> The script runs fine when I save a document but the actual file doesn't ever
> save. Is this int
Hello,
I created an Apple script, named it File•Save and placed it in Menu
scripts. The script runs fine when I save a document but the actual file
doesn't ever save. Is this intended functionality or am I doing something
wrong?
--
This is the BBEdit Talk public discussion group. If you have
I'm pretty sure this simple shell script would fail for any content that
contained a double-quote character, since it would prematurely end the $1
structure.
External shell scripts for BBEdit as of this writing don't use this sort of
$1 logic anyway, and consequently don't pass anything
On Aug 24, 2013 at 09:09 PM -0700, SMcCandlish wrote:
I'm pretty sure this simple shell script would fail for any content that
contained a double-quote character, since it would prematurely end the $1
structure.
External shell scripts for BBEdit as of this writing don't use this sort of
$1
There are other scripts around. For R, see:
https://files.nyu.edu/jmb736/public/projects/R.html
On Friday, June 28, 2013 5:40:28 PM UTC-4, Steve Samuels wrote:
Stata 13 changed its scripting behavior and broke the previous scripts.
I've revised them to work with any Stata version
Excellent, I did not know these existed and they will make my R work much
easier.
Neil
On Jun 28, 2013, at 7:35 PM, Steve Samuels sjsamu...@gmail.com wrote:
I should have added that Ben Hulley was the author of the originals of these
scripts. See the header material
Stata 13 changed its scripting behavior and broke the previous scripts.
I've revised them to work with any Stata version.
The scripts are written for StataMP; if you use a different flavor,
substitute its name. The Send_to_Stata_or_R script
checks the file extension (do for Stata, R or r for R
I should have added that Ben Hulley was the author of the originals of
these scripts. See the header material of the Send_to_Stata_or_R for
some other sources of that script. I modified or added only about six of
58 lines in Ben's original Send_Selection_To_Stata
On 05/10/2012 20:52, François Schiettecatte wrote:
Dumb question, have you checked that the script has execute permissions?
chmod 755 myScript.pl
I’ve explained why the scripts weren’t working, and it has nothing to do
with permissions. A script does not need to be executable
At 21:53 +0100 10/6/12, John Delacour wrote:
On 05/10/2012 20:52, François Schiettecatte wrote:
Dumb question, have you checked that the script has execute permissions?
chmod 755 myScript.pl
I've explained why the scripts weren't working, and it has nothing to do with
permissions. A script
I installed Mountain Lion yesterday, probably the worst decision I ever
made! Some of Apple’s own main apps now seem to be buggier than they
were 5 years ago with no useful new features.
None of my UNIX filters in BBEdit are now working.
For example this script
#!/usr/bin/perl
while () {
Dumb question, have you checked that the script has execute permissions?
chmod 755 myScript.pl
François
On Oct 5, 2012, at 3:43 PM, John Delacour johndelac...@gmail.com wrote:
I installed Mountain Lion yesterday, probably the worst decision I ever made!
Some of Apple’s own main
At 20:43 +0100 10/5/12, John Delacour wrote:
I installed Mountain Lion yesterday, probably the worst decision I ever made!
Some of Apple's own main apps now seem to be buggier than they were 5 years
ago with no useful new features.
None of my UNIX filters in BBEdit are now working.
For example
Good point about the semi-colon, I missed that (too much python).
FWIW it is good practice to use :
#!/usr/bin/env perl
rather than:
#!/usr/bin/perl
At the start of your script, so that perl can be found if it is relocated.
François
On Oct 5, 2012, at 4:54 PM, Doug McNutt
happens at all with this script or any other.
You might need a semicolon after the print, But it is the last line between {}s
so whonoze?
I said _none_ of the UNIX scripts were working, not that I doubted my
ability to write a simple Perl script! In fact a semi-colon in this
position is redundant
Can anyone recommend any scripts that could be used within BBEdit to format
(pretty print) PHP or SQL?
--
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
Not sure when this occurred but I'm currently unable to change the keyboard
shortcuts that I have assigned to some scripts that format markup. They are
greyed out in the preferences menu.
*version* 10.1.2 (3141)
Thanks,
Rick
--
You received this message because you are subscribed
Hey Alex,
On Sep 07, 2011, at 16:48, Alex Popescu wrote:
3. when saving the script make sure it is saved as: Script with the Run only
option checked
That only means that you can't reopen and edit the script. It would make no
sense for BBEdit to require run-only scripts in this context
Document.documentDidSave.scpt
and saved it into my ~/Dropbox/Application Support/BBEdit/Attachment
Scripts folder.
But the script doesn't seem to be triggered at all. I've removed most
of the code in the original and just left inside:
on documentDidSave()
display dialog BBEdit on documentDidSave buttons
that triggers makeTags.
As per the manual, I've named the script Document.documentDidSave.scpt
and saved it into my ~/Dropbox/Application Support/BBEdit/Attachment
Scripts folder.
But the script doesn't seem to be triggered at all. I've removed most
of the code in the original and just left inside
On Wed, 10 Aug 2011 12:18:08 -0700 (PDT), binaryghost wrote:
I was interested in writing a script that would be called when and
image is dropped on to the document and was wondering if there was a
way to attach a script to such an event? Possibly a
documentReceivedImage or something like that.
Wow you guys have given me some interesting ideas to consider. Basically my
goal was to adapt a script I have already wrote that takes an image and
uploads it to my S3 account, then it figures out the scaled down dimensions
to fit it nicely on my blog, and builds a Wordpress formatted html img tag
On Thursday, August 11, 2011 6:26:12 AM UTC-7, binaryghost wrote:
I just thought if I could call that from a drag-n-drop
event like in Textmate and have it print the tag right in
the document, I could save my self a step or two.
It is entirely possible to write a script that does all this -
Ok, thanks for the info!
Sent from my iPhone
On Aug 11, 2011, at 11:28 AM, oliver mrolivertay...@gmail.com wrote:
On Thursday, August 11, 2011 6:26:12 AM UTC-7, binaryghost wrote:
I just thought if I could call that from a drag-n-drop
event like in Textmate and have it print the tag right in
I was interested in writing a script that would be called when and
image is dropped on to the document and was wondering if there was a
way to attach a script to such an event? Possibly a
documentReceivedImage or something like that.
Thanks.
--
You received this message because you are
On 2011-08-10, 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 writes
the
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
On Aug 10, 2011, at 14:18, binaryghost wrote:
I was interested in writing a script that would be called when and image is
dropped on to the document and was wondering if there was a way to attach a
script to such an event? Possibly a documentReceivedImage or something like
that.
I thought I'd share a few git-related scripts I have assigned to BBEdit
keyboard shortcuts
https://github.com/isao/shell/tree/master/bbedit/Scripts
- git-bbdiff.sh - bbdiff current file vs index
- git-pull.sh - git pull for repo corresponding to current file
- gitx.sh - launches gitx
/Application Support/BBEdit/Scripts/
__
Hey Chris,
You don't mention what version of BBEdit you're using.
In 9.x you have to open the Script Palette window and set them from there.
In 10.0 you can do this from
I'm not seeing how it's possible to remap keyboard shortcuts for items
located in folders inside ~/Library/Application Support/BBEdit/Scripts/
--
You received this message because you are subscribed to the
BBEdit Talk discussion group on Google Groups.
To post to this group, send email
On Jul 19, 2011, at 15:26, Chris wrote:
I'm not seeing how it's possible to remap keyboard shortcuts for items
located in folders inside ~/Library/Application Support/BBEdit/Scripts/
__
Hey Chris,
You don't mention what
Hi,
Is anyone aware of scripts for GPG encrypt/decrypt text using BBEdit?
I'm thinking this could be something neat to use with the scratchpad for
pasting into other applications.
Thanks,
Adam
--
You received this message because you are subscribed to the
BBEdit Talk discussion group
On Jun 05, 2010 at 02:19 AM -0500, Adam Turetzky wrote:
Is anyone aware of scripts for GPG encrypt/decrypt text using BBEdit?
There are Applescripts for this for Mailsmith. I'm sure you could adapt
those to BBEdit pretty easily.
Alternately, you should be able to write a shell script
On Jun 5, 10:28 am, Tim Gray tg...@125px.com wrote:
On Jun 05, 2010 at 02:19 AM -0500, Adam Turetzky wrote:
Is anyone aware of scripts for GPG encrypt/decrypt text using BBEdit?
There are Applescripts for this for Mailsmith. I'm sure you could adapt
those to BBEdit pretty easily
On 14 Aug 2009, at 11:23, skillzero wrote:
Is there a way to run a non-filter Unix script that has info about the
current window? I'd like to be able to run a Unix script with access
to BB_DOC_PATH, BB_DOC_SELSTART, BB_DOC_SELEND, etc., but I don't want
to modify the text of the window (as a
On Mon, 17 Aug 2009 09:14:44 +0100, Carlton Gibson wrote:
You can use AppleScript from within your shell script to query BBEdit
for the information you need.
No, you can't. BBEdit does not process apple events while a unix command
is running. Trying to do so will result in a timeout error
On 17 Aug 2009, at 09:36, Maarten Sneep wrote:
On Mon, 17 Aug 2009 09:14:44 +0100, Carlton Gibson wrote:
You can use AppleScript from within your shell script to query BBEdit
for the information you need.
No, you can't. BBEdit does not process apple events while a unix
command
is
On Mon, 17 Aug 2009 09:49:56 +0100, Carlton Gibson
carlton.gib...@gmail.com wrote:
On 17 Aug 2009, at 09:36, Maarten Sneep wrote:
On Mon, 17 Aug 2009 09:14:44 +0100, Carlton Gibson wrote:
You can use AppleScript from within your shell script to query BBEdit
for the information you need.
On 17 Aug 2009, at 10:05, Maarten Sneep wrote:
On Mon, 17 Aug 2009 09:49:56 +0100, Carlton Gibson
carlton.gib...@gmail.com wrote:
On 17 Aug 2009, at 09:36, Maarten Sneep wrote:
On Mon, 17 Aug 2009 09:14:44 +0100, Carlton Gibson wrote:
You can use AppleScript from within your shell
I have an applescript under the Scripts menu...
how do I assign a keyboard shortcut to it?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups BBEdit Talk group.
To post to this group, send email to bbedit
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: WindowPalettesScripts and use the Set Key button.
Jd
--~--~-~--~~~---~--~~
You received this message because you
Thanks, Dennis.
And with regard to the syntax coloring, those colors are actually the
Gruber Dark set from BBColors.
On Feb 23, 1:23 am, Dennis argent...@mac.com wrote:
On Feb 22, 2009, at 4:02 PM, Corey Ehmke wrote:
Over the past few months, I've been working on a number of scripts
On Feb 22, 2009, at 4:02 PM, Corey Ehmke wrote:
Over the past few months, I've been working on a number of scripts for
BBEdit to streamline my Ruby on Rails development process.
Thanks for all your contributions, Corey. I'm sure both the Git
integration and your BBRails Toolkit will come
I did what Dennis did and got exactly what he got -- all comments
displayed in gray.
On Dec 03, 2008, at 12:15 PM, Dennis wrote:
On Dec 2, 2008, at 4:16 AM, Harvey wrote:
- - - - - - - E G - - - - -
# This file is designed to be loaded by yaml, converted to a
# decendAttrEvalDict in
had a script that automated this translation, but it seems this
doesn't work properly (especially the decompile step from a compiled
script to a .applescript text file). Are there any suggestions to
improve the maintenance of these scripts? I offer no support, but get
questions regardless
On Aug 28, 2008, at 6:58 PM, rowen wrote:
A feature I'd really like to see is the ability to write scripts in
any standard language (e.g. Python or Perl) that can modify the
current selection by reading it from standard output and writing the
modified version to standard output. If no text
84 matches
Mail list logo