Scripting Blog [archived]

Formerly known as the "Hey, Scripting Guy!" blog

Hey, Scripting Guy! How Can I Get a List of All the Styles in a Word Document?

(image) Hey, Scripting Guy! Is it possible to get a list of all the styles available in a Word document?-- RK(image) (image) (image) Hey, RK. Believe it or not, TechEd Orlando is over, at least for the Scripting Guys. Admittedly, it was a somewhat abbreviated trip: we flew in, presented a couple of instructor-led labs, and now we’re ...

Hey, Scripting Guy! How Can I Get a Script to Pick Up Where It Left Off After a Reboot?

(image) Hey, Scripting Guy! I would like to write a script, with a number of sequential actions, that can continue where it left off after a reboot. How can I do that?-- GS(image) (image) (image) Hey, GS. By the way, what are you doing at 10:00 AM Eastern Daylight Time today? Nothing? Great; then we’ll see you at the Orange County ...

Hey, Scripting Guy! How Can I Apply a Timeout to an InputBox?

(image) Hey, Scripting Guy! I know that, by using the WSH Popup method, you can time out a message box. Is it possible to do something similar with the InputBox function?-- JR(image) (image) (image) Hey, JR. Greetings from sunny Florida! Well, at least we assume it’s sunny Florida; it’s late Sunday night as the Scripting Guy who writes...

Hey, Scripting Guy! How Can I Add a Line to the Beginning of a Text File And Simultaneously Delete the Last Line of That File?

(image) Hey, Scripting Guy! I have a script that adds a line to a log file. Each time I add a new line to this file I would like to delete the last line in the file; that way I always have 20 lines in the file. Can you help me get this to work?-- HW(image) (image) (image) Hey, HW. Well, today is Friday, June 6th, which means that the ...

Hey, Scripting Guy! How Can I Save My Outlook Contacts as .MSG Files?

(image) Hey, Scripting Guy! I would like to export all my contacts as .MSG files. Is that possible?-- FG(image) (image) (image) Hey, FG. You know, the other day the Scripting Guy who writes this column was watching his … beloved … Seattle Mariners play the Angels. (The Scripting Guy who writes this column enjoys watching the Mariners, ...