textbox and user interaction


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting textbox and user interaction
# 1  
Old 10-22-2008
textbox and user interaction

I'm wanting to get user interaction...textbox or checkboxes would be great. I want to allow someone to enter data into textbox. (this is the time I want to grab a photo from) Then I want to be able to check the different sizes I want for the image. Say 4 options.

Is this possible using the default Terminal on a Mac? I found this...it is buttons but the combination of textbox and checkboxes would be great.

Code:
#!/bin/bash
x=`/usr/bin/osascript <<EOT
tell application "Finder"
	activate
	set myReply to button returned of (display dialog "Here is a dialog box" default button 2 buttons {"button one", "button two", "OK"})
end tell
EOT`
echo 'Button is: '$x
if [[ $x = "OK" ]]; then 
echo 'Shell script continues...'
# Your
# Code
# Here
fi
echo 'Script ends.'

Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Programming

Running plink with user input interaction from vb.net

Hi there, I am trying to run a .sh file with plink from vb.net. I am now able to run the .sh on vb.net but i have a problem because the .sh script require user input: The .sh is prompting a few question and require user to input y/n to proceed. I am trying... (3 Replies)
Discussion started by: yun
3 Replies

2. Shell Programming and Scripting

User interaction that passes the answer to a variable

Please tell me how to write a bash script that asks the user to enter a word and that passes the entered word to a variable. echo "Type a word and press the Enter key:" myVar=`cat` echo "You entered $myVar" The above code is very awkward, because it requires the user to enter... (2 Replies)
Discussion started by: LessNux
2 Replies

3. Ubuntu

Listening for textbox clicks

Hi everyone. Apologies if I am posting in the wrong area. I would like to find out a bit about how ubuntu/linux handles text boxes. In particular I would like to develop an application that launches another application (on screen keyboard) when any text box is clicked. The goal is to get... (4 Replies)
Discussion started by: Huss
4 Replies

4. Shell Programming and Scripting

Here document supports user interaction?

Hi, I am trying to ssh into a remote machine and then enter a vserver on the remote machine. I am using here document to carry out these commands on the remote machine. My here document looks like this ssh username@remotemachine << HERE sudo vserver vservername enter HERE however the sudo... (0 Replies)
Discussion started by: mnanavati
0 Replies

5. Solaris

Zlogin -C with out user Interaction how to proceed?

Hi Guys, I have one requirement like if we run install.sh file it should have to create a zone and install oracle in that zone with out any user interaction. So the complete code should be automated. Almost 90% of the code I completed but i am having some doubts 1) After the zone creation... (1 Reply)
Discussion started by: vijaysachin
1 Replies

6. Programming

Needed help in a ruby script with user interaction involved!

Hi all, I am struck at this point and needed some help in ruby I wanted to write a script that accepts the no of VNICs the user wants to create and then ask for the name of each Vnic he wants then use these names to create the corresponding Vnics Eg: suppose that there are 2 Vnics to be... (0 Replies)
Discussion started by: wrapster
0 Replies

7. UNIX for Dummies Questions & Answers

booting up but the system was waiting for user interaction at console

Hi all, My ssytem is mounted on a rack and not connected with any console. When I rebooted it remotely, it didn't go thru the bootup process. when I connect my laptop to the system locally and found that it was waiting for user interaction. Do you know how to disable it, so that it will boot... (1 Reply)
Discussion started by: stancwong
1 Replies

8. Shell Programming and Scripting

Can i enter password with out user interaction

Can any body help me to write a scripting program for entering a password at run time with out user interaction. (1 Reply)
Discussion started by: kumar_d
1 Replies

9. UNIX for Dummies Questions & Answers

Want to create new users without using "useradd" command and user Interaction.

Don't want to use useradd command to create a new user I am doing manual addition of accounts. Actually I am writing a script and I am working on RedHat7.1 system. What I am trying to do is run the script and pass all the values of the username password and group as command line parameters. Now... (2 Replies)
Discussion started by: syedifti
2 Replies
Login or Register to Ask a Question
DtHelpReturnSelectedWidgetId(library call)								DtHelpReturnSelectedWidgetId(library call)

NAME
DtHelpReturnSelectedWidgetId -- select a widget or gadget SYNOPSIS
#include <Dt/Help.h> int DtHelpReturnSelectedWidgetId( Widget parent, String cursor, Widget *widget); DESCRIPTION
The DtHelpReturnSelectedWidgetId function provides an interface for users to select a component within an application. This function grabs the pointer and returns the widget within which a button press occurs. Pressing the escape key (ESC) aborts this func- tion. The parent argument specifies the widget ID to use as the basis of the interaction, usually a top level shell. The cursor argument specifies the cursor to be used for the pointer during the interaction. If a NULL value is used, DtHelpReturnSelected- WidgetId uses a default cursor value. The widget argument is the return value (for example, the selected widget). A NULL value is returned on error. The DtHelpReturnSelectedWidgetId function allows applications to get the widget ID for any widget in their user interface that the user has selected via the pointer. The application can then directly display a help topic based on the selected widget, or dynamically construct some help information based on the current context of the selected item. At any point while the question mark cursor is displayed, the user can select the escape key to abort the function call, and a NULL value is returned. If the user selects any item outside the current applications windows, an error status is returned along with a NULL value for the widget argument. Refer to XmTrackingLocate(3) for a sim- ilar function. RETURN VALUE
Upon successful completion, the DtHelpReturnSelectedWidgetId function returns one of the following status values: DtHELP_SELECT_ERROR An error occurred while attempting to process the function. DtHELP_SELECT_INVALID The user selected an invalid component that is not contained in the current widget hierarchy. DtHELP_SELECT_ABORT The user aborted the function (for example, pressed the escape key), and a NULL widget value is passed back. DtHELP_SELECT_VALID The user selected a valid component within the application, and the widget argument is the ID of the selected component. SEE ALSO
Dt/Help.h - DtHelp(5), DtCreateHelpQuickDialog(3), DtCreateHelpDialog(3); XmTrackingLocate(3), DtHelpReturnSelectedWidgetId(library call)