Scripting Blog [archived]

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

How Can I Automatically Open New Files Added to a Folder?

(image) Hey, Scripting Guy! How can I monitor a folder for new files and then automatically open each new file that gets added to that folder?-- CA(image) (image) (image) Hey, CA. You know, today is Valentine’s Day in the US, which means that right now most American men are saying to themselves, “What? Today is Valentine’s Day? Uh-oh...

How Can I Change the Last Modified Timestamp for All the Files in a Folder?

(image) Hey, Scripting Guy! How can I change the last modified timestamp for all the files in a folder? I’d like the first file to have a specified timestamp, then each subsequent file to have a timestamp one minute later than the previous file.-- AF(image) (image) (image) Hey, AF; glad to see that you’re taking a break from the 2007 ...

Hey, Scripting Guy! How Can I Get a List of All the Subfolders in a Folder and Then Put That List Into an Array?

(image) Hey, Scripting Guy! How can I get a list of all the subfolders in a folder and then put that list into an array?-- PW (image) (image) (image) Hey, PW. We know how anxious you’ve all been, waiting to hear whether the Scripting Guys were successfully moved from Building 43 to Building 42 (yes, directly across from their old ...

Hey, Scripting Guy! How Can I Create A New Folder Using a Name Based on the Current Date?

(image) Hey, Scripting Guy! How can I create a new folder each night, using a folder name based on the current date?-- DM (image) (image) (image) Hey, DM. In answer to your unasked question, no, the Scripting Guy who writes this column did not get selected to sit on a jury; as a result, he’s back to work, and back to writing this ...

How Can I Rename a Folder?

(image) Hey, Scripting Guy! How can I add a suffix to a folder name? For example, I’d like to rename the folder C:\January to C:\January_2006.-- NB(image) (image) (image) Hey, NB. You know, back in July the Scripting Guy who writes this column happened to wander through the living room while the Scripting Son was watching the world-famous ...