Page 1 of 1

XYplorer to handle Internet-Ready code

Posted: 19 Feb 2010 20:48
by SkyFrontier
What about XYplorer being capable of interpreting an address like

Code: Select all

file:///D:/Programs/z_SSaver/Astro%20Gemini%20Software/Screensaver%20Manager%202.0/faq.html
like a valid path, or at least

Code: Select all

D:/Programs/z_SSaver/Astro%20Gemini%20Software/Screensaver%20Manager%202.0/faq.html
?

Currently the 1st addy launches the .htm from default web browser and the 2nd gives a "couldn't find location" notice.

It could expand integration between file searchers' results/web browsers and our favorite file manager...

Re: XYplorer to handle Internet-Ready code

Posted: 19 Feb 2010 21:12
by Stefan
msg urldecode("D:/Programs/z_SSaver/Astro%20Gemini%20Software/Screensaver%20Manager%202.0/faq.html");

Re: XYplorer to handle Internet-Ready code

Posted: 19 Feb 2010 21:46
by SkyFrontier
So I assume it's possible to script that task, right? "Read from clipboard/convert to path standards/read converted path/paste it into address bar/go there".
Anyone able, please...?
Thanks, Stefan!

Re: XYplorer to handle Internet-Ready code

Posted: 19 Feb 2010 22:47
by Stefan
SkyFrontier wrote:So I assume it's possible to script that task, right?
"Read from clipboard/
convert to path standards/
read converted path/paste it into address bar/go there".
Anyone able, please...?
FROM:
file:///D:/Programs/z_SSaver/Astro%20Gemini%20Software/Screensaver%20Manager%202.0/faq.html
TO:
D:/Programs/z_SSaver/Astro Gemini Software/Screensaver Manager 2.0/faq.html

SCRIPT:

"GoTo lokal URL"
    $Target= urldecode("<clipboard>");
    $Target= Replace( $Target, "file:///");
    $Target= Input("Title", "Prompt", $Target);
    GoTo $Target;


Or as one-liner:
GoTo replace(urldecode("<clipboard>"), "file:///");
(Replace 'GoTo' by 'msg' to test this script first)

Thanks, Stefan!
You are welcome.

Re: XYplorer to handle Internet-Ready code

Posted: 19 Feb 2010 23:00
by SkyFrontier
GrrrrEATTTTTT!!!
The prompt confirming the path was a valuable surprise!
Allows me to deciding whether to go to the file itself, or editing up to any path at the address.
Thanks much, Stefan!

Re: XYplorer to handle Internet-Ready code

Posted: 20 Feb 2010 10:03
by admin
SkyFrontier wrote:What about XYplorer being capable of interpreting an address like

Code: Select all

file:///D:/Programs/z_SSaver/Astro%20Gemini%20Software/Screensaver%20Manager%202.0/faq.html
like a valid path, or at least

Code: Select all

D:/Programs/z_SSaver/Astro%20Gemini%20Software/Screensaver%20Manager%202.0/faq.html
?

Currently the 1st addy launches the .htm from default web browser and the 2nd gives a "couldn't find location" notice.

It could expand integration between file searchers' results/web browsers and our favorite file manager...
Yes, the second part. :)

Re: XYplorer to handle Internet-Ready code

Posted: 20 Feb 2010 11:34
by jacky
admin wrote:Yes, the second part. :)
Knowing that, of course, XY can only convert / to \ and nothing more (like it does elsewhere, to be FTP/Linux-compatible in a way). I mean, "foo%20bar" and "foo bar" are two different files...

Re: XYplorer to handle Internet-Ready code

Posted: 20 Feb 2010 12:22
by admin
jacky wrote:
admin wrote:Yes, the second part. :)
Knowing that, of course, XY can only convert / to \ and nothing more (like it does elsewhere, to be FTP/Linux-compatible in a way). I mean, "foo%20bar" and "foo bar" are two different files...
I made it that if a path starts like "?:/*" I decode %20, if "?:\*" I decode not.