Learn R Programming

act (version 1.3.1)

search_playresults_inquicktime: Open all search results in 'Quicktime' and play them

Description

The function remote controls 'Quicktime' by using an Apple Script. It opens consecutively all search results in 'Quicktime' and plays them.

Usage

search_playresults_inquicktime(x, s, bringQuicktimeToFront = FALSE)

Value

No return value.

Arguments

x

Corpus object.

s

Search object.

bringQuicktimeToFront

Logical; if TRUE the Quicktime player will be activated and placed before all other windows.

Details

Note: You need to be on a Mac to use this function.

Examples

Run this code
library(act)

mysearch <- act::search_new(x=examplecorpus, pattern = "pero")

# You can only use this function if you are on a Mac.
# In addition, you need to have downloaded the example media files. 
if (FALSE) {
	# Assign media files
	examplecorpus@paths.media.files <- c("FOLDERWHEREMEDIAFILESARELOCATED")
	examplecorpus <- act::media_assign(examplecorpus)
	
	# Create print transcripts. This is not necessary.
	# But its nice to see them when playing all results.
	mysearch <- act::search_cuts_printtranscript (x=examplecorpus, s=mysearch)
	
	# Play all search results
	act::search_playresults_inquicktime(x=examplecorpus, s=mysearch)
}

Run the code above in your browser using DataLab