Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.5
10.0
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
Statistic
FMM
Blog
Extracts one file and returns as container.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Archive | 10.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example | Flags |
---|---|---|---|
Archive | Either container with archive or native file path. | "C:\test\test.zip" | |
FilePath | The path name of the file within the archive. | "test/test.jpg" | |
Passphrase | Password to use for the archive. | Optional | |
New file name | The new file name to use for container. Default is to use name of the item in the zip archive. |
Optional |
Returns container or error.
Extract one PDF file:
Set Field [ Contacts::Photo Container ; MBS( "Archive.ExtractFile"; "/Users/cs/Desktop/Archiv.zip"; "test40.pdf") ]
Show version number of MBS plugin in Mac container:
# New Script in file Install Plugin Update if needed
# extract info file with metadata
Set Variable [ $InfoFile ; Value: MBS( "Archive.ExtractFile"; Install Plugin Update if needed::Plugin File Mac; "MBS.fmplugin/Contents/Info.plist" ) ]
# get it as text
Set Variable [ $InfoText ; Value: MBS( "Container.GetText"; $InfoFile; "FILE") ]
# query version entry in XML
Set Variable [ $version ; Value: MBS( "XML.GetPathValue"; $InfoText; "plist.dict.string[6]") ]
Show Custom Dialog [ "Version of MBS Plugin" ; $version ]
Extract Mac version number via RegEx:
# extract info file with metadata
Set Variable [ $InfoFile ; Value: MBS( "Archive.ExtractFile"; Install Plugin Update if needed::Plugin File Mac; "MBS.fmplugin/Contents/Info.plist" ) ]
# get version as text
Set Variable [ $version ; Value: MBS( "RegEx.Extract"; $infoText; "<key>CFBundleVersion</key>\s*<string>(.*)</string>"; "\1"; "greedy, caseless" ) ]
Show Custom Dialog [ "MBS Version" ; $version ]
Created 7th September 2020, last changed 19th April 2021
Archive.Extract - Archive.FileList
Feedback: Report problem or ask question.