Difference between revisions of "Osascript"

From wikieduonline
Jump to navigation Jump to search
Line 14: Line 14:
 
== Related ==
 
== Related ==
 
* [[terminal-notifier]]
 
* [[terminal-notifier]]
 +
* [[say]]
  
 
== See also ==
 
== See also ==

Revision as of 09:34, 3 September 2022

osasscript execute AppleScripts and other OSA language scripts


Examples:

  • osascript -e 'display notification "MY TEXT" with title "MY TITLE"'
  • osascript -e 'display notification "My Notification text goes here" with title "My Title"'
  • osascript -e 'beep 1' or tput bel or say TEST
osascript --help
usage: osascript [-l language] [-e script] [-i] [-s {ehso}] [programfile] [argument ...]

Related

See also

Advertising: