Skip to main content
Inspiring
October 3, 2022
Question

Action to Script Error Corrections

  • October 3, 2022
  • 2 replies
  • 376 views
Please download the attached file to view this post
This topic has been closed for replies.

2 replies

Chuck Uebele
Community Expert
Community Expert
October 3, 2022

Yea, looking at this makes my head spin. I too think it would be easier to use scriptListener and just redo the action step and have scriptListener record the code.

Stephen Marsh
Community Expert
Community Expert
October 3, 2022

Perhaps try using xtools to convert rather than jam. Sometimes it is just better/easier to write the script from scratch.

UnavowedAuthor
Inspiring
October 4, 2022

I tried but there's so many steps. Basically the steps at the bottom from the lotofcode function down is what needs to be recreated 

Stephen Marsh
Community Expert
Community Expert
October 4, 2022

The length of code is a trade-off for converting an action. Your post above is 2013 lines, the xtools conversion may be more or less.

 

If you want short legible code, code it manually from scratch using DOM code.

 

If you want it short but you can't code, then use the SL plugin to copy the recorded AM code manually one step at a time, only using the workable bits of code (as SL often creates non-usable code chunks around usable code chunks). You can use the Clean SL script to reduce the length of the raw recorded code and create functions, allowing you to call the functions from say the top of the code, with the functions below, helping with legibility.