A single JS script can perform actions on files I and Ps?

I'm pretty new with the Adobe extended Script thing, but I have a good understanding of the JS language and scripts.
The task I need to perform should look like this:

-export a .jpeg of AI
-Open a pre-existing Ps file
-import the exported .jpeg
-perform actions and save

One script do all the work?
If so, is it enough to just start photoshop, maybe #targeting it?

Thanks for the support, this will help a lot to simplify things in my studio.

There are examples on the Forum, perhaps they can help you:

I want to know how to use the 'bridge to talk. "

Tags: Photoshop

Similar Questions

  • I can't rename my files photo and document from one month. What happened and how can I solve this problem?

    I can't rename my files photo and document from one month. What happened and how can I solve this problem?

    Hi robertjefferies,

    You get the error message?

    Method 1: Run the fixit available in the links below and check if that makes a difference-Worth to try
    Diagnose and repair Windows files and folders problems automatically

    Method 2: Start the computer in safe mode, and then check. To do this, follow the steps below:

    Access Advanced Startup menu options by turning on your computer and pressing the button F8 continuously until Windows starts. In the boot advanced options, select Mode safe

    Startup options (including safe mode)

    http://Windows.Microsoft.com/en-us/Windows-Vista/advanced-startup-options-including-safe-mode

    Let me know if the problem persists in this mode

  • Why I can still see the files deleted and renamed on a shared directory?

    Why I can still see the files deleted and renamed on a shared directory, but my co-workers can't see them? Is there a setting on my pc that I need to change?

    Hello
     
     
    Thanks for posting your question in the Microsoft Community.
     
     
    The question you posted would be better suited in the TechNet Forums.
     
    I would recommend posting your query in the link below.
     
     
    I hope that the information above helps you.
  • Cannot perform action locks file is opened in Microsoft Office Excel

    I am trying to remove an addin in the add-in file and I get an error message that the file is open in Excel.    There is no open excel file.    The add-in does not work when there is an open excel file.   I suspect that there is a problem with the add-in because there is a copy of the file with a ~ in front of the name.  I would remove both copies and replace the add-in with a new copy, but I get an error message "Could not perform the action locks file is opened in Microsoft Office Excel".

    How can I delete the problem?

    I am trying to remove an addin in the add-in file and I get an error message that the file is open in Excel.    There is no open excel file.    The add-in does not work when there is an open excel file.   I suspect that there is a problem with the add-in because there is a copy of the file with a ~ in front of the name.  I would remove both copies and replace the add-in with a new copy, but I get an error message "Could not perform the action locks file is opened in Microsoft Office Excel".

    How can I delete the problem?

    Start in safe mode, it delete them.

  • How can I save my files? and which ones? I need to reinstall windows xp pro

    but I have a lot of problems on my current xp pro. problems of windows registry problems. I used to save those I do? Ty

    but I have a lot of problems on my current xp pro. problems of windows registry problems. I used to save those I do? Ty

    Manually copy on an external support everything you find important:

    • Documents
    • Photos
    • Music
    • Worksheets
    • Databases
    • E-mail
    • Contacts
    • PDF file
    • Text documents
    • Executables of installation you want to re - install
    • Saved games of one kind or another
    • Scripts, you wrote & use
    • Internet favorites/bookmarks
    • List of hardware devices so you can get the appropriate device drivers to install
    • List of installed software to let you know that you will have to re - install
    • List serial numbers and product keys, so you can keep things registered
    • etc.

    Can print a copy of a Belarc Advisor free report to help with a lot of this.

  • I can search for a file "xyz" and find everything BUT the file I want. This happens even when I know that the file exists.

    I try to search for a file... choose any file name... like 'cat' but get everthing that doesn't even look like a cat.  I can get a list of files of a thousand, but anything containing same cat in the filename OR in the file. No idea what I am doing wrong?

    John

    Hello

    "Maybe" there is something in the search Index that is causing a problem or try the advanced options
    Search.

    Windows Search does not work or research are slower
    http://support.Microsoft.com/GP/windows_search

    Troubleshooting Windows Vista search & indexing errors
    http://www.WinVistaClub.com/T24.html

    Reconstruction of the Index in Windows Vista
    http://www.howtogeek.com/HOWTO/Windows-Vista/rebuilding-the-search-index-in-Windows-Vista/
    How to enable or disable the search Index in Vista
    http://www.Vistax64.com/tutorials/69564-index-enable-disable.html
    Improve Windows searches using the index: frequently asked questions
    http://Windows.Microsoft.com/en-us/Windows-Vista/improve-Windows-searches-using-the-index-frequently-asked-questions

    ================================

    Tips for finding files
    http://Windows.Microsoft.com/en-us/Windows-Vista/tips-for-finding-files

    How to use advanced search in Vista Options
    http://www.Vistax64.com/tutorials/75451-advanced-search.html

    How to restore the page button on the Start Menu after installing Vista SP1
    http://www.Vistax64.com/tutorials/145787-Search-start-menu-button-restore-after-SP1.html

    How to restore the context Menu item search after installing Vista SP1
    http://www.Vistax64.com/tutorials/134065-search-context-menu-item-restore-after-Vista-SP1.html

    How to create a shortcut on the desktop search in Vista
    http://www.Vistax64.com/tutorials/126499-search-desktop-shortcut.html

    ----------------------------------------------------------

    Win Key F opens advanced search

    Searching in Windows Vista, part 1
    http://Windows.Microsoft.com/en-us/Windows-Vista/searching-in-Windows-Vista-part-1-secrets-of-the-search-box

    Part 2
    http://Windows.Microsoft.com/en-us/Windows-Vista/searching-in-Windows-Vista-part-2-Start-menu-and-control-panel-search-tips

    Part 3
    http://Windows.Microsoft.com/en-us/Windows-Vista/searching-in-Windows-Vista-part-3-using-advanced-search-for-those-hard-to-find-files

    I hope this helps.

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

  • How can I take two files have and combine them?

    I have two different files and I would like to become a... How do I do that?

    Select all in a single file

    Open the other file

    Check the "paste remembers layers" in the layer panel menu

    Dough.

  • Safeguarding of documents through scripting: name of the active file Get and set save path/file type

    I am writing a script that will:

    -Do all the invisible layers

    -Make the layer visible ' background'

    -Remove all the invisible layers

    -Save the document as EPS file (leaving the original intact)

    I am new to scripting and I based my script by copying the code of other scripts.

    Here is my code:

    var doc = app.activeDocument;

    var name = doc.name;

    hide var = function () {/ / hide all layers (based on http://forums.adobe.com/thread/644267( )}

    var L = doc.layers.length;

    for (j = 0; j < L; j ++) {doc.layers [j] .visible = false ;}

    }

    masquer();

    loop through all layers

    for (var i = 0; i < doc.layers.length; i ++) {}

    Create the illusrtratorSaveOptions object to set options to HAVE

    var saveOpts = new IllustratorSaveOptions();

    Definition of the IllustratorSaveOptions properties.

    saveOpts.embedLinkedFiles = true;

    saveOpts.fontSubsetThreshold = 0.0

    saveOpts.pdfCompatible = true

    Implemented Variable for the name of the access layer

    var currentLayer = app.activeDocument.layers [i];

    Loop through the layers and make the background layer visible

    If (currentLayer.name == 'Background') {}

    docName = name + currentLayer.name + ".eps";

    currentLayer.visible = true;

    }

    }

    / / Remove the invisible layers (based on http://www.cartotalk.com/index.php?showtopic=7491( )

    var myDoc = app.activeDocument;

    var layerCount = myDoc.layers.length;

    for (var ii = layerCount - 1; ii > = 0; ii-) {}

    var currentLayer = myDoc.layers [ii];

    currentLayer.locked = false;

    var subCount = currentLayer.layers.length;

    for (var subCount - 1; ss = ss > = 0; ss-) {}

    Underlayment var = currentLayer.layers [ss];

    subLayer.locked = false;

    If (subLayer.visible == false) {}

    subLayer.visible = true;

    subLayer.remove ();

    }

    }

    If (currentLayer.visible == false) {}

    currentLayer.visible = true;

    currentLayer.remove ();

    }

    }

    Save the document with a new name

    var saveName = new queue (doc.path + "/" + Nomdoc);

    doc.saveAs (saveName, saveOpts);

    Everything works well except:

    (1) it saves the document under the name of AdobeIllustratorBackground rather than the name of the document

    In addition, I don't know how to tell the script to save in EPS and specify the save location.

    Could someone give me some advice?          Thank you!

    There is an example script in Adobe Illustrator Scripting/CSx/Sample Scripts/JavaScript/miscellaneous/Save as PDF that has all the parts except the EPS Options.

    Go here for the script Guides and references.

    http://www.Adobe.com/devnet/Illustrator/scripting.html

  • He can't save images/files DVD and CD__Do I need a "third party" to do the job properly?

    Hello:

    XP with SP3

    For the past few weeks, I tried to save Photoes and files in DVD - R or a CD, but I get message 'error' whenever I try to save,... error message popping up in the middle of the screen,... "there are some problems or similar phrases with his background, 'Retry', ' jump, and 'Cancel'."

    My question is;

    How to save photoes and files in DVD - R or a CD successfully?  This is XP/SP3.

    Do I need to buy a third-party to record these photoes and folders?

    Thanks for any help on this, above.

    Hello:

    XP with SP3

    For the past few weeks, I tried to save Photoes and files in DVD - R or a CD, but I get message 'error' whenever I try to save,... error message popping up in the middle of the screen,... "there are some problems or similar phrases with his background, 'Retry', ' jump, and 'Cancel'."

    My question is;

    How to save photoes and files in DVD - R or a CD successfully?  This is XP/SP3.

    Do I need to buy a third-party to record these photoes and folders?

    Thanks for any help on this, above.

    Hi, I use picasa3 to store, view and difficulty and save photos on dvd free etc.its.

  • I can't open the files .jmp and .mtw.

    I am directed to sites that offer free analyses and then sell to the bottom of charges to repair windows for me. What are safe and loads websites?

    minitab cd comes in the mail this afternoon.

    I guess it was on back order. I'll give it a try.

    Thanks for your help.

  • How can I restore my docs, photos and music to back up an external hard drive?

    I had to reset my Dell Dimension E521 to factory settings.  Before I did, I copied all my files, photos and music on a portable hard drive Western Digital.  How can I get my files, photo and music restored to my PC?  I tried to copy it to the PC, but I found myself with backup file 1 to 141 of backup file.  And they are all zipped.

    Hello

    1. which version of the Windows operating system is installed on your computer?

    2. have you created a backup drive or just copied the files to a disc?

    3. How do you back up files? (Simple copy and paste or use any software)

    I suggest you to refer to the following Microsoft article and check if it helps.

    Restore files from a backup:

    For Windows 7: http://windows.microsoft.com/en-US/windows7/Restore-files-from-a-backup

    For Windows Vista: http://windows.microsoft.com/en-US/windows-vista/Restore-files-from-a-backup

    Please provide us with more information, so that we could help you to solve the problem.

  • How can I delete a file infected computer?

    Original title: need serious help please!

    right Ive just made a virus on my computer scan and it came with this file as an infection

    Memory usage"\GLOBAL? \408a5714\Windows\$NtUninstallKB6046$\1082808084\Desktop.ini a variant of Win32/Sirefef.EZ Trojan horse
    but the thing is when I try to find it, I can't find the file anywhere and I don't have to where it could be then I could perhaps try to delete the file or maybe clean like I don't know even what might be the file
    Please im begging for help from someone
    Thank you
    Alex Minuti

    Sirefef is a very harmful infection with many variations.  It sounds like your computer may have a rootkit.   The two programs recommended by Shenan Stanley are good and worth running since you probably have multiple infections, but it is unlikely that they will remove Sirefef.

    I suggest that you run these two tools
    Windows Defender in offline mode
    http://Windows.Microsoft.com/en-us/Windows/what-is-Windows-Defender-offline

    Also TDSS Killer
    http://support.Kaspersky.com/5353?El=88446

    Note that once the infection is removed, it is very likely that additional repairs will be needed. Sirefef often removes some registry keys that affect the Windows Firewall and some services.

  • I can't open my file, photos

    I can't open my file, photos and something appeared "ADOBE ACROBAT READER DC CANNOT OPEN"DSC_01.JPG"BECAUSE IT IS EITHER NOT SUPPORTED FILE TYPE or because THE FILE THAT has BEEN DAMAGED (for EXAMPLE, IT WAS SENT as a YEAR E-MAIL ATTACHMENT d has not been DECODED CORECTLY').

    If you have only the free Adobe Reader (Acrobat Reader) there is nothing with the file. Adobe Reader does not open JPEG files, so the solution is not to do so. Open them in a JPEG Viewer.

  • can perform us two actions with a single button in two clicks, one after the other?

    Mr President.

    can perform us two actions with a single button in two clicks, one after the other?

    I want that when I click on the button Add once it add data to the database and when I click again on this button it clears the form data to the empty fields.

    Concerning

    Tanvir

    In the code, it should be easy.

    The following code adds that a button called butman with text 'ADD '.
    It then registers a listener that will be called if the user clicks the button.

    This listener then calls the runAddData method if you clicked butman while it contained the text of "ADD" and it calls the runClearData method otherwise.
    That's why he will swap the functionality of the button between ADD and CLEAR on each click.

    final Button butman = new Button("ADD");
    butman.setOnAction(new EventHandler() {
              @Override
              public void handle(ActionEvent t) {
                        if (butman.getText().equals("ADD")) {
                                  butman.setText("CLEAR");
                                  runAddData();
                        } else {
                                  butman.setText("ADD");
                                  runClearData();
                        } // END IF-THEN
              }});
    

    I hope that's what you wanted.

    Further reflection.
    You might want to run the ADD and CLEAR methods in their own son so that it can run in the background without slowing down your user interface.

    I also reuse rather a single button for several features instead of to apply with hundreds of nodes used only rarely with masses of code to show and hide as needed.

  • Java Script to perform a different Action based on the Orientation of the Image

    I need help creating a Java Script to perform a different action based on image orientation landscape vs. portrait. Can someone help me in this task.

    Thank you

    The Wookiee

    That should do it.

    docRef = app.activeDocument;

    If (docRef.width > docRef.height) doAction ("Action of landscape", "action group '");

    another action ('Portrait Action', 'Action Group');

Maybe you are looking for