Hi
I have an application that I’m writing in AppleScript Studio, it works quite nicely. However I am cleaning it up and want to put some processing stuff in a different script, it all worked until I tried to get a result back from the script.
Is it possible for a method in a different script to return a result?
Also, am I right to delete ProcessImagesLib to free up memory?
on create()
set ProcessImagesLib to my loadScript("Process Images")
set ProcessImages to ProcessImages of ProcessImagesLib
tell ProcessImages to process(sourceFolder, item 2 of outPutFolders, fileList)
-- this does not work
-- set photoInfo to result of tell ProcessImages to process(sourceFolder, item 2 of outPutFolders, fileList)
delete ProcessImagesLib -- free up memory?
(*
more stuff down here that should use 'photoInfo'
*)
end create
on loadScript(scriptName)
return load script file (my pathToScripts() & scriptName & ".scpt")
end loadScript
on pathToScripts()
set appPath to (path to me from user domain) as text
return (appPath & "Contents:Resources:Scripts:") as text
end pathToScripts
thanks for any help