• 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
Confounding Issues with AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Confounding Issues with AppleScript
      • From: Emmanuel <email@hidden>
  • Prev by Date: Re: Long text file manipulation...
  • Next by Date: Re: scripting QuickTime
  • Previous by thread: Re: Archive on Goggle [extra!: RA-Status with DHCP anyone?]
  • Next by thread: Re: Confounding Issues with AppleScript
  • Index(es):
    • Date
    • Thread