NOTE: Same script worked in earlier versions of OS (Mojave,high Sierra,etc). Seeing this problem only in Catalina
I need to use Foundation framework for making some objc related calls in scripts. After I add this line loading script files and throws below error
Can’t make current application into type file.
After removing use framework “Foundation”, it works fine
use AppleScript version "2.4" -- Yosemite (10.10) or later
use scripting additions
use framework "Foundation"
set Lib to load script POSIX file "/Library/Application Support/iManage/script/Utilities.scpt"
Should I use different way to load script when using foundation framework.
Where can I get this information about using file specifiers when we include use framework statement. All my scripts are working fine before and I see these issues only after I upgraded to Catalina beta. I am facing issues with using alias as well
set the defaultDestinationFolder to "/Library/Application support/example" set destinationfolder to ((defaultDestinationFolder) as alias)
I see below error
Can’t make “/Library/Application support/example” into type alias.