script for opening application and paste text

Discuss and share scripts and script files...
Post Reply
Ysl
Posts: 162
Joined: 03 Jan 2007 22:22

script for opening application and paste text

Post by Ysl »

Hi

Could someone help me to have a script that will open the everything.exe program (http://www.voidtools.com/) and then paste the current text of the focused folder/file

I now the beginning will be ::regexreplace $item, "<curbase>", "[^a-zA-Z]+", " "; open

But I don't know how to open/activate everything (I use WIN + S on my keyboard) and then paste the text inside it (if it is possible with a script ?)

Thanks for your help

Ysl

ale
Posts: 127
Joined: 19 Feb 2009 23:23
Location: Italy

Re: script for opening application and paste text

Post by ale »

Well I'm no expert but you can't paste easily into Everything, but I think you can pass the text to search for on the commandline, so if you want to search for <curbase>, something like this should work

Code: Select all

run """C:\path\to\Everything.exe"" -search ""<curbase>""";
you have of course to adjust the path to the Everything executable for your system.
If you want to use your regular expression to replace non alphabetic characters something like this should work

Code: Select all

$item = regexreplace("<curbase>", "[^a-zA-Z]+", " "); run """C:\path\to\Everything.exe"" -search ""$item""";

Ysl
Posts: 162
Joined: 03 Jan 2007 22:22

Re: script for opening application and paste text

Post by Ysl »

Wow !

It's working exactly as I hoped !

Thank you so much !

Ysl

Post Reply