Re: AppleScript for Word-Selection at the Cursor

2017-12-01 Thread Christopher Stone
On 11/30/2017, at 16:47, Neil Faiman mailto:neil.goo...@faiman.org>> wrote:
> Take a look at this article 
>  from 
> Daring Fireball in 2003.


Hey Neil,

Perfect.  And more elegant than what I was doing.

> More than you wanted to know. 

Not at all.  :)

Thanks.

--
Take Care,
Chris

-- 
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.
Visit this group at https://groups.google.com/group/bbedit.


Quarantined Python files created/edited by BBEdit (High Sierra / Gatekeeper / com.apple.quarantine)

2017-12-01 Thread David Stein
All:

I'm a fairly new BBEdit user, having upgraded after years of good 
experiences with TextWrangler. (I encountered some bumps and bruises in the 
transition, but Patrick has been both very responsive and very helpful - 
kudos on providing great customer service!)

But I'm continuously running into an issue with High Sierra and Gatekeeper, 
which is part of MacOS's security and malware infrastructure.

The problem is that almost any .py file I create or edit with BBEdit gets 
instantly flagged by Gatekeeper as "an untrusted file from the internet," 
and it gets quarantined. The behavior is simple and reproducible - simply 
open or create a file with a .py extension, make some change, save it, and 
run it. In almost all cases, I get the response:

-bash: (filename).py: /usr/bin/env: bad interpreter: Operation not permitted


Fixing it is trivial, with the command:

xattr -d com.apple.quarantine (filename).py


...but the next time I edit the file with BBEdit and try to run it, the 
quarantine gets reapplied.

This behavior has a few quirks:

1) It *only* happens with BBEdit. No other apps on my machine cause this 
problem to occur. I don't know that BBEdit is *at fault* here - it seems 
much more likely a MacOS problem - just noting that the problem is specific 
to BBEdit.

2) It doesn't actually happen with every file and every save. It *does* 
seem to happen consistently with a file once it starts happening. I have 
some Python files that I've saved hundreds of times over the past month or 
so, and Gatekeeper quarantines them every time.

Does anyone know what's going on here? Is anyone else having this 
experience?

-- 
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.
Visit this group at https://groups.google.com/group/bbedit.


Re: BBEdit iCloud LaTeX - How to compile the file?

2017-12-01 Thread Marek Stepanek
On 01.12.2017 17:23, Bruce Van Allen wrote:

> 
> In a BBEdit shell worksheet, you can cancel a process with Command-dot
> (dot = period/full stop).
> 
> I'm unfamiliar with the use of tilde ('~') in file paths. Maybe try
> com.apple.CloudDocs in that portion of the path?
> 
> HTH


Thank you Bruce for this hint! Unfortunately your suggestion for the
path to the file on iCloud is not working.

Greetings

-- 
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.
Visit this group at https://groups.google.com/group/bbedit.


[ANN] BBEdit 12.0.2

2017-12-01 Thread Rich Siegel
[List mom note: please start new threads for specific questions 
rather than replying to this message. Thanks. :-)]


Good { morning, afternoon, evening },

We are pleased to announce the release and immediate 
availability of BBEdit 12.0.2. This is a free update for anyone 
using BBEdit 12, and includes a number of fixes for reported 
problems, as well as all the new features and refinements 
previously released as part of the BBEdit 12 upgrade.


A complete digest of the changes is available here:

 

If you're already using BBEdit 12, you can choose "Check for 
Updates" from the BBEdit menu, or get the update from the BBEdit 
updates page:


 

For those using an older version: if you would like to upgrade 
your paid BBEdit license, you are welcome to do so, starting here:


.

If you purchased a BBEdit 11 license directly from us (or using 
our FastSpring web store) on or after March 1, 2017, you have 
been sent a free license upgrade, to the email address you used 
when purchasing. If you did not receive this, please check your 
spam traps.


Meanwhile, BBEdit offers a 30-day evaluation period. During that 
period, all of BBEdit’s features are available. When it ends, 
you can still use BBEdit — with no nag screens or unsolicited 
interruptions, for free, forever.


After the evaluation period, you may re-enable all of BBEdit’s 
exclusive features at any time by purchasing a license (at a 
discount, if you have a paid license for a previous version).


 

Enjoy,

R.
--
Rich Siegel Bare Bones Software, Inc.
  

Someday I'll look back on all this and laugh... until they 
sedate me.


--
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.
Visit this group at https://groups.google.com/group/bbedit.


Re: BBEdit iCloud LaTeX - How to compile the file?

2017-12-01 Thread Bruce Van Allen
On 12/1/17 at 1:33 AM, ms...@podiuminternational.org (Marek 
Stepanek) wrote:



Control-D is not working. And the worksheet is waiting for an file path
and does not accept no commands anymore. Should I switch to the
Terminal? (Ah! I just see the same error in the Terminal. But the
Control-D is working at least)


BBEdit worksheets are shell worksheets, so the error message 
you're getting with the instruction to use Control-D is coming 
from the shell, as you observed when you tried the same command 
in a terminal.


In a BBEdit shell worksheet, you can cancel a process with 
Command-dot (dot = period/full stop).


I'm unfamiliar with the use of tilde ('~') in file paths. Maybe 
try com.apple.CloudDocs in that portion of the path?


HTH
--

  - Bruce

_bruce__van_allen__santa_cruz__ca_

--
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.
Visit this group at https://groups.google.com/group/bbedit.


Re: AppleScript for Word-Selection at the Cursor

2017-12-01 Thread Roland Küffner
Hi Chris,

I can offer no efficient solution but I can affirm that this is a very
handy functionality (if you ever tried the command viw in vim you know who
it feels :-)

In BBEdit I use two scripts for selecting words. The fist one is the same
Neil pointed to (from John Gruber).

The second one ignores punctuation. This is basically a recorded search
(backwards for \s than forward for \s extending selection). As your
Applescript capabilities are legendary and well known in this list (and
elsewhere), I’m sure that approach would well meet your „spaghetti“
definition. But on the other side, this dirty script *feels* fast enough
and I use it day in and day out.

Maybe BBEdit’s Select Menu will get a 'word' sibbling on some future day.
Till then it’s pasta for me ...

Roland


On Thu, Nov 30, 2017 at 10:28 PM, Christopher Stone <
listmeis...@suddenlink.net> wrote:

> Hey Folks,
>
> I'm trying to write some efficient AppleScript code to select the WORD the
> cursor is IN or next to (right or left).
>
> Examples would be having the cursor anywhere between the “>” & “<” symbols
> in the text below:
>
> 
>
> >Now< is the time for all good men to come to the aid of their country
>
> >Supercalifragilisticexpialidocious< is obviously from “Mary Poppins” if
> you're of a certain age...
>
> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
> >tempor<
>
> 
>
> I've got some spaghetti code I don't like at the moment and thought I'd
> ask before continuing to reinvent the wheel.
>
> TIA.
>
> --
> Best Regards,
> Chris
>
> --
> 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.
> Visit this group at https://groups.google.com/group/bbedit.
>

-- 
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.
Visit this group at https://groups.google.com/group/bbedit.


BBEdit iCloud LaTeX - How to compile the file?

2017-12-01 Thread Marek Stepanek

Hello All!


I am pretty new to iCloud. I was always refusing iCloud, because I did
not want to share any informations with an server in a country, which
claims other countries to respect "America First". But since I have to
share my calendar with a friend, I switched it on. Pretty cool all you
can do with it, specially if you have two computers.

I have a strange problem: with MacVim working on a LaTeX file from the
iCloud, I issue the command \ll and \ls the file is "compiled" and I see
the corresponding pdf in Preview. Trying to achieve the same with BBEit:

I go to the BBEdit Menu Edit -> Copy Path -> Copy full Path, then I go
to a worksheet, and enter the command and the path escaping the empty
spaces like for example:

pdflatex /Users/username/Library/Mobile\
Documents/com~apple~CloudDocs/poesie_literatur/jessenin03.tex

Then I hit   - Right? so far? I get an error. Apparently
BBEdit (?) can't cope with ~ in the file name:

This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017)
(preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
! I can't find file `"/Users/username/Library/Mobile
Documents/com"'.

   \protect
<*> "/Users/username/Library/Mobile Documents/com~

apple~CloudDocs/poesie_litera...

(Press Enter to retry, or Control-D to exit)
Please type another input file name:

Control-D is not working. And the worksheet is waiting for an file path
and does not accept no commands anymore. Should I switch to the
Terminal? (Ah! I just see the same error in the Terminal. But the
Control-D is working at least)


Some help? Best greetings to all!


marek

-- 
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.
Visit this group at https://groups.google.com/group/bbedit.