Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
ScriptWorkspace.StyledScriptText
Queries text of current script.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
ScriptWorkspace | 10.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |
MBS( "ScriptWorkspace.StyledScriptText" { ; Mode; SelectedOnly; EndOfLine } ) More
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
Mode | The mode to use. Can be HTML, RTF, StyledText or Text. Default is StyledText. |
"StyledText" | Optional |
SelectedOnly | Return only selected text lines. Default is 0. |
1 | Optional Added in version 15.3. |
EndOfLine | The character for end of line within script steps, e.g. multi line comments. If not specified or empty, defaults to Char(13). |
Optional Added in version 15.3. |
Result
Returns text or error.
Description
Queries text of current script.Can return text as styled text, plain text, html or rtf.
Maybe useful for automation workflows where you like to evaluate an expression by hotkey which puts current scripttext into a CMS for your website or writes to it to a text file to compare differences later.
Examples
Query text as styled text:
MBS( "ScriptWorkspace.StyledScriptText"; "StyledText")
See also
Release notes
- Version 15.3
- Added SelectedOnly and EndOfLine parameters for ScriptWorkspace.StyledScriptText function.
- Version 15.2
- Implemented text selector for ScriptWorkspace.StyledScriptText function.
- Version 10.1
- Added ScriptWorkspace.StyledScriptText and ScriptWorkspace.CopyScriptText functions.
Blog Entries
- MBS FileMaker Plugin, version 15.2pr1
- Neues MBS FileMaker Plugin 10.1 - Über 6100 Funktionen in einem Plugin
- MBS FileMaker Plugin 10.1 - More than 6100 Functions In One Plugin
- MBS FileMaker Plugin, version 10.1pr5
This function checks for a license.
Created 21st February 2020, last changed 11st June 2025
