ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Find And Run Robot

Open With

(1/2) > >>

phitsc:
Hi

Is there already a way to launch a found file with an application other than the default application for that file type? What I want to do is the following:

I have an alias like this:

Regular Expression Pattern: ^blah (.*)
Results: dosearch c:\blah\config files\$$1*.xml

This works nicely for giving me a list of files, but launching one of the found files will launch with the file type's default application (in this case on my system a web browser), while I want it to be opened in an editor.

I tried to solve this with a custom plugin. The idea was to have something like this:

Results: dosearch c:\blah\config files\$$1*.xml /OPENWITH=notepad.exe

i.e. using something similar to FARR's file window options. But that obviously doesn't work. While I think it would be good to have the possibility to choose the application to launch as a core feature of FARR (and maybe it's already there, but I don't know), I think it would still be worth considering to add something like /OPTIONS="bli blah bloh" where the options string would be passed to the EFuncName_Allow_ProcessTrigger function somehow to be used by the plugin.

Philipp

mouser:
I think it would still be worth considering to add something like /OPTIONS="bli blah bloh" where the options string would be passed to the EFuncName_Allow_ProcessTrigger function somehow to be used by the plugin.
--- End quote ---

i think this is a really good idea.  i think it actually could be done with current code by doing like:
Results: dosearch c:\blah\config files\$$1*.xml +OPENWITH=notepad.exe

and then have a plugin look at the search string for +OPENWITH= when it comes time to decide whether it wants to take over launching of a file.

to be clearer: plugins have the ability to take over the launching of each file instead of having farr launch it.  and farr will ignore modifiers like +OPENWITH=blahblah.  so you just need a plugin that decides to look for +OPENWITH and takeover those launches.

nitrix-ud:
to be clearer: plugins have the ability to take over the launching of each file instead of having farr launch it.  and farr will ignore modifiers like +OPENWITH=blahblah.  so you just need a plugin that decides to look for +OPENWITH and takeover those launches.
--- End quote ---

that would be excellent, and as you know mouser, i'm not to much into plugins, i much prefer aliases (they offer more liberty) !!

so plugins that benefits aliases are very welcome !!!!

phitsc:
Ok, thanks mouser, I'll try this.

Philipp

mouser:
just email me ([email protected]) if you need help getting a plugin coded.. i'm always happy to help plugin coders.  i don't think anyone has yet made a launch-takeover plugin -- it would be great to have an example of one.

in addition to this openwith idea, another popular one would be a +RunAs modifier that let you specifiy an alternate user (admin) to run a program as.

Navigation

[0] Message Index

[#] Next page

Go to full version