Re: Executing an Applescript
Re: Executing an Applescript
- Subject: Re: Executing an Applescript
- From: "Daniel ." <email@hidden>
- Date: Thu, 29 Dec 2011 18:18:10 -0500
On Dec 29, 2011, at 12:16PM, Daniel . wrote: Thank you Ken, that works, but...
On Dec 29, 2011, at 10:46AM, Ken Thomases wrote:
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. 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__ =================================
... my applescript code embedded and executed in this fashion causes the window to visibly re-fresh. Its like the window hiccups. What I have been doing up to this point is to use a shell script to open an applescript.app which causes no visible re-fresh, but it does seem to me to be a clunky solution.
Doh! Wrong again!!... Window isn't re-freshing... xquartz-wm isn't loading properly, soon as my embedded applescript finishes executing, it loads and I get the titlebar, etc!
Daniel, somewhere in Maine
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden