russp wrote: >I copied the USR routine out of the include for USR AppleScriptLoadAndRun and >into my program so I can play with it. I'm trying to substitue FN >OSADoScript (it should replace OSALoad, OSAExecute, OSADisplay) but I'm >having a lot of trouble figuring out what to put into it. I keep getting err >-1700 wich is "A value can't be coerced to the desired type." I think I'm >not getting the data from the resource correctly. > >No joy yet. :-( russp: In the USR AppleScriptLoadAndRun code, try changing this line...: h = fn GetResource( _kOSAScriptResourceType, resID ) ...to this: h = fn Get1IndResource( _kOSAScriptResourceType, resID ) ...or perhaps this: h = fn Get1Resource( _typeScript, resID ) Ken