On Oct 31, 2015, at 18:37, Andrew Davidson <[email protected]> wrote:
> I know about that trick, but that wasn't quite what I wanted. That will make
> all .ino files open with BBEdit. I still want the primary choice to be the
> Arduino app, but I just want to have BBEdit be listed as an alternate.
______________________________________________________________________
Hey Andrew,
As Rich says the OS won't let you do that, but there a number of alternatives.
I normally use LaunchBar to open selected Finder items in any given app of
choice.
This sort of thing is easily scripted though.
---------------------------------------------------------------------------------
tell application "Finder" to set finderSelectionList to selection as alias list
if length of finderSelectionList = 0 then error "No files were selected in the
Finder!"
tell application "BBEdit"
activate
set openedFileList to open finderSelectionList
repeat with i in openedFileList
set bounds of i's window to {303, 44, 1617, 1196}
end repeat
end tell
---------------------------------------------------------------------------------
You can set the position and size of the newly opened window(s) – filter file
types – and many other things.
I recommend FastScripts <http://www.red-sweater.com/fastscripts/> or Keyboard
Maestro <http://www.keyboardmaestro.com/main/> for running scripts of this sort.
FastScripts' demo mode allows unlimited scripts but only 10 assignable keyboard
shortcuts, and this is often enough for people with modest macro needs. The
full version is $9.95 U.S. and unlocks unlimited app-specific and global
keyboard shortcuts.
Keyboard Maestro at $36.00 U.S. is is a full-fledged automation utility and
significantly more powerful than FastScripts.
I've used both since 2003.
I recommend these utilities, because in general I'd rather perform my operation
in the application I'm in – e.g. I want to be in the Finder when I run my 'Open
in BBEdit' script.
But.
Since BBEdit allows keyboard shortcut assignment to virtually anything in its
purview you can place a script in its Script Menu - give it a keyboard shortcut
– and run it from BBEdit.
--
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
"[email protected]" 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 [email protected].
To post to this group, send email to [email protected].