Nautilus Scripts

Rui Miguel Seabra rms at 1407.org
Mon Dec 15 09:35:27 UTC 2003


btw an improved version?



On Mon, 2003-12-15 at 03:16, Ow Mun Heng wrote:
> > -----Original Message-----
> > From: Vikram Goyal [mailto:viki at bol.net.in]
> > Sent: Friday, December 12, 2003 8:29 PM
> > To: fedora-list at redhat.com
> > Subject: Re: Nautilus Scripts
> > 
> > The script seems interesting. Can you post it to the list inline so
> > that whoever finds it fit can have it.
> 
> 
> This is from another site I found on the net
> 
> #!/bin/sh
> # 
> # Add a new text file in the current directory.
> # Script prompts you for the name and if it already exists,
> # then the [ number] is incremented until unique.
> #
> # Distributed under the terms of GNU GPL version 2 or later
> #
> # Copyright (C) 2001 Johnathan Bailes (bailesj at mindspring.com)
> # based on work by Jeffrey Philips
> 
> New_Document="`gdialog --title "Name of New Text file?" --inputbox "Name
> the New Text file?" 200 100 2>&1`"
> echo "$New_Document"
> 
> COUNT=1
> 
> if ! [ -a "./$New_Document.txt" ] ; then
>   touch "./$New_Document.txt"
> else
>   while ! [ "$retry" ] ; do
>    let $((COUNT++))
>     if ! [ -a "./$New_Document($COUNT).txt" ] ; then
>         touch "./$New_Document($COUNT).txt"
>         retry=1
>     fi
>   done
> fi
> 
> 
> --
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
-- 
+ No matter how much you do, you never do enough -- unknown
+ Whatever you do will be insignificant,
| but it is very important that you do it -- Gandhi
+ So let's do it...?

Please AVOID sending me WORD, EXCEL or POWERPOINT attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: z.sh
Type: text/x-sh
Size: 989 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20031215/18a33666/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20031215/18a33666/attachment-0001.sig>


More information about the fedora-list mailing list