On 1/10/99 11:04 PM ASAKA Shuji ([EMAIL PROTECTED]) wrote:

>At 1:45 PM 99.1.8 -0500, Jason Linhart wrote:
>>On 1/7/99 2:56 AM ASAKA Shuji ([EMAIL PROTECTED]) wrote:
>>
>>>I am trying to control Analog3 Macintosh version by using AppleScript, but
>>>I cannot send C command correctly.  For example, when the following script
>>>is executed:
>>>
>>>tell application "Analog 3.11"
>>>  do script "+C\"MONTHLY OFF\""
>>>end tell
>>>
>>>then Analog displays an error message:
>>>
>>>analog: Warning C: Unknown configuration command: ignoring it:
>>>  "MONTHLY
>>>  (For help on all errors and warnings, see docs/errors.html)
>>>
>>>I am afraid Analog mistakes the 'space' between MONTHLY and OFF as a
>>>command delimiter.  Could anybody help me?
>>
>>Something very much like that is supposed to work. You should try:
>>     do script '+C"monthly off"'
>>That would avoid the problems AppleScript appears to have with the \ 
>>quoted quotes. The error message is telling you, not that OFF got 
>>seperated but that MONTHLY got seperated from the +C.
>>
>
>Dear Jason;
>Thank you for your advice, but I am still in trouble.  The script
>     do script '+C"monthly off"'
>doesn't work because AppleScript complains as "unknown token" at the
>position of single quotation character in the script.
>I checked AppleEvents with AETracker and confirmed that AppleScript
>correctly sends command +C"monthly off" by
>  do script "+C\"monthly off\""

Oops, there must be some way to do it. How about:
     do script "\"+Cmontly off\""
That will prevent the +C from getting taken off of the montly. It has to 
get past the AppleScript compiler, the AppleScript message parser in 
Analog, the Analog command line option processing and then finialy the 
Analog configuration command parsing. Some combination of quotes must 
work but I keep confusing which level uses which quotes.

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 analog-help" in the main BODY OF THE MESSAGE.
--------------------------------------------------------------------

Reply via email to