On 4/25/00 5:52 PM Tom Wiebe ([EMAIL PROTECTED]) wrote:
>What syntax do I pass Analog on the Macintosh to tell it to open a
>specific configuration file, ignoring the default config file, via
>applescript.
>
>What I have right now is :
>
>Tell application "Analog 4.1"
>do script -G pathto:myotherconfigfile.cfg
>end tell
>
>This doesn't work. I've tried with and without the space after the -G. It
>gets nowhere without the space. I've even tried switching the path
>delimiters to unix style /'s.
>
>This is starting to drive me batty!
Hum, you are missing the quotes, and you can't have a space (as you say).
Try this:
tell application "Analog4.1"
do script "-Gpathto:myotherconfigfile.cfg"
end tell
and if that doesn't work try:
tell application "Analog4.1"
do script "'-Gpathto:myotherconfigfile.cfg'"
end tell
The double quotes are required (see the example in the Read Me file), you
should have gotten a compile error without them but AppleScript can be
curious in how it interprets things. The single quotes tell Analog that
that is all one command line option, which may be important depending on
what special characters appear in the path and file name.
You should try turning debug on in manconf.cfg and then you are sure to
get some more useful information about which file it can't open and why.
If you are still having problems you should cut and paste the exact
AppleScript code and any possibly relevant lines from the dubug output
and send us those.
Jason
-----------------
[EMAIL PROTECTED]
-----------------
Dr. Seuss books . . . can be read and enjoyed on several levels. For
example, 'One Fish Two Fish, Red Fish Blue Fish' can be deconstructed
as a searing indictment of the narrow-minded binary counting system.
-- Peter van der Linden, Expert C Programming, Deep C Secrets
------------------------------------------------------------------------
This is the analog-help mailing list. To unsubscribe from this
mailing list, send mail to [EMAIL PROTECTED]
with "unsubscribe" in the main BODY OF THE MESSAGE.
List archived at http://www.mail-archive.com/[email protected]/
------------------------------------------------------------------------