How to Record a Macro that uses the Replace… function in Sublime Text - text

I’m trying to record a macro that involves using the Replace… function to highlight certain values and then Cut and Paste those to the top of the document. Is this possible with Sublime text?
I made a simple macro trying to do exactly this and here’s how it came out.
[
{
"args": null,
"command": "cut"
},
{
"args": null,
"command": "paste"
}
]
Looks like it only recorded the copy and paste actions.
I'm very new to all of this. My end goal is to get a list of filenames from an XML output from Adobe Premiere Pro.

Related

How to disable auto wrapping in Excel?

New behavior in Excel, it automatically wraps text if you paste in text with a new line.
It is extremely annoying to have to remove wrap text after every single time I paste. How do I disable this "feature" for good?

using Automator to paste selected text to a word document

I want to make an Automator shortcut to paste selected text to a Word document.
To provide Applescript with the selected text I used the following code:
on run {input, parameters}
set input to input as text
set the clipboard to the input as string
return input
end run
Then I "Get" and "Open" a specified Word document
And here, as I understand it, a new Applescript with the function "paste selected text to this word document" should be, but I have some real problems with this part of the Automator algorithm. Could anyone please help and/or give any tips?
Thanks!

Bulk Add Hyperlinks in Excel using PowerShell

I currently am cycling through each excel cell using a ForEach-Object, but want to take advantage of the MS Excel 'Address' function to add 100's of hyperlinks at the same time.
Current format:
$hyperLinkRange | ForEach-Object {
$hyperLinkRange.Hyperlinks.Add($ws.Cells.Item($_.Row,1), "\\path\$($_.Value2)","", "Click for $($_.Value2)")
}
Would like to use something similar to below, so not to loop through them all, but to add them all at the same time:
$hyperLinkRange.Hyperlinks.Add($hyperLinkRange.Cells, "\\path\$($($hyperLinkRange.Address($false,$false)).Value2)","", "Click for $($($hyperLinkRange.Address($false,$false)).Value2)")
I appreciate any and all help! Thanks!
-JFV

StringReplace unable to identify and replace string copied into clipboard from web pages?

What I am trying to do is very simple: copying selected text into clipboard and replacing every occurrence of some words with others.
StringReplace replaces the specified substring with a new string, so it would be what I am actually looking for.
This small script should copy the text highlighted by user into clipboard, look for every occurrence of the strings <name>, <class> and <race> and replace them with strings Aerien, Paladin and Human:
^q::
{
Send, ^c
ClipWait
StringReplace, clipboard, clipboard, <name>, Aerien, All
StringReplace, clipboard, clipboard, <class>, Paladin, All
StringReplace, clipboard, clipboard, <race>, human, All
Sleep, 250
Send, ^v
}
Return
At the end, it pastes the new content.
Well, said that... try to use it on the contents of this web page as instance, especially where it's written:
I hope you strapped your belt on tight, young <class>, because
there is work to do here in Northshire.
Aforementioned script returns me always <class> instead of replacing that string with Paladin. Using the same script within Notepad instead of within that web page sometimes work but more often not.
I am guessing some issues with < and > symbols.
Always use AutoHotkey from http://ahkscript.org/ (current version, new official website)! AutoHotkey from autohotkey.com is outdated and you may have some problems running scripts with it!
Your script works as intended. When you press CTRL+q script copies to clipboard selected text (so you have to select text before pressing CTRL+q), then in a text that is in clipboard it searches for <name>, <class>, <race> and replaces them respectively to Aerien, Paladin, Human. After it pastes the content of clipboard to the current active window.
1. If you need to paste the content of clipboard in specific input field of current active window, then in my opinion the best way to do that is to use ImageSearch command to get coordinates of that input field, after make click in theses coordinates and after paste the content of clipboard. But also keep in mind that there can be other solutions to do the some.
2. If you need to paste content of clipboard in some other window, activate that window with WinActivate command and then paste the content of clipboard.

Lotus #command script for Paste Special -> Text

I am looking for a way to create a button to paste plain text. i.e. Edit -> Paste Special -> Text.
I found the function #Command([EditPasteSpecial]) but it only pops up the Paste Special dialog box.
Is there a way to automatically select Text from this list? Some way to automate the keystrokes for "T" and "Enter" maybe?
I tried adding a line for #Char(84) and #Char(13) to simulate these keystrokes, but that didn't work. Any other options?
Thanks.
You have to use Lotusscript.
Look at the GetUnformattedText method of the NotesRichTextItem class.

Resources