Hm... I don't get it. There's no line ApplescriptFunction which contains a return command. Isn't that necessary to obtain a return value from a function?
> >get AppleScriptFunction("nameOfFunction", "path:to:file", 1, 2, "three", >"four") > >Mind that on Mac OS classic you need to use colons in the path (2nd param), >while on Mac OS X you must use slashes. > >Then in the stack-script you can put: > >function AppleScriptFunction aFun, aFile > put "set theScript to load script (alias ""e&aFile"e&")"&return& \ > "tell theScript to "&aFun&"(" into ASfunc > if paramcount() > 2 then > repeat with e = 3 to paramcount() > put param(e) into f > if param(e) is a number then > put f & "," after ASfunc > else > put quote & f & quote & "," after ASfunc > end if > end repeat > else > put " " after ASfunc > end if > put ")" into last char of ASfunc > do ASfunc as applescript >end AppleScriptFunction > >Now you can call any function with any number of parameters. The value that >is returned by the AppleScript-function is returned by "AppleScriptFunction" >as well. > >> The overall goal here is to use Revolution to provide a window and a >> progress bar to a running Applescript. I'm also trying to figure out >> how to launch an app (the Apple System Profiler) in a hidden way so >> the user doesn't have to see it. > >AppleScript only returns something to RunRev when a function is completely >finished. So you can let the progress bar shift when a function is >completed, but probably not when only one long AppleScript function is >called. > >I don't know if you can hide an app (probably you can, but I don't know >how). But as long as you don't use 'activate', it stays in the background. > >Terry > > >_______________________________________________ >use-revolution mailing list >[EMAIL PROTECTED] >http://lists.runrev.com/mailman/listinfo/use-revolution -- _______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution