I have a main message loop. I'm looking for a way to check if the event is an AppleEvent and if it's Event Class is of 'MyClass' then do something.
I've looked in NSEvent reference and was lost not ...

I'm looking for a way to lock the user screen programmatically without putting the Mac asleep.
Right now, i'm able to trigger the lock screen with the kAESleep event but it's more a hack and it put ...

I've been building a 64 bit Python 3.4.2 app on OS X 10.10, which I bundle as a Mac app using py2app 0.9.
I have adapted the app's Info.plist file, so that OS X knows that files with a certain file ...

After I installed the latest updates in Xamarin 5.5 (build 198) and updated to OSX 10.9.5 (I don't know if either are the cause, but it seems probable), I get the error in the title whenever I try to ...

I want to add an applescript dictionary to my project, but I need to manage AppleEvents to create Methods, classes and events. How I can manage the AppleEvent codes in xcode.
Note:
I don't have the ...

Apples' Sandobox is supposed to use Apple Event Access Groups, which allow applications to communicate with each other, as described in the WWDC video "Session 206 Secure Automation Techniques In OS ...

Please give me some hints about how to work and, more practically, handle Apple events from raw console application written in C++ on Mac. I know that there is huge infrastructure for this purpose in ...

I have an application that is responding to 'GURL' (get URL) apple events from a custom registered URL protocol. It is being registered properly and works fine when the application is already running, ...

Is it possible to monitor or tap the stream of Apple Events being sent to a process, in the same way you can tap Quartz Events?
I have an application that talks to another application to force it to ...

I'm trying to write a simple AppleScript application that handles sftp:// and sshfs:// URLs on my Mac. Based on a good guide on how to create a custom URL handler app in AppleScript, I wrote a small ...

I would like to launch applications (or send to them using AppleEvents) using NSPasteboard data just like is done in the Finder when you drag and drop a file, text, image on an application (or in the ...

I run an applescript from an objective-c application using NSAppleScript the executeAndReturnError method. This returns an NSAppleEventDescriptor object containing the result of the script. My script ...

I'm using Cocoa’s [[NSWorkspace sharedWorkspace] launchApplicationAtURL… with the NSWorkspaceLaunchNewInstance option to spawn new instances of an AppleScriptable application (Adobe Acrobat), and I ...

My application implements the NSApplicationDelegate method -application:openFile: in its app delegate. There seems to be a problem new to OS 10.8 where after receiving the apple event to open a file, ...

I'm trying to use some Apple Events in my Cocoa project to get access to the Terminal application. I did not want to use embedded AppleScripts or any compiled scripts, so I started looking into the ...

I'm trying to send a kAESync AppleEvent to Python, but I can't seem to figure out how to do this. The documentation on the Carbon module seems sparse. There is a way to do this in Carbon, but I am not ...

Following the the code linked from here: Trap click event on dock icon using Qt on Mac, I tried to call the following method directly in my QApplication's constructor to receive notification of dock ...

I am trying to send an apple event to an application we have developed.
I want to be able to call the apple event, and at the same time pass parameters with the event. eg acctid, acctpassword, order ...

Why do these even exist? It seems absurd. Like with most dynamic languages, AppleScript types seem to be either immutable primitive types like integers and reals which are going to be handed around by ...