Shirt Pocket Discussions

Shirt Pocket Discussions (https://www.shirt-pocket.com/forums/index.php)
-   General (https://www.shirt-pocket.com/forums/forumdisplay.php?f=6)
-   -   Run Shell Scripts (https://www.shirt-pocket.com/forums/showthread.php?t=1090)

cucciasv 02-26-2006 08:53 PM

Run Shell Scripts
 
Hi... I need some sort of an audible alert when SuperDuper is finished, and I would like to use the system voice feature. I am not a programmer, but I know there is the UNIX terminal SAY command (eg; say "SuperDuper is finished") .... How can I program this to run in SuperDuper? I see in the Advanced Options panels a checkbox and field to specify a script file to run ("Run shell script after copy completes"), but I am not sure what to do here.

Any help would be appreciated.

Thanks in advance.
Sandro

dnanian 02-26-2006 09:31 PM

Well, Sandro, you'd create a plan text file with the text:

Code:

#!/bin/sh
say "SuperDuper is finished"

Save that as a file named whatever you want, in your Home folder or some other known location, with no extension. Then, open Terminal. Type:

Code:

chmod +x
(there's a space after the x) and then drag the file you just saved from Finder into the Terminal window. That'll enter the path to the file. Press Return at the end.

Then, set the On completion shell script to this file.

That's all there is to it!


All times are GMT -4. The time now is 04:07 AM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.