Get applescript editor6/16/2023 ![]() ![]() In simplest form, the primary difference with loading script objects is that you don't need to know the path to the file, but the library must be stored in a fixed location. Script libraries are in basic form are pretty much the same as loading a script object from a file. ![]() At the end these pseudo-libraries were mostly used by scripters locally on their machine, particularly those needing to do a lot of writing involving reuse of AppleScript code. Sharing those pseudo-libraries was always difficult and rarely a success because it was hard for another user to understand the library. However, locating and managing such pseudo-libraries was always a mess and you need to write your own "include" function to make sure the correct library and version are loaded, if users would make the effort. The script object will behave much like a library, so this was one way to create your own pseudo-libraries. This is an useful way to store script objects in files so they can be used by multiple AppleScript scripts or applications. ![]() You can use load script commands to return an instance of the script object stored in a file. I would like to explain in a small tutorial how this new feature can be very useful. One of the new features in AppleScript 2.3 is creating your own script libraries. Mavericks (Mac OS X 10.9) ships with an updated version of AppleScript.
0 Comments
Leave a Reply. |