• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Dialog command
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Dialog command (From: seppe soleme <email@hidden>)

  • Prev by Date: Dialog command
  • Next by Date: RE: Short form
  • Previous by thread: Dialog command
  • Next by thread: Re: Dialog command
  • Index(es):
    • Date
    • Thread