On Mar 22, 2007, at 1:01 PM, Andrew Brosnan wrote:
I'd like to run a daily backup script on my laptop, but I'd like it to
ask permission first. I'm wondering what is the best way to do this.
First off - can you always depend on a user being logged in? If so,
the simplest ideas tend to be the best. For a full-blown GUI app I'd
use CamelBones, but for a simple OK/Cancel dialog the old MacPerl
module is still the easiest:
#!/usr/bin/perl
use MacPerl;
my $verify = MacPerl::Answer('Do you want to run backups?', 'OK',
'Cancel');
print $verify, "\n";
sherm--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net