Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Adds a container value to the current archive.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Archive | 13.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example | Flags |
---|---|---|---|
Container | The container to compress. We take the file name from container. |
||
FileName | The file name to use. May contain relative path parts. Pass empty to take file name from container. |
"Documents/test.txt" | Optional |
TimeStamp | Available in MBS FileMaker Plugin 14.0 or newer. The timestamp to use in the archive for the file. Can be empty to use today. |
"" | Optional |
Returns OK or error.
Compress PDF containers into a zip file:
Set Variable [ $path ; Value: MBS( "Path.AddPathComponent"; MBS( "Folders.UserDesktop" ); "test.zip" ) ]
Set Variable [ $r ; Value: MBS( "Archive.Create"; "zip"; "deflate"; $path) ]
If [ MBS("IsError") ]
Show Custom Dialog [ "Failed to create zip archive." ; $r ]
Exit Script [ Text Result: ]
End If
#
Go to Record/Request/Page [ First ]
Set Variable [ $destPage ; Value: 1 ]
Loop
Set Variable [ $r ; Value: MBS( "Archive.AddContainer"; Merge PDFs::InputPDF) ]
Go to Record/Request/Page [ Next ; Exit after last: On ]
End Loop
Set Variable [ $r ; Value: MBS( "Archive.Close") ]
This function checks for a license.
Created 13th February 2023, last changed 5th January 2024
Applescript.DeterminePermissionToAutomateTarget - Archive.AddFile