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

View source: R/search_playresults_inquicktime.R

search_playresults_inquicktimeR Documentation

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)

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.

Value

No return value.

Examples

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. 
## Not run: 
	# 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)

## End(Not run)

act documentation built on June 7, 2023, 6:16 p.m.