Jump to content
Macro Express Forums

robert-hk

Members
  • Posts

    8
  • Joined

  • Last visited

Everything posted by robert-hk

  1. Thanks for helping me discover "Variable Set String from Filename" and "Variable Set From File (Options) Get File Path Info". Sometimes the basics get overlooked and that's why checking with this forum is such a pleasure.
  2. There might be a partial answer for you here: http://www.logicalexpressions.com/vbtip03.htm If you look at the registry entry for regsvr32.exe .... "%1", this shows where the highlighted filename would be passed to a program shown as an option resulting from a right click. I'm guessing that "meproc.exe" could similarly be passed the filename for further processing by ME. I don't yet know which command line options are appropriate. If you try this route please let me know.
  3. While learning about this area I came upon this link: http://www.qa.com/training/portfolio/micro...px?id=Monad-MSH It has various observations about styles of scripting and Microsoft's plan for Monad. Might be of interest to some.
  4. Joe, Thanks for the advice. I'm still finding my way in the world of scripting and intending to use ME as a kind of "wrapper" for the various useful scripts and utilities I find. For example, I sometimes need to convert some JPEGs into PDFs, add a document control sheet and have a single PDF as output with the control sheet (originally Excel) as the first sheet. To do this, I print the Excel to a pdf using a pdf printer. I use ImageMagick via the command prompt to convert and combine the JPEGs with tight control over compression, resolution and so on. I then use the pdftk toolkit via the command line to combine the various pdfs as I want them. (see http://www.imagemagick.org/script/index.php and http://www.accesspdf.com/pdftk/ ) ME seems the best way to tie all this together with consistent naming conventions and directory structures. The HTA approach you cited looks like a good candidate for "wrapping" imagemagick since I never use any of these command line tools often enough to remember usage parameters. Time for me to study your examples further. Robert
  5. Joe Thanks for that example. I noticed when running it that I got a warning from Norton as shown in the attached image. With ME I can check for this and allow processing to proceed but is there a simpler way, apart from turning off Norton? To handle exceptions and observe progress of the script, it seems that wscript.echo would provide a series of windows which could be checked for by ME. Do you see any problems with this approach? Thanks
  6. Are there any recommendations for using ME to control several VBscript files? Specifically, with Windows Script Host and ME integration, are there good reasons for choosing cscript or wscript? All ideas very welcome. Bob
  7. Many thanks. I had just assumed when I saw "browse", that string variable substitution was not available in that command. My mistake... I'll change all the macros to incorporate the approach you suggest. Probably a case should have studied the manual first. Thanks Robert
  8. I've been trying to develop some macros for use in two different environments where the drive letters and folder structure varies. It seems that many of the commands I need require locations to be hardcoded into the command such as for "Repeat with Folder" or launch program. Ideally I would set the top level path in a string variable, create other string variables by relative addressing and then only use those string variables in the remainder of the programme. 1. Is there a list of commands that require hard-coded or literal constants? 2. What is the best way to circumvent this problem. Thanks
×
×
  • Create New...