View Scripts in Windows Explorer Preview Pane?

General Macro Scheduler discussion

Moderators: Dorian (MJT support), JRL

Post Reply
User avatar
JRL
Automation Wizard
Posts: 3501
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

View Scripts in Windows Explorer Preview Pane?

Post by JRL » Wed Apr 20, 2016 1:43 pm

I never use the Windows Explorer preview pane, just never think about it. Today I wanted to search for some code and thought the preview pane might be just the ticket. Unfortunately Macro Scheduler scripts don't seem to preview. Is there a setting somewhere or is it more complicated?

User avatar
CyberCitizen
Automation Wizard
Posts: 721
Joined: Sun Jun 20, 2004 7:06 am
Location: Adelaide, South Australia

Re: View Scripts in Windows Explorer Preview Pane?

Post by CyberCitizen » Tue May 17, 2016 4:23 am

FIREFIGHTER

User avatar
JRL
Automation Wizard
Posts: 3501
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Re: View Scripts in Windows Explorer Preview Pane?

Post by JRL » Tue May 17, 2016 4:48 pm

Thanks Cy,

Didn't work though. When I look at the index properties the file extension .SCP is already set up to index contents.

Also tried the registry portion of these instructions.
https://kickthatcomputer.wordpress.com/ ... xtensions/
First step is to associate the file extension with Notepad. Did not want to associate my script files with Notepad so left out that step which is probably why it didn't work. But if its a choice between seeing scripts in the preview pane and having them associated with Macro Scheduler, I choose the latter.

hagchr
Automation Wizard
Posts: 327
Joined: Mon Jul 05, 2010 7:53 am
Location: Stockholm, Sweden

Re: View Scripts in Windows Explorer Preview Pane?

Post by hagchr » Tue May 17, 2016 5:11 pm

... or If you need to browse regularly then maybe just use MS and create a little simple "MS Explorer". ReadFile> will get the script contents.

User avatar
JRL
Automation Wizard
Posts: 3501
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Re: View Scripts in Windows Explorer Preview Pane?

Post by JRL » Tue May 17, 2016 5:33 pm

Good idea :)

Code: Select all

GetFileList>%script_dir%\*.scp,vList,crlf
StringReplace>vList,%Script_dir%\,,vList


Dialog>Dialog1
object Dialog1: TForm
  Left = 467
  Top = 160
  HelpContext = 5000
  BorderIcons = [biSystemMenu]
  Caption = 'Script File Preview'
  ClientHeight = 689
  ClientWidth = 1219
  Color = clBtnFace
  Font.Charset = DEFAULT_CHARSET
  Font.Color = clWindowText
  Font.Height = -11
  Font.Name = 'MS Sans Serif'
  Font.Style = []
  OldCreateOrder = True
  ShowHint = True
  OnTaskBar = False
  DesignSize = (
    1219
    689)
  PixelsPerInch = 96
  TextHeight = 13
  object MSMemo1: tMSMemo
    Left = 385
    Top = 6
    Width = 824
    Height = 675
    ScrollBars = ssBoth
    ScrollBarsAutoShowing = ssBoth
    Anchors = [akLeft, akTop, akRight, akBottom]
    TabOrder = 0
  end
  object MSListBox1: tMSListBox
    Left = 6
    Top = 8
    Width = 371
    Height = 673
    ItemHeight = 13
    TabOrder = 1
    SelectedIndex = -1
  end
end
EndDialog>Dialog1

SetDialogProperty>Dialog1,MSListBox1,text,vList
AddDialogHandler>Dialog1,MSListBox1,OnClick,Process

Show>Dialog1,

SRT>Process
  GetDialogProperty>Dialog1,MSListBox1,SelectedItems,vSelected
  ReadFile>%script_dir%\%vSelected%,vData
  SetDialogProperty>Dialog1,MSMemo1,Text,vData
END>Process

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts