Questions tagged [appleevents]

An Apple event is a type of interprocess message that can specify complex operations and data.

An Apple event is a type of interprocess message that can specify complex operations and data. Apple events allow you to gather all the data necessary to accomplish a high level task into a single package that can be passed across process boundaries, evaluated, and returned with results. The Mac OS uses Apple events to communicate with applications. Apple events are also an essential part of the AppleScript scripting system, which allows users to automate actions using scriptable applications—applications that can respond to a variety of Apple events by performing operations or supplying data.

84 questions
3
votes
2 answers

AppleScript from Java on Mac OS X 10.6?

To call AppleScript from Python, I use the "appscript" bridge: http://appscript.sourceforge.net/ What can I use to call AppleScript from Java on Mac OS X 10.6+?
Maroloccio
  • 1,143
  • 2
  • 12
  • 22
3
votes
1 answer

Using AppleScript with Apple Events in macOS - Script not working

We need to use a AppleScript to create an outgoing email message in macOS. The script works fine in the Script Editor. Using the code recommended by DTS https://forums.developer.apple.com/message/301006#301006 no results, warnings or errors. Same…
John
  • 538
  • 4
  • 18
3
votes
1 answer

AppleEvents/sandbox: Returning errAEPrivilegeError, not entitled to send an AppleEvent to the process

I want to create InDesign document using Apple Script using Sandboxing. My Apple Script is: tell application Adobe Indesign CS5.5 make new document end tell My Entitlement Entries are : In Adobe InDesign CS5.5.app Info.plist Bundle identifier is…
A_kumar
  • 401
  • 1
  • 4
  • 12
3
votes
2 answers

Using script to save dynamic network ip address to file?

Is there a way I could use AppleScript to check for my network ip address? Or an alternative coding option? I need to save the ip address to a file if it has changed and then upload it to my ftp server with a date and time stamp. I have this part…
Isaiah Turner
  • 2,574
  • 1
  • 22
  • 35
3
votes
1 answer

get url event on app open in objective c (Mac OSX)

I'm writing a very lightweight app for OSX 10.6+ which will respond to a user clicking on a URL, pass that URL to another application via TCP and then exit. So far it has registered fine to launch when a user clicks the custom url scheme. However…
Aaron
  • 48
  • 3
3
votes
1 answer

How to force kill another application in cocoa Mac OS X 10.5

I've this task, from my application i need to kill another my application, the problem is that the other application has a Termination Confirm Dialog (there is no critical data to save, only confirmation of user intent to quit). On 10.6+ you will…
Shebuka
  • 3,148
  • 1
  • 26
  • 43
3
votes
2 answers

Finder update/refresh applescript not working in 10.8

I have been using apple script for updating display for files and folders in finder. This is simplified version of that script: tell application "Finder" tell window 1 to update items end tell I can see that since 10.8 (Mountain Lion) update…
2
votes
2 answers

Getting an AppleScript property of an NSAppleEventDescriptor

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 NSAppleEventDescriptor. I have succeeded in…
v1Axvw
  • 3,054
  • 3
  • 26
  • 40
2
votes
1 answer

What is the "creator code" for Final Cut Pro X?

I'm working on sending Apple Events to Final Cut Pro X. At the moment I have the trial (free is always nice for experimenting). However, looking at the .plist in the package, the creator code is specified as "????" and its bundle ID is…
Marc
  • 324
  • 1
  • 9
2
votes
0 answers

Sending AppleEvents to Finder via Python

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 sure how it translates to Python using the…
maranas
  • 1,396
  • 1
  • 12
  • 21
2
votes
1 answer

Making SwiftUI app Scriptable with AppleScript and Javascript JXA

Please note I have carefully followed How to implement AppleScript support in a Swift MacOS app - however this is not working for me. I assume it's out of date. After following a variety of documentation, guides, examples, I'm stuck trying to get…
ocodo
  • 29,401
  • 18
  • 105
  • 117
2
votes
0 answers

How to send a string from a application to DAL plugin using IPC on MacOS?

I have a CoreMediaIO based DAL plugin written in Swift which currently poll a website to get that string. Which is not a good approach. I want to send that string to DAL plugin via Operating System supported IPC(Inter Process Communication). But…
Alok
  • 7,734
  • 8
  • 55
  • 100
2
votes
1 answer

How fix macOS Catalina error "not authorized to send apple events to terminal"?

When trying to open Maxima.app under macOS Catalina (10.15.1), I get a pop-up error message ""Not authorized to send apple events to terminal". Where, exactly, in he Catalina System Preferences (presumably somewhere in Security & Privacy) do I allow…
murray
  • 737
  • 2
  • 10
  • 28
2
votes
1 answer

AppleScript Email Attachment not working in handler

We have a working AppleScript that creates an email with an attachment and it works fine in the Script Editor. However, we cannot get the attachment to work in the handler used in our macOS app. Difficult to find doc and figure out the difference…
John
  • 538
  • 4
  • 18
2
votes
1 answer

How to send and receive NSAppleEventDescriptor when using NSWorkspace to open URLs between apps?

NSWorkspace has the method open(_:withAppBundleIdentifier: [...] ): Opens one or more files from an array of URLs. func open(_ urls: [URL], withAppBundleIdentifier bundleIdentifier: String?, options: NSWorkspace.LaunchOptions = [], …
pkamb
  • 33,281
  • 23
  • 160
  • 191