Page 1 of 1

Simple Portable File Association Script for XYS Script files

Posted: 12 Mar 2014 19:54
by bdeshi
Hello! I thought it'd be a good idea to have an option to double-click a XYscript file and either run or edit it. Then I made this script.
Then, I thought it'd be a good idea to send this script to the brain extension called the internet. Then I published it here.


All this does is pop up a, well, a pop-up menu when opening a *.XYS file with an option to either directly execute the script, or open it in
Notepad (you can change this) for editing.
Besides saving time and a few clicks, it makes me feel like I've accomplished something useful for once.

==USAGE==
* get the attached script file.
* place the script file in <xyscripts> (go to <xyscripts> from addressbar)
* creat this new portable file association (assuming the filename wasn't changed) (and preferably place it above other xys associations, heh heh)

Code: Select all

"Open as XYScript" xys>::load "<xyscripts>\pfa_xys.xys"
Now double-click/press ENTER on a *.xys file (or choose from the context menu->Open With->Open as XYScript)
NOTE: in case of multiple selection, only the focused script is executed, but all can be opened for editing at once. Reason: Is it safe to execute multiple scripts (almost) at once?
#include <ShirkAllResponsibility.h>

Oh, and ... XYplorer captured all my words of praise and so I can find no words to thank the Don enough!

Re: A Portable File Association Script for XYS Script files

Posted: 12 Mar 2014 20:01
by highend
Welcome and thanks for the contribution.

I don't want to discourage you but there is already a more general approach (which ofc can be used for .xys files as well):
http://www.xyplorer.com/xyfc/viewtopic.php?f=7&t=9300

Re: A Portable File Association Script for XYS Script files

Posted: 13 Mar 2014 03:48
by bdeshi
Thanks for the great link!

I knew there had to be something similar (or in this case, much better), but I'd already made the script and went ahead and posted it anyways.