Confounding Issues with AppleScript
Confounding Issues with AppleScript
- Subject: Confounding Issues with AppleScript
- From: Paul Chadha <email@hidden>
- Date: Fri, 06 Apr 2001 10:34:53 +0900
Hello Everyone,
I'm fairly new to this list and I would appreciate some kind of feedback for
the question I am posting.
I'm writing some code that interfaces with some scripts that have been
written. The UI code is written in C/C++ and controls the Apple Scripts
(the UI is very simple just a dialog/window with a few buttons that
fundamentally invoke the scripts).
#1.
The scripts target an application that can reside anywhere on disk
(remote/local). How can I dynamically supply the location of the target
application so the script executes without the famous dialog "Please locate
the Software xxxx" appearing?
Do I have to dynamically determine this during run time (i.e. walk through
the volumes and store the location) or do COMPILED scripts automatically
store the Application type and creator codes?
An example script line is below -
open application "MyCoolApp"
#2.
Is it possible to maintain state information across the invocation of
scripts? For example, I invoke script "A" and I expect some kind of return
type. Then I invoke Script "B" and pass it the return type from "A" etc...
#3.
Can the invoked AppleScripts return appropriate errors to the C/C++ caller
application.
Regards
Paul Chadha
--
RecoSoft Corporation
Osaka, Japan
English URL:www.recosoft.com
Japanese URL: www.recosoft.com/japan
Phone: +81-6-6443-0015
Fax:+81-6-6443-1458
email: email@hidden