• 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

Export Field

Export Field [ Result ; Field ; Destination ; Replace ]

Export Field exports field contents as an external file.

Parameter Description
Result An optional target field to receive any error. Will be left empty when there is no error.
Field The field containing the image, sound, file, text, or reference to export.
Destination A full file path, or partial file path that picks up with the default path. If the source is a reference, then the destination can be a path to a folder; otherwise, it must be a path to a file.
Replace Set to “Yes” if you want to replace an existing file with the same name. If “No” (default), an error will be returned if the target file already exists.

Export Field is a universal script step for exporting any type of container or text field to a file.

File Name Extension

In most cases you do not need to know or specify the file extension in advance.

If the destination extension is not specified in the filename portion of filepath parameter, MediaManager will use the following logic:

  • If the contents of a text field are being exported, a text file (.txt) will be created.
  • If the source is a reference within a container, the extension of source file is used.
  • If the source is stored directly in a container field and is a recognized data type, the appropriate extension is used.
  • If the source is not a recognized type, no extension is placed on the destination file name.

If the destination extension is specified, it is used.

If the source is a container reference to another file, you can specify a folder destination without a file name. In that case the referenced file is copied to the destination folder using its original name.

Exported Image Format

When exporting images that have been manipulated by other functions resulting in MMIM format (see the Displayed Image Formats section), convert the image to a standard image type before exporting. MediaManager will give an error if you attempt to export from a container field that holds only an MMIM image.

Container Field Text Note

After using the “Insert Picture” (or QuickTime) command by reference, the container field is temporarily of type text immediately afterwards. Export Field will export the text (a file path) rather than the referenced file itself. If you manually click out of the container filed or use the Commit Record script step, the container field contents are then converted to the correct type.

Returns

Empty string when no error is detected; otherwise error text is returned to the response field.

Examples

To export a JPEG image from a container field named “Picture 1” to the desktop with a file name of “exported image.jpg”:

Export Field [ Field: MyTable::Picture 1 ;
Destination: ".D/exported image.jpg" ;
Replace: No ]

To export the image from a container field named “Picture 1” to a folder named “images” located in the current default folder:

Export Field [ Field: MyTable::Picture 1 ;
Destination: "images/exported image.jpg" ;
Replace: No ]

To export an image from a container field named “Image” to the current default folder and using the contents of a field named “Image Title” as the file name:

Export Field [ Field: MyTable::Image ;
Destination: MyTable::Image Title ;
Replace: No ]

To allow the user to select a destination, and then export an image using the contents of a field named “Image Title” as the file name storing any potential error into MyTable::Error:


Set Default Folder [ Where: “.U:Where to export the image to?” ]
Export Field [ Select; Result: MyTable::Error ;
Field: MyTable::Image ;
Destination: Image Title ;
Replace: No ]

To export an image, setting the replace parameter so the exported file will replace any file with the same name in the destination location:

Export Field [ Field: MyTable::Image ;
MyTable::Image Title ;
Replace: Yes ]

To export a sound from a container field named “Sound Clip” to the current default folder and using the contents of a field named “Sound Name” as the file name:

Export Field [ Select; Result: MyTable::Response ;
Field: MyTable::Sound Clip ;
Destination: MyTable::Sound Name ;
Replace: No ]

To export text from a text field named “Notes” to the current default folder and using the contents of a field named “Description” as the file name:

Export Field [ Select; Result: MyTable::Response ;
Field: MyTable::Notes ;
Destination: MyTable::Description ;
Replace: No ]

To copy an image from a Web site directly to disk, without using a container field:

Export Field [ Select; Result: MyTable::Response ;
Field: Media_InsertImage (
"https://cdn.pixabay.com/photo/2014/11/30/14/11/kitty-551554_640.jpg";
False ) ;
Destination: “.D/kitty.jpg” ;
Replace: No ]

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_SetDefaultFolder

General and Registration Functions

Media_Get
Media_GetLastError
Media_GetMouseUp
Media_JSONPath
Media_Register
Media_RegisterLicensedEncoder
Media_Set
Media_Version

Image Functions

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

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.