• 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
running a script from a script ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

running a script from a script ?


  • Subject: running a script from a script ?
  • From: Bill Christens-Barry <email@hidden>
  • Date: Mon, 30 Jul 2001 16:50:38 -0400

I do a lot of work in Object-Image, which is the best quantitative image processing tool available for the Macintosh (and it is freely available at http://simon.bio.uva.nl/object-image.html ). It has a more object-oriented character than NIH Image, the very good and widely used image processor on which it is based (available at http://rsb.info.nih.gov/nih-image/). Having gone this far, I should mention that one day ImageJ, which is a cross platform java successor to NIH Image (at http://rsb.info.nih.gov/ij/ ), may supplant both of these, but it is still the morning of that day.

Currently I am using Object-Image's macro language to run an embedded AppleScript. This works by way of sandwiching the AppleScript script within a pair of statements ('BeginScript' and 'EndScript', respectively) that are meaningful to Object-Image's macro language. This passes the sandwiched text to the outside for execution. Typical text in an embedded script might be along these lines:

BeginScript;
tell application "myApp"
do some of your scriptable tricks
end tell
EndScript;

This gets annoying for long scripts, because I end up debugging the scripts in Object-Image's environment. I'd rather just invoke a minimal script from within the macro language, and have this script do the more involved stuff, something like:

BeginScript;
tell application "Finder"
run script "otherscript" -- to do myApp's scriptable tricks
end tell
EndScript;


What I've described is just about all of the AppleScript support within Object-Image. How do I do this indirection in AppleScript? I want this to happen in the background, without user interaction with dialogs etc. The naive 'run script "otherscript"' hasn't worked for me, and a look at the Finder's dictionary didn't suggest anything to me.

Thanks.

Bill Christens-Barry
-----------------------
Bill Christens-Barry, PhD
Equipoise Imaging, LLC
email@hidden


  • Follow-Ups:
    • Re: running a script from a script ?
      • From: Timothy Bates <email@hidden>
  • Prev by Date: Re: Script crashes Script Editor; Scripter launch locks up 9.1 Mac solidly
  • Next by Date: Re: creator codes
  • Previous by thread: Re: Script crashes Script Editor; Scripter launch locks up 9.1 Mac solidly
  • Next by thread: Re: running a script from a script ?
  • Index(es):
    • Date
    • Thread