Copy link to clipboard
Copied
Hi there,
I've made a couple of actions before but I'm out of my depth when it comes to scripting.
I have a bunch of files saved that need to be converted from Profoto RGB to Adobe RGB and then moved across the network to my printer output file with the same folder name and delete the original set from the desktop.
I've written an action that will convert the colourspace of the file to my output colourspace and save the file in the same location.
I then created a droplet so I can quickly run this action on everything in the folder.
From what I understand I need to create a script to save these files to the destination folder -
They are coming from:
C:\Users\Cal\Desktop\Print\[ORIGINAL_FOLDER_NAME]\ (jpgs or tiffs)
to
\\EpsonPrint\Print\[ORIGINAL_FOLDER_NAME]\
I will then invoke this script from the original action by inserting a menu step.
If there is another way of doing this please let me know.
Thanks in advance,
Caleb.
Copy link to clipboard
Copied
When it come to computers there are alway more then one way to do things. An action can be created to do something simple then bacthed with menu File>Automate>batch set up the dialog to process a folder of files and have the converted files be saved to a different desternation.
I do not think that it is posible to delete files in an action however. Even a Photoshop script would need to use file system operations to delete files for Photoshop does not have function to deleted files. Photoshop is a Document editor not a file editor. Yes it can save files.
You have acconplished what you want to do with the exception placing the converted files where you want them and deleting the original files. You do not need Photoshop to complete what you want to do its a simple file move operation. You know cut and paste. In fact the desternation could be remote and with the windows file explorer and Internet explorer you can FTP the files to the remote location using drag and drop. I would first make sure the files were FTPed before deleting the local file in the FTP case. In fact if you can map (net use) the remote file system r/w all you need to use is File explorer to drag and drop the files.
Copy link to clipboard
Copied
Thanks for taking the time to respond -
I have found someone that has implemented a delete using javascript
-----> http://www.kirupa.com/motiongraphics/scripting6_4.html
This uses the > fileref.remove() < function -
So I'm guessing it is possible to do the delete - there is not alot of documentation on this function.
Even with the delete aside - I would still like to be able to do something like this without using the file browser:
return the folder name of an open file
hold this name (string) as variable x
save the file to a new location C:\x
save the file to backup D:\x
save the file to ftp in folder x
Photoshop can read files and can save them to a specific destination - it knows the path of the filename.
The request above is just a simple example so that I can hopefully expand on the code to add the extra functionality that I need.
Regards,
Caleb.
Copy link to clipboard
Copied
Yes that is what I wrote you would need to use file system function not photoshop function to delete files. If you want you can learn javascript, Adobe Document Object Model and the Photoshop plugin Scriptlistner. You will then be able to program a Photoshop script to do exactly what you want to do. Your other choice is do what you do now and then use the Windows file explorer to display your desktop folder do a ctrl-a to select all files in the folder right click in the hilighted files area and click on cut then display your printer folder in the file explored and right click in the file area and click on paste to move the files to there. The choice is yours.
Copy link to clipboard
Copied
So are you going to actually help or just tell me what I already know and continue to be condescending?
Copy link to clipboard
Copied
I can tell you that on a windows system Photoshop scripting guides are installed in C:\Program Files\Adobe\Adobe Photoshop CS5\Scripting\Documents there are also many examples of scripts code posted in this forum for processing folders of files and saving files. The best Javascript reference book is http://shop.oreilly.com/product/9780596101992.do JavaScript: The Definitive Guide, Fifth Edition. If you have problems with your code you can ask for help here. There also is PS-Scripts: Photoshop Scripting Community where you can ask for help.. Also the ExtendScript Toolkit "C:\Program Files\Adobe\Adobe Utilities\ExtendScript Toolkit\ExtendScript Toolkit.exe" is installed on your system you can edit and debug your script using it. Any part you have trouble codeing someone before you most likley also had a problem coding and have asked for help with the code. To get a fast answer use search. If you consider this to be condescending I'm afraid I can not help you. I'm a script hacker I search and find and try things. There are some professional programmers like Paul and Michael here they will go out of ther way to help you. If you want to develope a script you need to put in some work learn some programming or pay a programmer to develop what you want. Also it may make things a little easier if you set up a RW net share for your printer folder and map it to a drive letter so you can code the script as though they are local files rather then having to deal with unc names.
Copy link to clipboard
Copied
You can create, rename, copy, and delete files and folders using Extendscript. The documentation for File and Folder object are in the JavaScript Tools Guide, which should be in a subfolder where ExtendScript Toolkit is installed.
I'm just not sure how this would work with a droplet or over a network.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now