Skip to main content
Inspiring
October 16, 2022
Question

convert an action to script

  • October 16, 2022
  • 1 reply
  • 4483 views

hi every body i use an script with an action,because i don t know how to write this action properly into scritp for work

 

 

my problem is this action work on 99% file, and i don t know why 1% create an error, and oblige me to click during the script (mean pause the scritp)

 

all my mockup file have the same layer name, i don t know why every time the same file stop action

 

this active document for exmple is "corrupted"

This topic has been closed for replies.

1 reply

c.pfaffenbichler
Community Expert
Community Expert
October 16, 2022

Try ActionToJavascript from xbytor’s xtools: 

https://ps-scripts.sourceforge.net/xtools.html

Stephen Marsh
Community Expert
Community Expert
October 19, 2022

Try this updated link to the latest 2.3 version rather than the 1.5 linked above:

 

https://sourceforge.net/projects/ps-scripts/files/xtools/v2.3/

Inspiring
October 20, 2022

If you share a link to the ATN file, I'll convert it for you.

 

Otherwise, you may be better off using the scripting listener plug-in to record the code. Don't expect it to record the action steps, it doesn't. Just manually recreate each step of the action and copy/paste the appropriate block of code form the log file, being careful not to copy unnecessary code blocks such as auto saves.


atn file? i will search

 

actually i play action into my scropt, it work a 90%, but i don t know why 10% file require my action for click