Chapter 11. AppleScript Support

Table of Contents

Before You Begin
Example Scripts
Tell iRecordMusic to connect to a web page
Connect to BBC Radio 1 and Record and Stop
Schedule Recording of BBC Radio 1 for 5 minutes
Identifiers and State
The Future
The AppleScript Dictionry

This chapter will explain the AppleScript support in iRecordMusic, and help you to write scripts to automate iRecordMusic.

Before You Begin

As it is possible to launch multiple copies of iRecordMusic, to simultaneously record from multiple audio streams at the same time, an interesting issue arises. When you send an AppleScript command to "iRecordMusic.app" how can you be sure which copy of iRecordMusic receives the command?

Our workaround to this issue, for now (and we may improve this in the future), is to provide an identifier for each running copy of iRecordMusic. When issuing commands, you must also provide this identifier, which is a string.

tell application "iRecordMusic"
	get irmID   -- get ID of the application receiving the command
	get irmIDs  -- get IDs of all running copies of iRecordMusic 
end tell