Scripting Blog [archived]

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

How Can I Start a Process and Then Log the User Off When That Process Ends?

(image) Hey, Scripting Guy! How can I write a script that starts a process, waits until that process ends, and then logs the user off the computer?-- AG(image) (image) (image) Hey, AG. You know, the Scripting Guy who writes this column is never one to brag, mainly because he never has much of anything to brag about. In addition tot that, ...

How Can I Start a Process and Then Wait For the Process to End Before Terminating the Script?

(image) Hey, Scripting Guy! How can I start a process and then wait until that process quits before terminating the script?-- FG(image) (image) (image) Hey, FG. Before we answer your question, the Scripting Guy who writes this column has a confession to make: he’s the one who ruined Christmas for everyone. Not that he meant to, mind you, ...

How Can I Monitor for the Creation of Different Processes?

(image) Hey, Scripting Guy! How can I use one script to monitor for the creation of four or five different processes?-- BC(image) (image) (image) Hey, BC. You know, it’s too bad you didn’t ask how you could monitor four or five TV shows at the same time. Had you done that we would have had the perfect answer for you: get yourself a ...

How Can I Determine When a Removable Drive Gets Connected?

(image) Hey, Scripting Guy! How can I determine when a USB flash drive gets connected?-- PS(image) (image) (image) Hey, PS. OK, we admit it: the Scripting Guys are lazy. (Especially on a Friday, which is the day when we have to write our Monday column.) There might be a way to monitor specifically for the insertion of a USB flash drive; ...

How Can I Log the Start Time and the End Time of the Screensaver?

(image) Hey, Scripting Guy! How can I log the start time and the end time of the screensaver?-- JS(image) (image) (image) Hey, JS. You know, one of the Scripting Guys (hey, who said “It must be Greg”?) is old enough to remember the days when screensavers first came out. Back then a script like this would have been meaningless: after ...