Skip to main content

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

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


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