Enabling remote Apple events
Continuing our run down of the sharing preference pane we’ll cover remote Apple events, remote Apple events allow apps running on other Macs to send commands directly to the Mac with remote Apple events enabled these commands can include “opening an app”, “printing a document” or even playing music.
Basically, remote Apple events allow you to quickly run a task on another Mac without having to use screen sharing.
Go to:
System Preferences > Sharing

Check the Remote Apple events option:

Again, you should specify which users can use remote Apple events using Only these users option to be more specific:

You will need to know the I.P address of the Mac you have enabled remote Apple events on, you can go back to System Preferences > Network to find the local I.P address or if you want to run these events from outside your local network (home Wi-Fi etc) you will need to obtain your external I.P address from your router and enable port forwarding to your Mac.

For a simple outline of how to use Apple Script on another Mac to send commands to the Mac you have enabled remote Apple events on:
Firstly, open AppleScript Editor from Applications > Utilities > Script Editor.app

And for our first simple script we will simply tell iTunes to open and play on the remote machine.
setremotemachineto "eppc://192.168.2.3"
tellapplication"finder" ofmachineremotemachine
open("/applications/iTunes.app" asPOSIX fileasalias)
endtell
using terms fromapplication "iTunes"
tellapplication"iTunes" ofmachineremotemachine
setlocalVariabletoplayplaylistnamed "Rock"
endtell
endusing terms fromSet the I.P address to the machine you have enabled apple Remote events on:
setremotemachine to "eppc://YOUR I.P ADDRESS"You will also need to change the playlist name from rock to one of your playlists:
setlocalVariabletoplayplaylistnamed "Insert your playlist name”Alternatively change the command to just play and iTunes will open and play on the remote machine:
setlocalVariabletoplayNow when you hit run in the Apple Script editor:

When you first run the script, it will ask you to enter the username and password for the remote machine:

The remote machine will open iTunes and play the playlist called Rock.
This Apple Script we have custom coded for this tutorial, if you want to learn more go to the Apple Script website Mac OS X Automation.
And for more iTunes commands including building a remote player see the Apple website.
Related Posts
10 Things You Didn't Know You Could Do With Apple Configurator (That Save Mac Admins Hours)
1) Retro-enroll Devices into Apple Business Manager (iOS/iPadOS) If a Mac wasn’t purchased through your ABM-linked reseller, you can still claim it. Adding it via Configurator means you get Automated Device Enrollment...
The Evolution of Apple Certification: A Journey Through Versions, Challenges & Growth
A Look Back: The macOS 10.5 Era and the Early Certification Landscape Back in 2008 when I first became an Apple Certified Support Professional, the certification process was a different beast entirely....
Secure Software, Secure Career: How I Passed the CSSLP
Where the CISSP is broad, the CSSLP is laser-focused. This exam dives deep into secure software principles, threat modeling, data protection, API security, database hardening, and development methodologies like Agile, DevOps, and...
Managing Bring Your Own Device (BYOD) for Android with Microsoft Intune
BYOD For Android using Microsoft Intune Alright, so today we’re going to be talking about the management of bring your own device BYOD for Android devices. There’s a lot of information out...
BYO with me in 2025: iOS with User Enrollment in JAMF Pro
BYOD Is for Mobile Devices only right? It really depends on your companies needs. For example many companies need to hire 1099 contractors and in such a case they come with their...
Securing BYOD Email Access: Exploring Strategies in Microsoft 365
Strengthening Your BYOD Program with Secure Email Policies In today’s mobile-first world, organizations increasingly rely on Bring Your Own Device (BYOD) programs to empower employees while optimizing costs. However, this flexibility introduces...
How I Conquered the CISSP Exam: 9 Months, Top Resources, and Proven Strategies
My Study Plan 1. Set a Realistic Timeline From the outset, I knew this wasn’t a sprint—it was a marathon. I gave myself 9 months to study, breaking the material into manageable...
Get more out of scripting than you may expect
Expect is an extension to the Tcl scripting language written by Don Libes. The program automates interactions with programs that expose a text terminal interface. Expect, originally written in 1990 for the...
Cybersecurity is more than having the right tools
Cybersecurity is the convergence of people, processes and technology that come together to protect organizations.