How 2 save active file to a temp file then apply a tool..

Help with setting up and configuring custom user tools in UltraEdit (based on command line input)

How 2 save active file to a temp file then apply a tool..

Postby OnFootBuG » Thu Jan 10, 2008 1:07 pm

hi all,
I'm creating a tool in ue, which save active file to a temp file, then pass the temp file to another tool. what is troubling me is how to save current active file to a temp file...any help is appreciated!!
User avatar
OnFootBuG
Newbie
 
Posts: 2
Joined: Thu Jan 10, 2008 12:00 am

Re: How 2 save active file to a temp file then apply a tool.

Postby Mofi » Thu Jan 10, 2008 4:34 pm

You could use a macro which does first the save to a temp file and then runs the user tool you have configured. Something like:

Clipboard 9
ToggleBookmark
SelectAll
Copy
EndSelect
GotoBookMark -1
ToggleBookmark
NewFile
Paste
SaveAs "C:\Windows\Temp\Testfile.tmp"
CloseFile
ClearClipboard
Clipboard 0
RunTool "case-sensitive name of your user tool"
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4037
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: How 2 save active file to a temp file then apply a tool..

Postby OnFootBuG » Fri Jan 11, 2008 6:32 am

Mofi,
Thank you in advance!
User avatar
OnFootBuG
Newbie
 
Posts: 2
Joined: Thu Jan 10, 2008 12:00 am


Return to Custom User Tools/Tool Configuration