Re: Dialog command
Re: Dialog command
- Subject: Re: Dialog command
- From: Michelle Steiner <email@hidden>
- Date: Fri, 5 Sep 2008 11:08:07 -0700
On Sep 5, 2008, at 10:46 AM, seppe soleme wrote:
In order to solve the problem, i modified my Hypercard application.
Now, my Hypertalk script sends applescripts to the "Script Editor"
running in OSX.
Hypercard expects a textstring as the result of the execution.
Because the Dialog and Choose commands return a record i got the
error:
"Cant make data into the expected type".
Can you please help me how to obtain the text representation of a
record?
I already tried (without success) set x to the result as text.
I already tried (without success) set x to item 1 of the result.
set foo to (display dialog "prompt goes here" default answer "default
text")
set the_Text to text returned of foo
set the_Button to button returned of foo
-- Michelle
--
Please contribute to the Leukemia and Lymphoma Society, and help me
meet my fund raising goal for my marathon training.
<http://www.active.com/donate/tntdms/tntdmsMSteine>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden