Shortcuts in Script Editor with engine 3.5

Tariel Gogoberidze tariel at mac.com
Fri Apr 3 16:01:19 CDT 2009


On Apr 3, 2009, at 1:00 PM, J. Landman Gay wrote:

>
> Thanks for the report, Tariel. The rev scripts are inserted as a
> backscript if you are installing in the MC IDE. I'm not sure why your
> copy couldn't find them. MC Setup checks the revAppVersion() to see if
> it is > 0, and if not, it inserts the rev backscript.
>
> What do you get if you put this into the message box:
>
>    put revAppVersion()
>
> In MC, that should return zero.
>
> I just did a test install of the 3.5rc1 engine using the MC IDE and  
> did
> not get the error. Did you customize the MC IDE somehow to change
> revAppVersion()?
>
> -- 
> Jacqueline Landman Gay         |     jacque at hyperactivesw.com
> HyperActive Software           |     http://www.hyperactivesw.com


Hi Jacque,

I have revAppVersion() = 0

What is happening is that in handler "buildMC" you are calling  
"displayOSXfolder" (which in turn calls "revPathtoApplescript 
(pFolderPath))" twice


first

----
  if the platform = "MacOS" then displayOSXfolder tDestPath,"close"
-----

and second time just before the handler "BuildMC" handler  ends with

-----
if the platform = "MacOS" then displayOSXfolder tDestPath,"open"
-------

and before you calling it second time, you have

-----
   remove script of btn "revScripts" from back -- in case
-----

So, you have

----

  remove script of btn "revScripts" from back -- in case
   if sLibURLInserted = true then stop using stack "libURL"
   if the platform = "MacOS" then displayOSXfolder tDestPath,"open"

-------

and because script of btn "revScripts" is removed from back

calling "displayOSXfolder tDestPath,"open"" which in turn calls "put  
revPathtoApplescript(pFolderPath) into tFolder" fails


best regards
Tariel








More information about the metacard mailing list