The terminology of the Numbers dictionary includes an audio clip class and properties for controlling its use:
The iWork Suite audio clip Class
audio clipn [inh. iWork item ] : An audio clip
elements
contained by slides, document.
properties
clip volume ( integer ) : The volume setting for the audio clip, from 0 (none) to 100 (full volume).
file name ( text r/o) : The name of the audio file.
repetition method ( none/loop/loop back and forth ) : If or how the audio clip repeats.
responds to
delete, exists
NOTE: In the current version of Numbers the audio clip class does not support the use of the make command. See the script example below for details on how to import an audio clip.
Import an Audio Clip
01
tellapplication "Numbers"
02
activate
03
try
04
-- PROMPT USER TO PICK AUDIO CLIP FILE
05
setaudioFileHFSAliasto ¬
06
(choose fileof type "public.audio" with prompt ¬
07
"Select the audio clip file to import:" default location (path tomusic folder))
08
09
-- CREATE DOCUMENT IF ONE DOES NOT EXIST
10
if not (existsdocument 1) then
11
makenewdocumentwith properties ¬
12
{document template:template "Blank"}
13
end if
14
15
telldocument 1
16
-- IMPORT MOVIE FILE TO ACTIVE SHEET
17
tell the active sheet
18
-- Numbers does not support using the audio clip class with the make verb
19
-- Import the audio clip file by using the image class as the direct parameter
20
-- The returned object reference will be to the created audio clip item
Mention of third-party websites and products is for informational purposes only and constitutes neither an endorsement nor a recommendation. MACOSXAUTOMATION.COM assumes no responsibility with regard to the selection, performance or use of information or products found at third-party websites. MACOSXAUTOMATION.COM provides this only as a convenience to our users. MACOSXAUTOMATION.COM has not tested the information found on these sites and makes no representations regarding its accuracy or reliability. There are risks inherent in the use of any information or products found on the Internet, and MACOSXAUTOMATION.COM assumes no responsibility in this regard. Please understand that a third-party site is independent from MACOSXAUTOMATION.COM and that MACOSXAUTOMATION.COM has no control over the content on that website. Please contact the vendor for additional information.