> 3. Or just create a shortcut using the file.createshortcut service
and
> save it in the recent folder, which seems which RdocEx did....
> >
>
Thanks Bruce. this is what I used. It works nicely with the previous
script as well :)
followed is the script (simple but usefull)
Avi
----------------
/*
Grabexe.powerpro
--------------
Use this script to add shortcut to recent document
to every newly opened program.
Install:
--------
1.Create a new command list.
2.Put the command list to autorun
(command list->setup->special lists->open-><your command list>)
3. Create item named "*" which runs script grabexe.powerpro on every
new window (grabexe = the following script)
*/
local LastExe= win.exepath(lastautorunhandle)
local RecentFolder = env("userprofile") ++ ?"/Recent/"
local shortcut = RecentFolder ++ select(LastExe,revindex
(LastExe,?"\")+1,length(LastExe)-4)
;create only if does not exist
if (not (ValidPath(shortcut ++ ?".lnk"))) do
;win.debug("creating shortcut",shortcut)
file.createshortcut(LastExe,shortcut)
endif