Hi
I have been using the below for a long time in my project, and was wondering is a faster way available to load and run a scpt file from my main bundle?
set posixPath to current application's NSBundle's mainBundle's pathForResource_ofType_("SLUG", "scpt") as string
set scriptAlias to (posixPath as text) as POSIX file
set Slug_reference to load script scriptAlias
run Slug_reference
Model: iMac
Browser: Firefox 49.0
Operating System: macOS 10.14