Scripting Blog [archived]

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

How Can I Use a Script to Create a Sequential Series of User Accounts?

(image) Hey, Scripting Guy! For purposes of testing, I often need to create multiple user accounts like this: pgeorge01, pgeorge02, etc. How can I write a script that automatically creates the next account in the sequence; that is, pgeorge03?-- RG(image) (image) (image) Hey, RG. You know, after our last experiment went horribly, horribly ...

How Can I Tell Whether a .GIF File is a Regular Picture File or an Animated Picture File?

(image) Hey, Scripting Guy! I have a silly question for you: how can I tell whether a .GIF file is a regular old picture file or an animated picture file?-- WW(image) (image) (image) Hey, WW. To begin with, there’s no such thing as a silly question. We’ve always believed that - well, come to think of it, last summer a neighbor’s ...

How Can I Convert a Global Security Group to a Universal Security Group?

(image) Hey, Scripting Guy! How can I convert a global security group to a universal security group?-- BB(image) (image) (image) Hey, BB. We have to tell you the truth, we were pretty excited when we first read your email. Convert a global security group to a universal security group? That sounded like a mad scientist sort of thing, and we...

How Can I Rename Files Using File Names I’ve Written to a Text File?

(image) Hey, Scripting Guy! I have a bunch of files with names like 001.jpg and 002.jpg. I also have a text file that includes the names I would like each of these files to have; for example, 001.jpg should be named Picture_of_Family_Members.jpg. How can I write a script that reads information from the text file and then renames each picture...

How Can I Add Centered Page Numbers to the Footer of a Word Document?

(image) Hey, Scripting Guy! I need to put the page number (centered) in the footer of a Word document. Do you have any suggestions on how I can do that?-- AW(image) (image) (image) Hey, AW. To tell you the truth, the Scripting Guy who writes this column no longer makes suggestions. That’s because of an incident that occurred a few years ...