topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Friday December 13, 2024, 3:18 am
  • Proudly celebrating 15+ 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: Smart search Alias with Locate32  (Read 5948 times)

Enzomaticus

  • Supporting Member
  • Joined in 2008
  • **
  • default avatar
  • Posts: 12
    • View Profile
    • Donate to Member
Smart search Alias with Locate32
« on: December 04, 2008, 05:17 PM »
Can someone please tell me if it is possible to configure an alias that uses the locate32 plugin to search for all files of a certain type? Ideally I would like an alias called "Playlist" that would list all the .xspf files on my drive.
Is this doable or am I just making work for myself?

Cheers

d4ni

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 129
    • View Profile
    • Donate to Member
Re: Smart search Alias with Locate32
« Reply #1 on: December 04, 2008, 05:28 PM »
While I cannot help you as I don't know Locate32's parameters, I'm pretty sure it is possible, if you can search for files with a certain extension using Locate32. Would be something of the form dosearch loc32 *.xspf (not sure how you can call the plugin, and how you can search for files with a certain extension, sorry :))

Enzomaticus

  • Supporting Member
  • Joined in 2008
  • **
  • default avatar
  • Posts: 12
    • View Profile
    • Donate to Member
Re: Smart search Alias with Locate32
« Reply #2 on: December 04, 2008, 05:38 PM »
That's exactly what I was thinking - I just don't know how to implement the idea.

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • View Profile
    • Donate to Member
Re: Smart search Alias with Locate32
« Reply #3 on: December 05, 2008, 01:03 AM »
like d4ni mentioned. if you already have the locate plugin, create a new alias with the following details.

Group Alias Name: Playlist
RegEx Pattern: ^playlist (.*)
Result(s): dosearch loc -txspf $$1

then type 'Playlist' in Farr and all the files with that extension would appear.

note: i did something like that before but now with the availability of locate plugin, the above method is better.

d4ni

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 129
    • View Profile
    • Donate to Member
Re: Smart search Alias with Locate32
« Reply #4 on: December 05, 2008, 02:09 AM »
Not sure if you need the "(.*)" part in the RegEx, and the "$$1" in the Results. If I understood correctly he simply wants to list all the .xspf files, not have any restrictions on the name. So perhaps some wildcard in the Locate32 paramters to list all .xspf files is required instead of the $$1. Just '*' I assume.

Enzomaticus

  • Supporting Member
  • Joined in 2008
  • **
  • default avatar
  • Posts: 12
    • View Profile
    • Donate to Member
Re: Smart search Alias with Locate32
« Reply #5 on: December 05, 2008, 08:19 AM »
Brilliant - thank you so much. A combination of both your posts got it working and has just simplified my video learning library 100 fold.

Cheers

d4ni

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 129
    • View Profile
    • Donate to Member
Re: Smart search Alias with Locate32
« Reply #6 on: December 05, 2008, 10:31 AM »
Glad I could help :Thmbsup: