logo       

Re: Interacting with other applications: msg#00022

Subject: Re: Interacting with other applications
On Thu, Mar 22, 2007 at 05:55:18PM -0400, Sherm Pendley wrote:
> 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";

Consider what happens if I'm busily typing away, and the dialogue box
pops up and grabs focus, and then whatever its default is gets selected
because i hit space or enter.  So not only have you annoyed me by
popping something up and then removing it before I get a chance to read
it, you'll now take an action without the user knowing about it but on
the assumption that he does, *and* you've eaten an arbitrary amount of
what I typed, which I'll have to type again.

Needless to say, this is a Very Bad Idea.

-- 
David Cantrell | Nth greatest programmer in the world

    It's my experience that neither users nor customers can articulate
    what it is they want, nor can they evaluate it when they see it
        -- Alan Cooper



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
science.linguis...    culture.sf.lite...    video.mplayer.c...    yellowdog.gener...    ietf.rfc822/199...    emacs.help/2002...    redhat.release....    kernel.speakup/...    java.openejb.de...    debian.devel.gt...    xfree86.newbie/...    bug-tracking.ma...    pam/2003-05/msg...    games.devel.ope...    user-groups.lin...    music.pancham/2...    network.mq.deve...    web.html.genera...    arklinux.bugs/2...    linux.ecasound/...    qnx.openqnx.dev...    org.user-groups...    file-systems.sf...    trustix.contrib...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe