Jump to content

AppleScript Editor

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 69.117.25.169 (talk) at 18:24, 6 February 2022 (See also). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Script Editor
Developer(s)Apple Inc.
Stable release
2.11 / August 18, 2018; 6 years ago (2018-08-18)[citation needed]
Operating systemClassic Mac OS, macOS
TypeSource code editor
LicenseProprietary
Websitedeveloper.apple.com/library/archive/documentation/LanguagesUtilities/Conceptual/MacAutomationScriptingGuide/GettoKnowScriptEditor.html

Script Editor (called AppleScript Editor from 2009 to 2014) is a code editor for the AppleScript and Javascript for Automation scripting languages, included in classic Mac OS and macOS.[1]

AppleScript Editor provides basic debugging capabilities[2] and can save AppleScripts as plain text (.applescript), as a compiled script (.scpt), as a script bundle (.scptd), or as an application (.app).[3][4] AppleScript Editor also handles script dictionary files, allowing the user to see what scripting classes and commands are available for each scriptable application installed on the computer.[5]

Prior to Mac OS X 10.3, Script Editor was developed using Carbon. 10.3 introduced a new Script Editor written using Cocoa. From Mac OS X 10.6 to 10.10, it was called AppleScript Editor. It likely regained its original name because of the introduction of JavaScript for Automation.

tell application "System Events" set texttosay to "



"

 display dialog "Text to type:" default answer " "

set texttosay to the text returned of the result repeat activate application "Roblox" delay 300 repeat 1 times keystroke "/" delay 2 keystroke texttosay delay 3.0 keystroke return end repeat end repeat end tell

References

  1. ^ "About Script Editor on Mac". Apple Support. Retrieved October 4, 2020.
  2. ^ "Edit scripts with Script Editor on Mac". Apple Support. Retrieved October 4, 2020.
  3. ^ "Save a script as an app in Script Editor on Mac". Apple Support. Retrieved October 4, 2020.
  4. ^ "Save a compiled script in Script Editor on Mac". Apple Support. Retrieved October 4, 2020.
  5. ^ "View an app's scripting dictionary in Script Editor on Mac". Apple Support. Retrieved October 4, 2020.