Page 1 of 1

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

Posted: 19 Aug 2017 21:53
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

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

Posted: 19 Aug 2017 22:03
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)...

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

Posted: 19 Aug 2017 22:41
by admin
Variable <clipboard> (or short form <clp>) has the item in the clipboard.