How to open file/path/link in clipboard by catalog item?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
MIRKOSOFT
Posts: 70
Joined: 21 Mar 2017 22:44

How to open file/path/link in clipboard by catalog item?

Post by MIRKOSOFT »

Hi!

I created 4 catalogs and have there also direct application shortcuts.
Near all are opening selected item(s) by setting as application or "<curitem>".
I want to add function which allows open file/path to file/link in clipboard, like:
1. Open file which is copied into clipboard
2. Open folder which is copied into clipboard
3. open file which path is in clipboard
4. Open folder which path is in clipboard
5. Open link to webpage which is in clipboard

Is it possible?
If, how?

Thank you for each help.
Miro

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

Re: How to open file/path/link in clipboard by catalog item?

Post by highend »

Use a script in that catalog entry?

Check if clipboard contains "http" or check with exists() if
it is a file / folder and either use open / openwith / run or goto (for folders)...
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 60591
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: How to open file/path/link in clipboard by catalog item?

Post by admin »

Variable <clipboard> (or short form <clp>) has the item in the clipboard.

Post Reply