App Verbs

These Mac-only verbs script applications that support the App set of Apple events.

  • app.alertDialog - Display a message in an alert box.

  • app.askDialog - Get input from the user via dialog box.

  • app.bringToFront - Bring the application to the front.

  • app.closeAllWindows - Close all of an application's windows.

  • app.closeWindow - Close an application's window.

  • app.confirmDialog - Display a confirmation dialog.

  • app.countWindows - Count an application's windows.

  • app.enableDialogs - Enable or disable dialogs.

  • app.getErrorString - Get the text of the last error displayed by the application.

  • app.getFilePath - Get the path to the document being displayed in the target window.

  • app.getPicture - Get a PICT of the elements specified.

  • app.getTargetWindow - Get the title of the target or frontmost window.

  • app.getText - Get the text selected in the target window.

  • app.getWindowPosition - Get the position of the target window.

  • app.madeChanges - FInd out if the target window has been modified since it was last saved or opened.

  • app.moveWindow - Move the target window.

  • app.newWindow - Create a new window.

  • app.nthWindow - Get the title of the nth window.

  • app.openWindow - Open a file in a window.

  • app.printWindow - Print a window.

  • app.putPicture - Replace the selected items in the target window with a PICT.

  • app.putText - Replace the selected text with new text.

  • app.revertWindow - Revert a window to its last saved state.

  • app.saveWindow - Save a document.

  • app.selectAll - Select everything in the target window.

  • app.selectWindow - Set a window as the frontmost or target window.

  • app.setFont - Set the font.

  • app.setFontSize - Set the font size.

  • app.setTargetWindow - Set the target window.

  • app.somethingSelected - Is anything selected in the target window?

  • app.start - Launch an application if it's not already running.

  • app.startWithDocument - Launch an application with a document if it's not already running.

  • app.zoomWindow - Zooms a window.