Skip to main content
Question

Applescript Extension Attributes


Forum|alt.badge.img+12
  • Valued Contributor
  • 105 replies

Quick question, can I make an extension attribute script in Applescript? I need to work with some lists and not so good at that in Bash.

Any examples of the return format? Or examples at all?

Thanks

Jeff

Jeff Dyck | Analyste de reseaux - Mac OS X
Conseil Scolaire Francophone de la Colombie-Britannique (SD 93)
3550 Wellington Street, Annexe B - Port Coquitlam, BC - V3B 3Y5
Tel: 778-284-0902 - Cell: 778-990-7960 - http://support.csf.bc.ca

2 replies

Forum|alt.badge.img+4

You can run an applescript within an shell script if needed. ie

#!/bin/bash

##############################
# Description of what the script does. #
# @Author, XXXXXXXX
# @Date, #
# @Version History
# 1.0 # ################################

# notes - starts the screen saver

osascript -e 'tell application id "com.apple.ScreenSaver.Engine" to launch'

exit 0


Forum|alt.badge.img+31
  • Honored Contributor
  • 2721 replies
  • January 22, 2012

You can run Apple Script inside of bash, but your input/output may be tricky.

example:

#!/bin/bash

some unix commands

# start apple script

osascript <<EndofAS

bunch of apple script commands

EndofAS

exit 0

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings