docs » plugins.finalcutpro.watchfolders.media.MediaFolder
Final Cut Pro Media Watch Folder Plugin.
- Functions - API calls offered directly by the extension
- freeze
- Constructors - API calls which return an object, typically one that offers API methods
- new
- thaw
- Methods - API calls which can only be made on an object returned by a constructor
- addIncoming
- addReady
- checkNotifications
- destroy
- doDeleteImportedFiles
- doImportNext
- doRestoreOriginalPasteboard
- doRevealInFinder
- doTagFiles
- handleImport
- importAll
- importFiles
- importFirst
- importTag
- init
- processFiles
- removeFile
- save
- skipAll
- skipOne
- updateIncomingNotification
- updateReadyNotification
| 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 |
|
| Returns |
|
| Signature | plugins.finalcutpro.watchfolders.media.MediaFolder.new() -> MediaFolder |
|---|---|
| Type | Constructor |
| Description | Creates a new Media Folder. |
| Parameters |
|
| Returns |
|
| Signature | plugins.finalcutpro.watchfolders.media.MediaFolder.thaw(details) -> MediaFolder |
|---|---|
| Type | Constructor |
| Description | Creates a new MediaFolder based on the details provided. |
| Parameters |
|
| Returns |
|
| Signature | plugins.finalcutpro.watchfolders.media.MediaFolder:addIncoming(file) -> nil |
|---|---|
| Type | Method |
| Description | Adds the file to the 'incoming' list and updates the notification. |
| Parameters |
|
| Returns |
|
| Signature | plugins.finalcutpro.watchfolders.media.MediaFolder:addReady(file) -> nil |
|---|---|
| Type | Method |
| Description | Adds the file to the 'ready' list and updates the notifications. |
| Parameters |
|
| Returns |
|
| Signature | plugins.finalcutpro.watchfolders.media.MediaFolder:checkNotifications() -> none |
|---|---|
| Type | Method |
| Description | Checks Notifications. |
| Returns |
|
| Signature | plugins.finalcutpro.watchfolders.media.MediaFolder:destroy() |
|---|---|
| Type | Method |
| Description | Destroys the MediaFolder. It should not be used after this is called. |
| Parameters |
|
| Returns |
|
| 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 |
|
| Returns |
|
| Signature | plugins.finalcutpro.watchfolders.media.MediaFolder:doImportNext() -> nil |
|---|---|
| Type | Method |
| Description | Imports the next file in the Media Folder. |
| Parameters |
|
| Returns |
|
| Signature | plugins.finalcutpro.watchfolders.media.MediaFolder:doRestoreOriginalPasteboard(context) -> nil |
|---|---|
| Type | Method |
| Description | Restore original Pasteboard contents after 2 seconds. |
| Parameters |
|
| Returns |
|
| 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 |
|
| Returns |
|
| Signature | plugins.finalcutpro.watchfolders.media.MediaFolder:doTagFiles(files) -> nil |
|---|---|
| Type | Method |
| Description | Tags a table of files. |
| Returns |
|
| Signature | plugins.finalcutpro.watchfolders.media.MediaFolder:handleImport(notification) -> nil |
|---|---|
| Type | Method |
| Description | Handles the importing of a file. |
| Parameters |
|
| Returns |
|
| Signature | plugins.finalcutpro.watchfolders.media.MediaFolder:importAll() -> nil |
|---|---|
| Type | Method |
| Description | Begins importing all ready files, removing them from the ready queue. |
| Parameters |
|
| Returns |
|
| Signature | plugins.finalcutpro.watchfolders.media.MediaFolder:importFiles(files) -> nil |
|---|---|
| Type | Method |
| Description | Requests for the files to be imported. |
| Parameters |
|
| Returns |
|
| Signature | plugins.finalcutpro.watchfolders.media.MediaFolder:importFirst() -> nil |
|---|---|
| Type | Method |
| Description | Begins importing the first ready file, removing it from the ready queue. |
| Parameters |
|
| Returns |
|
| Signature | plugins.finalcutpro.watchfolders.media.MediaFolder:importTag() -> string |
|---|---|
| Type | Method |
| Description | Returns the import tag. |
| Parameters |
|
| Returns |
|
| Signature | plugins.finalcutpro.watchfolders.media.MediaFolder:init() -> nil |
|---|---|
| Type | Method |
| Description | Initialises the folder, getting any watchers, notifications, etc. running. |
| Returns |
|
| Signature | plugins.finalcutpro.watchfolders.media.MediaFolder:processFiles() -> none |
|---|---|
| Type | Method |
| Description | Process files. |
| Parameters |
|
| Returns |
|
| 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 |
|
| Returns |
|
| Signature | plugins.finalcutpro.watchfolders.media.MediaFolder:save() |
|---|---|
| Type | Method |
| Description | Ensures the MediaFolder is saved. |
| Parameters |
|
| Returns |
|
| Signature | plugins.finalcutpro.watchfolders.media.MediaFolder:skipAll() -> nil |
|---|---|
| Type | Method |
| Description | Skip all files in the Media Folder. |
| Parameters |
|
| Returns |
|
| Signature | plugins.finalcutpro.watchfolders.media.MediaFolder:skipOne() -> nil |
|---|---|
| Type | Method |
| Description | Skip one file in the Media Folder. |
| Parameters |
|
| Returns |
|
| 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 |
|
| Returns |
|
| 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 |
|
| Returns |
|