smizzlov
smizzlov

Reputation: 608

edits in AppleScript library only work after closing and reopening Script Editor

I am writing an AppleScript library and want to test it while continuously upgrading it.

So I have two open windows in Script Editor, one for the library file and one for another script file that calls handlers from the library.

I noticed that when I add a handler to the library (or perform other changes), I can't use them in my second script file until I close the Script Editor and then reopen the files.

Is there an easier way of "reloading" the updated library?

Upvotes: 0

Views: 47

Answers (1)

McUsr
McUsr

Reputation: 1409

Usually, I compile and save the Script Library, then I recompile the script that uses the library, that is, I insert a return somewhere, so the source text is changed, before I recompile (cmd-K). Then I run it with the updated library. This is how it works under Mavericks. This should work with whatever kind of library you use.

Upvotes: 1

Related Questions