Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • December 09, 2016, 11:01:06 PM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Open With  (Read 2869 times)

phitsc

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 1,187
    • View Profile
    • Donate to Member
Open With
« on: June 11, 2008, 03:02:09 AM »
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

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 36,431
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Open With
« Reply #1 on: June 11, 2008, 03:20:21 AM »
Quote
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.

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

  • Charter Member
  • Joined in 2005
  • ***
  • default avatar
  • Posts: 516
    • View Profile
    • Donate to Member
Re: Open With
« Reply #2 on: June 11, 2008, 03:26:07 AM »
Quote
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.

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

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 1,187
    • View Profile
    • Donate to Member
Re: Open With
« Reply #3 on: June 11, 2008, 03:32:21 AM »
Ok, thanks mouser, I'll try this.

Philipp

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 36,431
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Open With
« Reply #4 on: June 11, 2008, 03:38:41 AM »
just email me (mouser@donationcoder.com) 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.

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,258
    • View Profile
    • Coding Snacks by Lanux128
    • Read more about this member.
    • Donate to Member
Re: Open With
« Reply #5 on: June 11, 2008, 03:45:38 AM »
i like this idea very much. esp. when working on file-types that can be used by multiple programs. :Thmbsup: