It would appear that on Sep 26, P Purkayastha did say:

> On Saturday 26 September 2009 04:47:08 Joe(theWordy)Philbrook wrote:
> > But actually I generally find keyboard methods easier than mouse based
> > ones, So I'm more likely to use emprint directly than to wrestle the
> > mousepointer over to the camera gadget... If I find the time I might
> >  even write a bash script wrapper for it that specifies an output file.
> >  That is if I can dig up my old notes on using some kind of loop to
> >  increment sequencenum until the test: [ -f
> >  ${basefilename}${sequencenum}.png ] fails. (Hmmnn for that matter if I
> >  don't want to put the actual emprint command in an "else" list, is [ !
> >  -f ${basefilename}${sequencenum}.png ] the correct syntax ???) Well
> >  anyway, If/when I get such a script working I might even assign it a
> >  key binding...
> 
> Here is part of my bash script which takes care of taking screenshots. It 
> uses imlib2_grab. The "displaymessage" is just a wrapper and it uses 
> whichever one of xmessage, gxmessage, Xdialog or kdialog it detects on the 
> system. You can insert your own there :P

First things first... 

Thanks once again "P Purkayastha" ( which sounds too formal, but ":P" just
don't feel right... Would it be ok if I just thought of you as "ppurka" ??)
 
This is NOT the first time you have selflessly offered your scripting
skills for my benefit. I can't thank you enough for pointing me at your
e17_setup.sh script (You should probably consider inserting some copyright
stuff in scripts of that quality) Speaking of which, I have pointed others
at your download link, I hope you don't mind...

Now about the "part" of another of your scripts (below)... I must confess
that my scripting skills are not in your league. And I'm trying to
understand a few new concepts...

> I usually bind this to my PrintScreen button for a default 7sec delay and 
> I bind it to my Pause button (calling it with --now switch) for instant  
> window grabs. You can replace imlib2_grab with emprint or whatever other 
> command you want (I had import earlier, but imlib2_grab is faster :P). 
> 

At this point I'd probably use emprint...

> -----------------------------------------------------------------------------------------
> # Query the image quality
> QUALITY="$(displaymessage --radiolist "What is the quality of screenshot 
> you desire?" "png" "Lossless Quality (png)" on "jpeg" "Lossy Quality 
> (jpeg)" off --title "Select Quality of screenshot" --center)"
> [[ -z "$QUALITY" ]] && exit

I've never seen this:
"$(displaymessage --radiolist "text" "value1" "text (value1)" on "value2"
"text (value2)" off --title "text" --center)"

construct before?? No clue how it works. Though I can deduce it's purpose.

So since a nice C programmer once gifted me with a getchr.c utility And I'm
more comfortable with using echo, case and  getchr, I'd probably have
accomplished something like the above with:

# begin code
# Query the image quality
echo "What is the quality of screenshot you desire?

Type a 'P' for Lossless Quality (png)
 - or -
Type a 'J' for Lossy Quality (jpeg)

        Select Quality of screenshot
"
QUALITY="$(getchr [jJpP])"
case $QUALITY in
        j|J)QUALITY="jpeg";;
        p|P)QUALITY="png";;
        *)echo "input error";
         exit;;
esac
# end code

Did I correctly deduce what your "displaymessage" construct does???

Actually I've cobbled together the script I'm going to be using for this.
I decided to use a true cli based model rather than using interactive 
choices. I'd be curious to know what you think of it. It can currently
be found at:

https://home.comcast.net/~jtwdyp/fileShuttle/jshot

And do have a nice day.

-- 
|   ~^~   ~^~
|   <*>   <*>      Joe (theWordy) Philbrook
|       ^                 J(tWdy)P
|     \___/          <<jtw...@ttlc.net>>


------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users

Reply via email to