• 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
Performing a Shell script, works but error message pops up.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Performing a Shell script, works but error message pops up.


  • Subject: Performing a Shell script, works but error message pops up.
  • From: Kevin Ballon <email@hidden>
  • Date: Sat, 1 Dec 2007 01:52:50 -0500

Ive setup a simple app in Xcode so that when u click a button, it says the text
from a text field. I do this with the following script.

on clicked theObject
set r1 to the contents of text field "input" of window "main"
do shell script (say (r1))
end clicked

however at the end of the script, an error message appears saying

AppleScript Error
Can’t make current application into type string. (-1700)

Does anyone know how to make this go away/not appear at all?
thanks.


 _______________________________________________
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

  • Follow-Ups:
    • Re: Performing a Shell script, works but error message pops up.
      • From: Michael Ghilissen <email@hidden>
  • Prev by Date: Re: how to refer to environment variable in a Terminal do script?
  • Next by Date: Re: Performing a Shell script, works but error message pops up.
  • Previous by thread: Re: how to refer to environment variable in a Terminal do script?
  • Next by thread: Re: Performing a Shell script, works but error message pops up.
  • Index(es):
    • Date
    • Thread