Sending AppleScript from Terminal to RR
Kaveh Bazargan
kaveh at focalimage.com
Sun Jul 11 01:15:06 EDT 2004
At 6:24 pm -0700 10/7/04, Dan Shafer wrote:
>Or if you're running the bash shell, it looks like this:
>
>$ exec osascript <<EOF
> >tell application "Safari"
> >activate
> >end tell [ctrl-d]
>
>I guess in the bash shell, ctrl d is the EOF. At any rate, typing \EOF
>produces no visible result.
Thanks to all for this great trick. Actually, this works in bash:
[~/ELS/els-xml]: osascript <<EOF
> tell application "Finder"
> activate
> end tell
> EOF
[~/ELS/els-xml]:
In my case, it is more convenient to send a file, so I just say
osascript myscript.applescript, but the above is a useful trick for other
things.
--
--------------
Kaveh Bazargan
http://www.focalimage.com/
http://www.holographer.org/
More information about the use-livecode
mailing list