Skip to content

Latest commit

 

History

History
47 lines (37 loc) · 1.6 KB

File metadata and controls

47 lines (37 loc) · 1.6 KB

AppleScript Support

Mariani now supports some AppleScript commands and properties:

rebootv : Reboot the emulator
reboot

insertv : Insert disk in drive
insert text : File name of disk
into Drive : Disk drive

typev : Type on the keyboard
type text : String

take screenshotv : Take a screenshot
take screenshot

Applicationn : Mariani's top-level scripting object
ELEMENTS
contains Slots.
PROPERTIES
display (VT_MONO_CUSTOM/‌VT_COLOR_IDEALIZED/‌VT_COLOR_VIDEOCARD_RGB/‌VT_COLOR_MONITOR_NTSC/‌VT_COLOR_TV/‌VT_MONO_TV/‌VT_MONO_AMBER/‌VT_MONO_GREEN/‌VT_MONO_WHITE) : Display type

Slotn : I/O slot
ELEMENTS
contains Drives; contained by Applications.
PROPERTIES
card (text) : I/O card inserted in slot

Driven : Disk drive
ELEMENTS
contained by Slots.
PROPERTIES
disk (text) : Disk in drive

DisplayTypeenum : Video display type

  • VT_MONO_CUSTOM : Monochrome (Custom)
  • VT_COLOR_IDEALIZED : Color (Composite Idealized)
  • VT_COLOR_VIDEOCARD_RGB : Color (RGB Card/Monitor)
  • VT_COLOR_MONITOR_NTSC : Color (Composite Monitor)
  • VT_COLOR_TV : Color TV
  • VT_MONO_TV : B&W TV
  • VT_MONO_AMBER : Monochrome (Amber)
  • VT_MONO_GREEN : Monochrome (Green)
  • VT_MONO_WHITE : Monochrome (White)

I'm a total beginner with both scripting support and AppleScript itself, so let me know if this can be improved.