Last active
December 16, 2015 14:39
-
-
Save jibbius/5450294 to your computer and use it in GitHub Desktop.
Snagit: Send Captured File's Path To Clipboard
--------------------------------------------------------------
- Ensure snagit is configured to save your capture as a file, that is then sent to an application.
- Select this script as the application.
- The script will then save the file's path to the clipboard.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'Snagit: Send Captured File's Path To Clipboard | |
'-------------------------------------------------------------- | |
'- Ensure snagit is configured to save your capture as a file, that is then sent to an application. | |
'- Select this script as the application. | |
'- The script will then save the file's path to the clipboard. | |
Dim Clipboard | |
Set args = WScript.Arguments | |
if args.length > 0 then | |
arg1 = trim(args.Item(0)) | |
else | |
arg1 = "(No Data)" | |
end if | |
Set objShell = WScript.CreateObject("WScript.Shell") | |
objShell.Run "cmd /C echo "&arg1&" | CLIP", 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment