• 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: any way to tell if a script has a 'return' statement?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: any way to tell if a script has a 'return' statement?


  • Subject: Re: any way to tell if a script has a 'return' statement?
  • From: email@hidden
  • Date: Thu, 25 Oct 2001 12:40:24 EDT

Don,

Why are you running scripts when you don't know their internal structure?
This sounds like a security risk.

That aside, I don't think there is a way to do what you want, unless you can
capture the script as text and parse the text to find a return statement.

Jeff Baumann
email@hidden
www.linkedresources.com


In a message dated 10/25/01 8:52:39 AM, Donald S. Hall wrote:

>Hi all,
>
>If you run a script with 'run script', the script can optionally return a
>value in the result variable with a return statement.
>
>Is there any way to determine if a script in fact has a return statement?
>
>I want to be able to save the result returned by a script to a file, but
>since the result will always have something in it (something I don't want to
>save if the script doesn't specifically return a value), how do I tell
>whether or not I should be saving the result variable? I won't know a priori
>if the script I am running has a return statement.
>
>Thanks for any suggestions,
>
>Don
>--
>Donald S. Hall, Ph.D.
>Apps & More Software Design, Inc.
>http://www.theboss.net/appsmore
>email@hidden


  • Follow-Ups:
    • Re: any way to tell if a script has a 'return' statement?
      • From: JollyRoger <email@hidden>
  • Prev by Date: Re: Passing a variable from a webpage to an AppleScript
  • Next by Date: Re: Passing a variable from a webpage to an AppleScript
  • Previous by thread: any way to tell if a script has a 'return' statement?
  • Next by thread: Re: any way to tell if a script has a 'return' statement?
  • Index(es):
    • Date
    • Thread