DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: How to exclude url link shortcuts?  (Read 7,703 times)

superboyac

  • Is your software in my list?
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 6,347
How to exclude url link shortcuts?
« on: March 14, 2011, 02:38 PM »
How can I exclude those shortcuts that are only url's to websites?  I can't figure out a way that excludes them and not other kinds of shortcuts.

hanzo

  • Participant
  • Joined in 2011
  • *
  • Posts: 12
Re: How to exclude url link shortcuts?
« Reply #1 on: March 14, 2011, 03:44 PM »
There seems to be a plugin callback to resolve the link, which one can code to filter out web address, but that's beyond my league. The second way is to manual exclude ".url" from search with "-.url", or give a very low score to .url extensions so they appear at the bottom through pattern scoring, or -9999 to exclude it. The third way  is to put all your shortcut urls in 1 folder and exclude the folder.

I believe the pattern scoring method should be the simplest.

superboyac

  • Is your software in my list?
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 6,347
Re: How to exclude url link shortcuts?
« Reply #2 on: March 14, 2011, 03:59 PM »
There seems to be a plugin callback to resolve the link, which one can code to filter out web address, but that's beyond my league. The second way is to manual exclude ".url" from search with "-.url", or give a very low score to .url extensions so they appear at the bottom through pattern scoring, or -9999 to exclude it. The third way  is to put all your shortcut urls in 1 folder and exclude the folder.

I believe the pattern scoring method should be the simplest.
but I can't figure out how to exclude url's.  They don't have "url" in them, just "lnk".

hanzo

  • Participant
  • Joined in 2011
  • *
  • Posts: 12
Re: How to exclude url link shortcuts?
« Reply #3 on: March 14, 2011, 04:12 PM »
sorry then. that's a first for me. all my internet shortcuts end with .url. Those ending with .lnk are just file/folder shortcuts for me.

edit. oh. i manged to make a internet shortcut with the lnk extension, like "c:\firefox.exe" "www.google.com". no idea how to filter out these then. sorry.
« Last Edit: March 14, 2011, 04:17 PM by hanzo »

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: How to exclude url link shortcuts?
« Reply #4 on: March 14, 2011, 05:55 PM »
yeah if there is nothing special about them from their filenames (like .com in filename or .url in extension or something) then you aren't going to be able to tell farr to filter them out en masse.

superboyac

  • Is your software in my list?
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 6,347
Re: How to exclude url link shortcuts?
« Reply #5 on: March 14, 2011, 06:04 PM »
yeah if there is nothing special about them from their filenames (like .com in filename or .url in extension or something) then you aren't going to be able to tell farr to filter them out en masse.
That's what I figured.  What's frustrating is that they always seem to have priority over the program file of the same name.  Maybe it's just in my head, but that's how it appears to me.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: How to exclude url link shortcuts?
« Reply #6 on: March 14, 2011, 06:09 PM »
hmm.. well this is an interesting point.. i do resolve shortcuts for some purposes.. let me look back into this and refresh my memory about whether FARR will score based on resolved filename, and if so, how one would adjust score based on resolving to a url..

superboyac

  • Is your software in my list?
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 6,347
Re: How to exclude url link shortcuts?
« Reply #7 on: March 14, 2011, 08:24 PM »
hmm.. well this is an interesting point.. i do resolve shortcuts for some purposes.. let me look back into this and refresh my memory about whether FARR will score based on resolved filename, and if so, how one would adjust score based on resolving to a url..
I've been trying to figure out a good way to eliminate them.  But there's nothing that can distinguish it from any other link, other than intuition.

hanzo

  • Participant
  • Joined in 2011
  • *
  • Posts: 12
Re: How to exclude url link shortcuts?
« Reply #8 on: March 15, 2011, 02:31 AM »
how do you tell them apart? there must be some clue for you to determine if it's a shortcut url or not.

I was able to give preferred links higher scores by putting them all in alias name "*". It's a little troublesome if u have lots of links to add. But add them as they appear, and it shouldn't be that hard.

Original address: https://www.donationcoder.com/forum/index.php?topic=26068.0