Re: Running AppleScript code from the Terminal?
Re: Running AppleScript code from the Terminal?
- Subject: Re: Running AppleScript code from the Terminal?
- From: Alexander Sauer-Budge <email@hidden>
- Date: Thu, 30 Jan 2003 18:16:32 -0500
You can use the command osascript (man osascript within the Terminal to
find out some more about it). I've used it for silly notifications like
make all; osascript -e 'say "Done compiling."'
which works fine, but when I tried something like
/usr/libexec/locate.updatedb; osascript -e 'display dialog "Update
complete!" buttons {"Ok"}'
I couldn't bring the dialog to the front and click on the button! I had
to kill it from the terminal!
Since osascript is a command-line tool, you can use it from shell
scripts if you want to.
Alex
On Thursday, January 30, 2003, at 01:49 PM, Aaron Solomon Adelman
wrote:
Greetings.
I've been goofing off with the Terminal lately, and it occured to me
that it would be nice to be able to make the Terminal beep or speak
when one of my scripts wanted notification. Then it occured to me
that it might be even nicer to be able embed AppleScript code in shell
script. Is there any way I can do this? Thanks in advance for any
help anyone can provide.
Note: If what I want is not possible with existing programs, anyone
who wants is free to write something to make it possible.
Aaron
--
Aaron Solomon (ben Saul Joseph) Adelman
E-mail: email@hidden
Web site: http://people.musc.edu/~adelmaas/
AOL Instant Messenger: Hiergargo
Yahoo! Messenger: hiergargo
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.