Skip to content
This repository has been archived by the owner on Jun 9, 2023. It is now read-only.

Latest commit

 

History

History
240 lines (208 loc) · 20.4 KB

plugins.finalcutpro.watchfolders.media.MediaFolder.md

File metadata and controls

240 lines (208 loc) · 20.4 KB

docs » plugins.finalcutpro.watchfolders.media.MediaFolder


Final Cut Pro Media Watch Folder Plugin.

API Overview

API Documentation

Functions

Signature plugins.finalcutpro.watchfolders.media.MediaFolder.freeze(mediaFolder) -> table
Type Function
Description Returns a table with the details of the MediaFolder, ready to be stored.
Parameters
  • mediaFolder - The MediaFolder to freeze.
Returns
  • A table of details.

Constructors

Signature plugins.finalcutpro.watchfolders.media.MediaFolder.new() -> MediaFolder
Type Constructor
Description Creates a new Media Folder.
Parameters
  • mod - The module.
  • path - Path to the Media Folder.
  • videoTag - Video Tag as String
  • audioTag - Audio Tag as String
  • imageTag - Image Tag as String
Returns
  • A new MediaFolder object.
Signature plugins.finalcutpro.watchfolders.media.MediaFolder.thaw(details) -> MediaFolder
Type Constructor
Description Creates a new MediaFolder based on the details provided.
Parameters
  • details - The table with details of the media folder when it was frozen.
Returns
  • A new MediaFolder instance with the specified details.

Methods

Signature plugins.finalcutpro.watchfolders.media.MediaFolder:addIncoming(file) -> nil
Type Method
Description Adds the file to the 'incoming' list and updates the notification.
Parameters
  • file - The file to add.
Returns
  • nil
Signature plugins.finalcutpro.watchfolders.media.MediaFolder:addReady(file) -> nil
Type Method
Description Adds the file to the 'ready' list and updates the notifications.
Parameters
  • file - The file to add.
Returns
  • nil
Signature plugins.finalcutpro.watchfolders.media.MediaFolder:checkNotifications() -> none
Type Method
Description Checks Notifications.
Returns
  • None
Signature plugins.finalcutpro.watchfolders.media.MediaFolder:destroy()
Type Method
Description Destroys the MediaFolder. It should not be used after this is called.
Parameters
  • None
Returns
  • None
Signature plugins.finalcutpro.watchfolders.media.MediaFolder:doDeleteImportedFiles(context) -> nil
Type Method
Description Checks if we are deleting after import, and if so schedules them to be deleted.
Parameters
  • files - a table of file paths.
Returns
  • None
Signature plugins.finalcutpro.watchfolders.media.MediaFolder:doImportNext() -> nil
Type Method
Description Imports the next file in the Media Folder.
Parameters
  • None
Returns
  • None
Signature plugins.finalcutpro.watchfolders.media.MediaFolder:doRestoreOriginalPasteboard(context) -> nil
Type Method
Description Restore original Pasteboard contents after 2 seconds.
Parameters
  • context - The context.
Returns
  • None
Signature plugins.finalcutpro.watchfolders.media.MediaFolder:doRevealInFinder() -> cp.rx.go.Statement
Type Method
Description Returns a Statement that will reveal the MediaFolder path in the Finder.
Parameters
  • None
Returns
  • Statement
Signature plugins.finalcutpro.watchfolders.media.MediaFolder:doTagFiles(files) -> nil
Type Method
Description Tags a table of files.
Returns
  • None
Signature plugins.finalcutpro.watchfolders.media.MediaFolder:handleImport(notification) -> nil
Type Method
Description Handles the importing of a file.
Parameters
  • notification - The notification object.
Returns
  • None
Signature plugins.finalcutpro.watchfolders.media.MediaFolder:importAll() -> nil
Type Method
Description Begins importing all ready files, removing them from the ready queue.
Parameters
  • None
Returns
  • None
Signature plugins.finalcutpro.watchfolders.media.MediaFolder:importFiles(files) -> nil
Type Method
Description Requests for the files to be imported.
Parameters
  • files - a table/list of files to be imported.
Returns
  • None
Signature plugins.finalcutpro.watchfolders.media.MediaFolder:importFirst() -> nil
Type Method
Description Begins importing the first ready file, removing it from the ready queue.
Parameters
  • None
Returns
  • None
Signature plugins.finalcutpro.watchfolders.media.MediaFolder:importTag() -> string
Type Method
Description Returns the import tag.
Parameters
  • None
Returns
  • The import tag as a string.
Signature plugins.finalcutpro.watchfolders.media.MediaFolder:init() -> nil
Type Method
Description Initialises the folder, getting any watchers, notifications, etc. running.
Returns
  • None
Signature plugins.finalcutpro.watchfolders.media.MediaFolder:processFiles() -> none
Type Method
Description Process files.
Parameters
  • files - A table of files to process.
  • fileFlags - A table of file flags.
Returns
  • None
Signature plugins.finalcutpro.watchfolders.media.MediaFolder:removeFile(file) -> MediaFolder
Type Method
Description Removes the file from any queues it might be in, updating relevant notifications.
Parameters
  • file - the full path to the file.
Returns
  • The MediaFolder instance
Signature plugins.finalcutpro.watchfolders.media.MediaFolder:save()
Type Method
Description Ensures the MediaFolder is saved.
Parameters
  • None
Returns
  • None
Signature plugins.finalcutpro.watchfolders.media.MediaFolder:skipAll() -> nil
Type Method
Description Skip all files in the Media Folder.
Parameters
  • None
Returns
  • None
Signature plugins.finalcutpro.watchfolders.media.MediaFolder:skipOne() -> nil
Type Method
Description Skip one file in the Media Folder.
Parameters
  • None
Returns
  • None
Signature plugins.finalcutpro.watchfolders.media.MediaFolder:updateIncomingNotification() -> nil
Type Method
Description Updates the 'incoming' notification based on the current set of files in the incoming queue.
Parameters
  • None
Returns
  • None
Signature plugins.finalcutpro.watchfolders.media.MediaFolder:updateReadyNotification() -> nil
Type Method
Description Updates the 'ready' notification based on the current set of files in the ready queue.
Parameters
  • None
Returns
  • None