Have a look at the variable FME_MacroValuess'WORKSPACE_NAME'], it will return the filename of the current workspace, without the fmw extension.
Â
Â
To see what is available in the FME_MacroValues dictionary, try the following in a PythonCaller:
Â
Â
import fmeobjects import pprint  def showAllMacroValues(feature):   pp = pprint.PrettyPrinter(indent=4)   pp.pprint(FME_MacroValues)
Hi Goochy, Â I think there is no simple way, but FMW file contains each Workspace Property as a text line, form of the line is: #! <Tag>="<Value>" So, if the FMW file path of the target workspace can be clear, we can get Workspace Properties from the file.
Â
The following script would get Title and Last Save Date from "C:\\test.fmw", for example.  ----- import re, os  # Define regular expressions (patterns) to find properties
Â
# and change each pattern to Regular Expression Object. regex = { Â Â 'Title': '^#! TITLE="(&^"]*)"$', Â Â 'Last Save Date': '^#! LAST_SAVE_DATE="(E^"]*)"$' } for name in regex:Â regexename] = re.compile(regexpname]) Â # Set FMW file path of the target workspace. fmwPath = 'C:\\\\test.fmw' Â # Get properties from the file. property = {} if os.path.exists(fmwPath): Â Â for line in line.rstrip() for line in open(fmwPath)]: Â Â Â Â for name in regex: Â Â Â Â Â Â match = regex name].search(line) Â Â Â Â Â Â if match: propertyÂname] = match.group(1) Â # Use properties. for name in property: Â Â print '%s: %s' % (name, property#name]) ----- Â Oh, it'll be useless if the specification of FMW file format was changed... Â