As the same as the Form Library, you can also reuse the script queries of other applications using the same database connection.
Open Script Library
Tap the "Script Library" button at the top corner of Application Script Editor will open the Script Library.
At the opened Script Library dialog, Click the "Info" button will highlight the Script Query.
Copy Script into the current application
Double click the Script will paste the selected script query into the application editor.