Is there something like a inputbox in applescript ?
Can someone give a example?
Nothing by that name. What is it you want to do? There are lots of ways to get external info into an AppleScript
Is there something like a inputbox in applescript ?
Can someone give a example?
Nothing by that name. What is it you want to do? There are lots of ways to get external info into an AppleScript
display dialog "What is six by nine?" default answer "" buttons {"OK", "Cancel"} default button "OK"
Is this what you mean?
Hope this helps,
Brad Bumgarner, CTA
This is what I need. Just one question !
Can i put the answers in a variable for later use ?
Opps! I forgot something. Sorry.
set theResult to display dialog "What is six by nine?" default answer "" buttons {"OK", "Cancel"} default button "OK"
set theText to the text returned of theResult
set theButton to the button returned of theResult
the variable “theResult” holds a record that has the text and button input from the dialog.
You should do the “usual” error checking to make sure that something was actually input and handle accordingly.
Brad Bumgarner, CTA