On 09 oct. 2009, at 2:43, Julian Vrieslander wrote:
Is there a similar syntax for quitting an open application?
Yep:
#!/bin/bash
killall "Microsoft Database Daemon"
If you want a complete script for quitting applications before backing
up (lets say, through SuperDuper!), it might look somewhat like the
script I modified for Diane:
#!/bin/bash
# This script is used with SuperDuper! to kill "Microsoft Entourage",
"Microsoft Word", "Microsoft Excel", "Microsoft PowerPoint",
"Microsoft Database Daemon" "Microsoft Office Reminders", "My Day",
BareBones Yojimbo as well as “Aperture” prior to creating a backup of
the "Office 2008 Identities" folder.
# Diane Ross, April 18, 2009
# Added line to quit Yojimbo Sept 17, 2009
# Corentin replaced Applescript calls by shell commands on Sept 20, 2009
echo "Quitting Entourage"
killall "Microsoft Entourage"
echo "Quitting the Database Daemon"
killall "Microsoft Database Daemon"
echo "Quitting the Office reminders"
killall "Microsoft Office Reminders"
echo "Quitting My Day"
killall "My Day"
echo "Quitting Word"
killall "Microsoft Word"
echo "Quitting Excel"
killall "Microsoft Excel"
echo "Quitting PowerPoint"
killall "Microsoft PowerPoint"
echo "Quitting Messenger"
killall "Microsoft Messenger"
echo "Quitting Yojimbo"
killall "Yojimbo"
echo “Done”
Corentin
--
YouTalk mailing list
List address: [email protected]
List information: http://entourage.mvps.org/support_options/list.html
List moderator: [email protected], [email protected]
To unsubscribe: mailto:[email protected]?subject=unsubscribe