1601
Find And Run Robot / Re: Use of Variables inside Aliases
« Last post by mouser on April 26, 2019, 06:18 PM »There are also alternative ways to do what you want, that might be less advanced but easier to maintain.
For example, FARR is very happy to let you make lists of items, either in an alias or even in a separate file, and then filter based on them.
So if you make an alias called "users" that just had a list of your users and their associated web urls like:
The advantage of doing it that "simpler" way is that you could type "users" and see a list of all your user urls, and then type "users b" to have it start filtering only users starting with b, or just type "users bob" and hit enter without thinking. This also has the advantage of being less sensitive to spelling errors and helping you remember user names, etc.
There may be cases where using complex variables and regular expressions make sense, but it may be that sometimes just using a simple list of labeled results is cleaner. You could also put that list in a text file and tell farr alias to grab the list from the text file so you could more easily update it outside of farr..
For example, FARR is very happy to let you make lists of items, either in an alias or even in a separate file, and then filter based on them.
So if you make an alias called "users" that just had a list of your users and their associated web urls like:
Code: Text [Select]
- alice | http://www.mypage.com/user/1
- bob | http://www.mypage.com/user/2
- etc.
The advantage of doing it that "simpler" way is that you could type "users" and see a list of all your user urls, and then type "users b" to have it start filtering only users starting with b, or just type "users bob" and hit enter without thinking. This also has the advantage of being less sensitive to spelling errors and helping you remember user names, etc.
There may be cases where using complex variables and regular expressions make sense, but it may be that sometimes just using a simple list of labeled results is cleaner. You could also put that list in a text file and tell farr alias to grab the list from the text file so you could more easily update it outside of farr..

Recent Posts
