Simple Portable File Association Script for XYS Script files

Discuss and share scripts and script files...
Post Reply
bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Simple Portable File Association Script for XYS Script files

Post 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!
To see the attached files, you need to log into the forum.
Last edited by bdeshi on 14 May 2014 09:37, edited 2 times in total.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

highend
Posts: 14942
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: A Portable File Association Script for XYS Script files

Post 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
One of my scripts helped you out? Please donate via Paypal

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: A Portable File Association Script for XYS Script files

Post 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.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

Post Reply