Thank you Chris :)

Jean-Christophe 

> On Jul 25, 2018, at 5:26, Christopher Stone <listmeis...@suddenlink.net> 
> wrote:
> 
> On 07/22/2018, at 04:20, Jean-Christophe Helary <brandel...@gmail.com 
> <mailto:brandel...@gmail.com>> wrote:
>> Some trivial AppleScript almost 100% provided by Chris Stone :)
> 
> 
> Hey Jean-Christophe,
> 
> If you really want a one-size-fits-all approach then this is the way to go:
> 
> ----------------------------------------------------------------
> # Auth: Christopher Stone
> # dCre: 2018/07/24 15:19
> # dMod: 2018/07/24 15:19 
> # Appl: Finder and any given application.
> # Task: Open the Finder selection with a given app's bundle identifier.
> # Libs: None
> # Osax: None
> # Tags: @ccstone, @Applescript, @Script, @Finder, @Open, @Finder, @Selection, 
> @Bundle, @Identifier, @ID
> ----------------------------------------------------------------
> 
> # Bundle Identifier of the app you want to open the selected files.
> set appID to "com.apple.TextEdit"
> 
> tell application "Finder"
>     set finderSelectionList to selection as alias list
>     if length of finderSelectionList = 0 then error "No files were selected 
> in the Finder!"
>     
>     open finderSelectionList using application file id appID
>     
> end tell
> 
> ----------------------------------------------------------------
> 
> It should work with just about any application.
> 
> --
> 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: <http://www.twitter.com/bbedit 
> <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 
> <mailto:bbedit+unsubscr...@googlegroups.com>.
> To post to this group, send email to bbedit@googlegroups.com 
> <mailto:bbedit@googlegroups.com>.
> Visit this group at https://groups.google.com/group/bbedit 
> <https://groups.google.com/group/bbedit>.

Jean-Christophe Helary
-----------------------------------------------
http://mac4translators.blogspot.com @brandelune


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

Reply via email to