--- In [email protected], "aviasd" <[EMAIL PROTECTED]> wrote:
>
> Hi
> 
> I want to build a menu of recent documents , sorted by their loading 
> application. so that on a keypress, a menu pops showing a colmun 
> seperated menu of 10 recent xls, pdfs , docs etc .. allowing me to  
to 
> open/copy path etc...
> 
> so the question is - can I get the file association of an lnk file 
and 
> sort the lnks in A directory according to this association ?

Yes, but with significant scripting.
- use file.deleteold to keep recent folder at a reasonable size (this 
could be a startup scheduled event rather than in script)

- use file.listfiles or .allfiles to get files in recent folder.
- use file.resolve to get actual path and keep both whole path and 
extension  in separate vectors
- use file.doublesort to sort whole paths based on extension
- write vector of whole paths to file, formatted either for filemenu 
(easy) or .ini (harder) adding column separating directives as desired
- display with menu showfile or filemenu function
- if you want to do something other than just run the file, you will 
also have to have some say of specifying these different actions, like 
different hot keys, or displaying a another menu after choosing the 
file, or interpreting left and right mouse clicks for menu selection 
differently
- 

Reply via email to