• Skip to main content
  • Skip to primary sidebar
  • Skip to footer

1stplugins

FileMaker plug-ins and Reverse Engineering

  • Plugins
    • MediaManager
  • Services
    • Reverse Engineering
    • FileMaker Plug-Ins
  • About
    • About Us
    • Contact Us
    • Terms of Use of the Website and Privacy Policy
  • Store
    • Terms and Conditions
    • Warranty Claim Guidelines
    • Contract Withdrawal Form
    • Warranty Claim Report

Media_Search

Media_Search ( location_and_mask { ; meta_pattern } )

Searches a specified location for multimedia files and returns a list of paths matching given search criteria. Files can be matched either by their file name (specified in the first argument) and/or by their metadata contents (specified in the second argument).

Parameters

Parameter Description
location_and_mask A list of paths where to start, optionally containing a file name mask.
meta_pattern Optional. A regular expression to search metadata for.

Discussion

The function prints recursively all files from the specified location, optionally filtering out all but those matching a mask. When the second argument is present, metadata of all files matching the mask will be matched with a regular expression (regexp) and only those satisfying the regexp will be printed by the function.

File name mask. If the mask is not present, it defaults to “*.*” without the quotes. Otherwise you can use * to match zero to any number of characters or ? to match exactly one character. Usually the mask contains *.file_extension so *.mp3 matches all MP3s. You can specify multiple masks by delimiting them with a pipe (“|”) character so that “*.mp3|*.wav” specifies both MP3s and WAVs.

Meta pattern is a case insensitive regular expression conforming to the ECMAScript regular expression standard. When constructing a search pattern, you can use an online regexp debugging sites such as https://regexr.com or https://regex101.com.

Returns

A list of paths of files matching the criteria.

Examples

Search the Music folder in the user’s home directory for all MPEG-4 AACs:

Set Field [

MyTable::Response ;
Media_Search ( ".m/*.m4a|*.aac" ) ]

Search the Documents and Downlads folder for all MP3s containing “Vangelis” at their metadata:

Set Field [

MyTable::Response ;
Media_Search ( ".m/*.m4a|*.aac" ; ".*Vangelis.*") ]

Search the Documents folder for all MP3s, WAVs, MPEG-4 AACs containing “anythingVangelisanything”:

Set Field [

MyTable::Response ;
Media_Search ( ".d/" ; ".*Vangelis.*") ]

Primary Sidebar

Document Functions

Media_CopyItem
Media_CreateAlias
Media_CreateFolder
Media_DeleteItem
Media_ExportField
Media_ExtractInfo
Media_GetDefaultFolder
Media_GetItemInfo
Media_GetName
Media_GetPath
Media_InsertFile
Media_ListDisks
Media_ListFolder
Media_MoveItem
Media_OpenItem
Media_RenameItem
Media_Search
Media_SetDefaultFolder

General and Registration Functions

Media_Get
Media_GetLastError
Media_GetMouseUp
Media_JSONPath
Media_PeekStream
Media_Register
Media_RegisterLicensedEncoder
Media_Set
Media_Version

Image Functions

Media_ConvertImage
Media_CreateQRCode
Media_EffectApply
Media_EffectDialog
Media_GetImageInfo
Media_GetMetadata
Media_InsertImage
Media_ListImageOutputTypes
Media_SetImageDefaults Media_TApply
Media_TClear
Media_TCrop
Media_TQuad
Media_TResize
Media_TRotate
Media_TScale
Media_TSkew

Script Steps

Copy Item
Create Alias
Create Folder
Delete Item
Export Field
Get Default Folder
Get Item Property
Move Item
Open Item
Rename Item
Set Default Folder

Sound Functions

Media_Amplify
Media_AppendSound
Media_ConvertSound
Media_CreateSound
Media_DrawWaveform
Media_ExtractSound
Media_FadeSound
Media_GetMetadata
Media_GetSoundInfo
Media_InsertQuickTime
Media_ListSoundOutputFormats
Media_MixSounds
Media_Normalize
Media_PlayPause
Media_PlaySound
Media_RecordSoundFormatDialog
Media_RecordSoundStart
Media_RecordSoundPause
Media_RecordSoundStop
Media_SetMetadata
Media_SoundFormatDialog
Media_StopSound

Video Functions

Media_GetVideoInfo

Footer

Let’s get started on your project.

Get in touch

  • Plugins
  • Services
  • About
  • Store

Copyright ©2006-2020 by 1stplugins, s.r.o. All rights reserved.