Re: Executing an Applescript
Re: Executing an Applescript
- Subject: Re: Executing an Applescript
- From: Ken Thomases <email@hidden>
- Date: Thu, 29 Dec 2011 09:46:45 -0600
On Dec 29, 2011, at 8:11 AM, Daniel . wrote:
> I'm trying to execute an applescript placed into ~/.xinitrc.d. I find that only a shell script will execute, but not an applescript or an osascript?
You can run an AppleScript or OSA script from a shell script using the osascript command.
https://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man1/osascript.1.html
The AppleScript can either be specified as a separate file or embedded in the shell script using a 'here' document. For example:
=================================
#/usr/bin/sh
osascript <<"__END__"
... your AppleScript goes here ...
__END__
=================================
Regards,
Ken
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden