Resource

Resource Basics

Resource Name Copy File Path to Clipboard
Resource Version 1.2
Category File System
Downloads 3184
Release Date 1/23/2018 4:57:12 PM
 

Resource Details

Description This script copies the file path (folder+filename) of the selected images to the clipboard. These can then be pasted/used in other software.
Installation Instructions 1. Download the script
Usage Instructions 1. Select one or more thumbnails
2. Select Tools->Scripter
3. Open the downloaded script
4. Run the script
Changes in this version n.a.
Special Requirements
 

Author Information

Author Name IDimager Support
 

Script

var
  i: Integer;
  ASl: TTntStringList;
begin
  if Selected.Count = 0 then
  begin
    Say('No image selected');
    exit;
  end;

  ASl := TTntStringList.Create;
  try
    for i := 0 to Selected.Count - 1 do
    begin
      ASl.Add(Selected.Items[i].FileName);
    end;
    if ASl.Count > 0 then
    begin
      CopyTextToClipboard(ASl.Text);
      SendVisualFeedback('The file path for ' + IntToStr(ASl.Count) + ' ' + iif(ASl.Count = 1, 'image', 'images') + ' is copied to the clipboard', 5000);
    end;
  finally
    ASl.Free;
  end;
end;