|
|
Watch applications send and receive Apple Events
how would this be done using the bash?
Watch applications send and receive Apple Events
put:
Watch applications send and receive Apple Events
On my MacBook, running Mac OS X 10.6.8, I had to use the following:
(Note: no spaces around the equals sign). Also, any AppleScript commands needed to be run from within that Terminal window. What I did was create an AppleScript file with my test code, then save it to test-debug.scpt on the Desktop. Then, every time I wanted to send some debugging-log commands to my app, I would save the AppleScript file and run the following:
I'm actually doing this while trying to debug a bizarre FileMaker bug (?) where UI Scripting stops responding for about 7 seconds after you click a button that opens a new window. So many work-arounds have failed: "with timeout 0.1 seconds" ; "ignoring application responses" ; and more. Basically, when you tell System Events to click a button in the Manage Database window for FileMaker Pro Advanced, the GUI successfully clicks the specified button, the new window open, but then the GUI stops responding to any other Apple Events for about 7 seconds, returns a 'missing value' as the result of the click, and then resumes functioning as expected. Extremely frustrating, since it adds a completely unnecessary 7-second delay to every action that pops up a new window. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.31 seconds |
|