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\""

Shuji

--------------------------------------------------------------------
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