Posted on 11-01-2010 12:54 AM
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
Posted on 01-21-2012 11:49 AM
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
Posted on 01-22-2012 12:44 PM
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