SaveAs with prompting the user for the file name

Help with writing and playing macros

SaveAs with prompting the user for the file name

Postby strykerhorse » Tue Dec 07, 2004 4:05 pm

Hello all. How do you prompt for input in UE (i.e. prompt to save a file with a user-entered filename?) Here is an idea i have that needs a prompt at the end:

1) FindInFiles (look in files for the string "<h1>")
2) open meta_temp.asp (as many copies as there are entries of <h1>)
3) StartSelect
4) Copy (the line that has <h1> in it)
5) Paste (above <h1> tag into meta_content and meta_keywords)
6) Save As: -> Prompt for save name, save dir.
User avatar
strykerhorse
Newbie
 
Posts: 3
Joined: Thu Dec 02, 2004 12:00 am

Re: SaveAs with prompting the user for the file name

Postby Mofi » Thu Dec 09, 2004 9:16 am

That's easy. Simply write SaveAs "" at the end of the macro and UltraEdit will open the normal file saving dialog.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4054
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: SaveAs with prompting the user for the file name

Postby strykerhorse » Thu Dec 09, 2004 3:15 pm

....I hate it when easy things are right under my nose :cry:
User avatar
strykerhorse
Newbie
 
Posts: 3
Joined: Thu Dec 02, 2004 12:00 am


Return to Macros