0
How to call the photoshop action file?
Community Beginner
,
/t5/photoshop-ecosystem-discussions/how-to-call-the-photoshop-action-file/td-p/1088491
Aug 28, 2008
Aug 28, 2008
Copy link to clipboard
Copied
I need to know how to call the photoshop action file(*.atn) through javascript. Kindly advice me.
TOPICS
Actions and scripting
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Explore related tutorials & articles
Community Expert
,
/t5/photoshop-ecosystem-discussions/how-to-call-the-photoshop-action-file/m-p/1088492#M448404
Aug 30, 2008
Aug 30, 2008
Copy link to clipboard
Copied
Im not experienced at Scripting, so I probably wont be any help anyway, but what exactly are You trying to achieve?
And could Xbytors ActionSetRunner be any help to You?
http://www.adobeforums.com/webx/.59b55567
And could Xbytors ActionSetRunner be any help to You?
http://www.adobeforums.com/webx/.59b55567
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Explorer
,
/t5/photoshop-ecosystem-discussions/how-to-call-the-photoshop-action-file/m-p/1088493#M448405
Aug 30, 2008
Aug 30, 2008
Copy link to clipboard
Copied
Prabudass@adobeforums.com wrote:
> I need to know how to call the photoshop action file(*.atn) through javascript. Kindly advice me.
You can use app.load() to load action files into the Actions Palette.
You can use app.doAction() to run a specific action in the palette.
If you want to run a specific action from an atn file without loading it into
the palette, it can be done using code found in my xtools library but it is not
necessarily an easy or wise thing to do.
If you want to run all action in an action set, the ActionSetRunner script
referred to previously would do the trick.
-X
--
for photoshop scripting solutions of all sorts
contact: xbytor@gmail.com
> I need to know how to call the photoshop action file(*.atn) through javascript. Kindly advice me.
You can use app.load() to load action files into the Actions Palette.
You can use app.doAction() to run a specific action in the palette.
If you want to run a specific action from an atn file without loading it into
the palette, it can be done using code found in my xtools library but it is not
necessarily an easy or wise thing to do.
If you want to run all action in an action set, the ActionSetRunner script
referred to previously would do the trick.
-X
--
for photoshop scripting solutions of all sorts
contact: xbytor@gmail.com
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
New Here
,
/t5/photoshop-ecosystem-discussions/how-to-call-the-photoshop-action-file/m-p/1088494#M448406
Oct 06, 2008
Oct 06, 2008
Copy link to clipboard
Copied
xbytor:
Thanks for the information on calling an action. I'm new to JavaScript as well and still don't have a good grasp on scripting or syntax.
I now able to call an Action from the Actions Palette with your help from above but I'm still having a problem getting a script to load an Action into the Actions Palette.
Example: app.doAction('Action Set', 'Action')
Could you provide an example script for loading an Action? I've attempted to load an action using several versions of a script, including one version which included a path to the folder without any luck.
I can't find a reference to "app.load" in either the Photoshop CS3 Scripting Reference or the Javascript Bible, Gold Edition; are there any other resources I should be getting?
Thanks for the information on calling an action. I'm new to JavaScript as well and still don't have a good grasp on scripting or syntax.
I now able to call an Action from the Actions Palette with your help from above but I'm still having a problem getting a script to load an Action into the Actions Palette.
Example: app.doAction('Action Set', 'Action')
Could you provide an example script for loading an Action? I've attempted to load an action using several versions of a script, including one version which included a path to the folder without any luck.
I can't find a reference to "app.load" in either the Photoshop CS3 Scripting Reference or the Javascript Bible, Gold Edition; are there any other resources I should be getting?
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Explorer
,
LATEST
/t5/photoshop-ecosystem-discussions/how-to-call-the-photoshop-action-file/m-p/1088497#M448410
Oct 06, 2008
Oct 06, 2008
Copy link to clipboard
Copied
If you want to load an action (.atn) file into the Actions Palette, you'll need
to do something like this:
app.load(File("~/my-actions.atn"));
Then you can call the actions with app.doAction.
-X
to do something like this:
app.load(File("~/my-actions.atn"));
Then you can call the actions with app.doAction.
-X
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Expert
,
/t5/photoshop-ecosystem-discussions/how-to-call-the-photoshop-action-file/m-p/1088495#M448408
Oct 06, 2008
Oct 06, 2008
Copy link to clipboard
Copied
The example you gave has the order backwards. It should be app.doAction ('Action', 'Action Set')
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
New Here
,
/t5/photoshop-ecosystem-discussions/how-to-call-the-photoshop-action-file/m-p/1088496#M448409
Oct 06, 2008
Oct 06, 2008
Copy link to clipboard
Copied
My mistake Larry, I had it right in my script but misstated it in my post.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

