Page 1 of 1
Using "Tool parameter macros" in a clip library
Posted: Tue Jun 22, 2010 9:34 am
by morling
Dear all,
Is it possible in a Clip Library to use the "Tool parameter macros"? I would like to create a clip that can insert the current path using $FileDir into my document. Eg. if the current path is "C:\tmp" the string "C:\tmp" would be inserted on the cursor position. However, I dont know how to make this work.
Best regards,
Peter
Posted: Tue Jun 22, 2010 11:15 pm
by ak47wong
I don't think you can use the Clip Library for this, but if you're running Vista or Windows 7, there is a roundabout way of doing it using the Tools menu. The idea is to pass the desired tool parameter macro to the DOS
echo command and then copy the result to the clipboard with the
clip utility.
Here's how to set it up for the $FileDir parameter:
- Click Configure and then Preferences.
- Click Tools.
- Click Add and then DOS Command.
- Enter echo and click OK.
- Click Apply.
- Click the plus sign next to Tools.
- Click echo.
- In Parameters, change the value to echo $FileDir | clip
- Clear all the check boxes and click OK.
To insert $FileDir into your current document:
- Click Tools, point to External Tools and then click echo, or press Ctrl+1.
- When the DOS window appears, press any key to close it.
- Press Ctrl+V to paste.
If you have Windows XP or earlier, you can still use this procedure if you can find a replacement for the clip utility (try
here or
here, for example).
Andrew
Posted: Wed Jun 23, 2010 1:56 pm
by morling

cool it worked. Thanks a lot!