Skip to content

Add Save a Copy as XML translator to fm_xml_to_snippet#38

Open
kirkabowman wants to merge 1 commit into
petrowsky:mainfrom
kirkabowman:feat/save-copy-as-xml-translator
Open

Add Save a Copy as XML translator to fm_xml_to_snippet#38
kirkabowman wants to merge 1 commit into
petrowsky:mainfrom
kirkabowman:feat/save-copy-as-xml-translator

Conversation

@kirkabowman
Copy link
Copy Markdown

Summary

Hand-coded translator for the Save a Copy as XML script step. The generic translator falls short on this step in two ways:

  • UniversalPathList's text type doesn't reach into the <Location> child element, so the path is dropped
  • The Boolean Option produces no <Option state=...> branch in the generic path

The new tx_save_copy_as_xml correctly emits all three params (Option, UniversalPathList, Calculation) so converted scripts round-trip cleanly.

Test plan

  • Round-trip a script containing Save a Copy as XML through fm_xml_to_snippet.py and paste back into FM; confirm path, window calc, and Automatically Open option all survive

🤖 Generated with Claude Code

The generic translator drops UniversalPathList (its text type doesn't
reach into <Location>) and ignores the Boolean Option (no branch),
producing incomplete output. Hand-coded translator emits Option,
UniversalPathList, and Calculation correctly.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant