🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: adobe.photoshop.scripting
7 messages
7 total messages Started by Prabudass Fri, 13 Mar 2009 12:46
Error to execute the script through command prompt
#127
Author: Prabudass
Date: Fri, 13 Mar 2009 12:46
10 lines
920 bytes
I tried to execute the script through command prompt. I got some following error. Could you please advice me how to rectify this.

cscript D:\JS\Test.js
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.

D:\JS\Test.js(1, 1) Microsoft JScript runtime error: 'app' is undefined.

Thanks,
Prabudass
Re: Error to execute the script through command prompt
#133
Author: Michael_L_Hale
Date: Sat, 14 Mar 2009 02:18
1 lines
769 bytes
You need to associate the .jx extension with Photoshop or change the ext to .jsx
Re: Error to execute the script through command prompt
#134
Author: Prabudass
Date: Sat, 14 Mar 2009 12:47
1 lines
715 bytes
I need to run javascript(.js) for "photoshop cs". Could you please advice me and also kindly provide me any samples.
Re: Error to execute the script through command prompt
#135
Author: Michael_L_Hale
Date: Sat, 14 Mar 2009 14:59
5 lines
1339 bytes
I haven't use CS for quite some time and file associations may not work with the command prompt.

You can try using Windows Explorer to browse to a .js file then right click on that file. From the popup menu choose Open With. Even if you see Photoshop in the file list choose Browse at the bottom. Browse to Photoshop and make sure to check 'Always use selected program...'

If that doesn't work you will need to create an action that runs your script and make a droplet from that action. You can then use the droplet in the command prompt. You may also need to create a 'dummy' image file to launch the droplet with if you script doesn't require an open document at startup. See <http://www.ps-scripts.com/bb/viewtopic.php?t=967>
Re: Error to execute the script through command prompt
#136
Author: Prabudass
Date: Sat, 14 Mar 2009 15:28
1 lines
696 bytes
Could you please advice me how to create a droplet?
Re: Error to execute the script through command prompt
#137
Author: Michael_L_Hale
Date: Sat, 14 Mar 2009 16:07
1 lines
849 bytes
Choose File-Automate-Create Droplet. From the dialog choose the action that runs your script. For most scripts you can leave all the play options unchecked. If you script doesn't save the document you can set the destination options if you like.
Re: Error to execute the script through command prompt
#146
Author: Prabudass
Date: Mon, 16 Mar 2009 12:52
1 lines
620 bytes
Thanks for your help.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads