Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
AppleScript: GUI scripting
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="mike1127" data-source="post: 1724091" data-attributes="member: 380570"><p>I want to script Emacs, which is unscriptable in OSX, but my understanding is that most unscriptable programs can have some support through "System Events", otherwise known as GUI scripting. </p><p></p><p>I want to start with raising windows with a particular name. I used the following script successfully.</p><p></p><p></p><p></p><p></p><p>In this case, Emacs had two frames, and this typed "foo" into the first frame. So that's good. But what I really want to do is raise a particular Emacs window, determined by its name. I tried the following:</p><p></p><p></p><p></p><p>This gave an error "Can't get window 1 of process Emacs, invalid index". So I am confused appartenly it works to "tell" window 1 something, but trying to "get" something returns the result that it doesn't exist?</p><p></p><p>Ultimately what I want to do is raise a particular window. Can anyone help?</p><p></p><p>Note that I am trying to avoid paid macro programming software, as I just don't see a need for it. I am a programmer, and this stuff should be doable with AppleScript and Automator.</p></blockquote><p></p>
[QUOTE="mike1127, post: 1724091, member: 380570"] I want to script Emacs, which is unscriptable in OSX, but my understanding is that most unscriptable programs can have some support through "System Events", otherwise known as GUI scripting. I want to start with raising windows with a particular name. I used the following script successfully. In this case, Emacs had two frames, and this typed "foo" into the first frame. So that's good. But what I really want to do is raise a particular Emacs window, determined by its name. I tried the following: This gave an error "Can't get window 1 of process Emacs, invalid index". So I am confused appartenly it works to "tell" window 1 something, but trying to "get" something returns the result that it doesn't exist? Ultimately what I want to do is raise a particular window. Can anyone help? Note that I am trying to avoid paid macro programming software, as I just don't see a need for it. I am a programmer, and this stuff should be doable with AppleScript and Automator. [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
AppleScript: GUI scripting
Top