If I’m following you:

1. in any macOS Open dialog, you can type a / and a special input field will 
appear where you can type/paste a path (to a directory, not a file)

2. in BBEdit there’s an Open File by Name command, where you can type/paste in 
a path to a file.

Cheers


> On 2021-03-14, at 12:47, @lbutlr <krem...@kreme.com> wrote:
> 
> Greetings and happy Coviversary:
> 
> So, I have a text file that has a path to a file, and I would like to open 
> that file, or the directory containing that file.
> 
> Currently, I copy the path manually, then paste it into the terminal (or a 
> shell worksheet in BBEdit), and prepend 
> 
> open "
> 
> And append
> 
> "
> 
> (I can skip the quotes if there are no spaces, of course)
> 
> And hit return.
> 
> The "Open" service works, but it pops up a "Bbedit wants to use the 
> restricted service 'open'" every single time, which is almost, but not quite, 
> as annoying as the cope/paste.
> 
> The "Open in BBEdit is fine if the file needs to be opened in BBEdit itself, 
> but neither open nor open in BBEdit has an option to open the enclosing 
> folder, so I have to be careful about the selection instead of just the 
> entire line, and then since I do not want to open the PATH in BBEdit, I have 
> to jump through the restricted dialog.
> 
> It occurs to me there must be a better way to do this? I thought of 
> automator, but rejected that since there is no flow-control for deciding if 
> to grab the directory or the full path, but I suppose I cold do two services?
> 
> Before I spend a lot of time noodling, any suggestions?

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://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 view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/9E3C4DB9-1536-40D9-B732-59B88FC06CEC%40gmail.com.

Reply via email to