On 17 Jun 2016, at 19:20, Shane Stanley <email@hidden> wrote:
If not an applet, then save as a .scptd bundle.
Right, but I must be doing something wrong.
With the “sorted” script in the Script Libraries folder, this runs fine:
use scripting additions use script "sorted"
set resultsList to {"d", "a", "b"} tell script "sorted" to quickSort(resultsList)
But if I add the “sorted” script to the bundle, compile, save and close as scptd, then delete ‘sorted’ from ~/Library/Script Libraries, when I re-open this I get a “can’t find script “sorted’ message. I thought it might be because the original was still loaded in AppleScript instance’s memory (overlook my haziness here…), but log out/log in and I’m still hitting the same error.
Side note: Couldn’t find what I was doing wrong in ALG. Isn’t the 2016 version available as a pdf anymore? Reading it in Dash is easier than the Apple web page, but the pdf is better still (last one I could find was 2013). |