Scripting Blog [archived]

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

How Can I Randomly Select an Email From an Outlook Mail Folder?

(image) Hey, Scripting Guy! How can I randomly select an email from an Outlook mail folder?-- TV (image) (image) (image) Hey, TV. You know, for a brief moment last night the Scripting Guy who writes this column thought he had achieved every father’s dream. The Scripting Dad and the Scripting Son went to the gym to play basketball, and ...

How Can I Change the Default File Save Format in Microsoft Word?

(image) Hey, Scripting Guy! I’m running Word 2007, but most of my colleagues are still running Word 2003. Is there a way I can use a script to change the default file type when saving documents in Word? I’d prefer that, by default, documents are saved in Word 2003 format rather than Word 2007 format.-- PJ (image) (image) (image) Hey, ...

How Can I Rename a File Every Day, Using the Current Date as Part of the File Name?

(image) Hey, Scripting Guy! I have a file that has the name BackupFile-06122007.txt, where the 06122007 represents yesterday’s date (June 12, 2007). Each morning I would like to run a script that changes the name of that file so that it uses today’s date: BackupFile-06132007.txt. How can I do that?-- GZ (image) (image) (image) Hey, GZ...

How Can I Put the File Name in the Footer of a Microsoft Word Document?

(image) Hey, Scripting Guy! I’ve seen Word documents where the file name appears in the footer. Except that this file name is dynamic: if the name of the document changes then the footer changes, too. How can I add that kind of a footer using a script?-- ZK (image) (image) (image) Hey, ZK. You know, it’s always tough to come back to ...