Re: Sunday, Bloody Sunday
Re: Sunday, Bloody Sunday
- Subject: Re: Sunday, Bloody Sunday
- From: Richard 23 <email@hidden>
- Date: Sun, 7 Jan 2001 12:49:16 -0800
This is an update, with the result of Convert Script 1.0d2
processing the mangled script from the previous message.
Actually it was run twice because the first run converted
it for use in a script editor, the second run converted
that result for email.
First the original again:
set theStr to +class ktxt; of ((the clipboard) as record)
set {theStr, theStyl} to {+class ktxt;, +class ksty;, ,
+class kudd;} of ((the clipboard) as record)
if 10 > 2 or 5 20 or 49 "balloon" then beep
This result is with Warning_Flag set to true:
-- ---------------------------------------------------------
-- Preprocessed by Convert Script 1.0d2
-- ---------------------------------------------------------
(* CS: The next line contains << which may really be + *)
(* CS: The next line contains >> which may really be ; *)
set theStr to <<class ktxt>> of ((the clipboard) as record)
(* CS: The next line contains << which may really be + *)
(* CS: The next line contains >> which may really be ; *)
(* CS: The next line contains ==> which may really be , *)
set {theStr, theStyl} to {<<class ktxt>>, <<class ksty>>, ==>
(* CS: The next line contains << which may really be + *)
(* CS: The next line contains >> which may really be ; *)
<<class kudd>>} of ((the clipboard) as record)
(* CS: The next line contains /= which may really be ASCII Character 2 *)
(* CS: The next line contains >= which may really be ASCII Character 4 *)
(* CS: The next line contains > which may really be <= *)
(* CS: Since I'm not psychic, it's your call. No change made. *)
if 10 > 2 or 5 >= 20 or 49 /= "balloon" then beep
-- ---------------------------------------------------------
Note: to turn warning flags off via the clipboard, I copied
the following and ran the script from OSA Menu while still
in my email client.
settings:
Warning_Flag: false
it's response is to copy the current settings to the clipboard
which you can paste to verify the setting was changed. Then
you can delete it and resume where you left off. To get the
current settings without making any changes copy "settings"
to the clipboard and run the script....
Either way, the response looks like this:
Auto_Repair: true
Warning_Flag: false
Use_English: null
This is the result with warning flags off:
-- ---------------------------------------------------------
-- Preprocessed by Convert Script 1.0d2
-- ---------------------------------------------------------
set theStr to <<class ktxt>> of ((the clipboard) as record)
set {theStr, theStyl} to {<<class ktxt>>, <<class ksty>>, ==>
<<class kudd>>} of ((the clipboard) as record)
if 10 > 2 or 5 >= 20 or 49 /= "balloon" then beep
-- ---------------------------------------------------------
It compiled successfully with no modifications.
Note: the header and rules (for lack of a better word) only
appear in the email version and are removed when converting
to script editor-compatible version. The header tells the
script to skip the troublesome but mostly effective salvage
operations.
The only thing it looks like I'm going to need to fix is
the warning message which falls after the continuation character
(==> in the preprocessed result at the top of this message)
which would cause the script with the warning flags not to compile.
I thought I had that covered but apparently it was missed,
probably because I need to convert the continuation character
first so that when the error flag is inserted, the continuation
character will be present and accounted for. When this is fixed
the two extra warnings will also disappear.
R23
http://homepage.mac.com/richard23/