If the name of the document matches the regex, read actions

I am often in a situation where, after completing work on several documents open photoshop, I want to play a specific action on some of them. The name of the file ALWAYS correspond to a model that should be easy enough to match with regex. Essentially:

If the name of the document is 5 or 6 digits + 'F', read the actions.

If the name of the document is 5 or 6 figures + "FX", read for the B shares.

If the name of the document is 5 or 6 digits + 'B', read the actions.

If the name of the document is 5 or 6 figures + "BX", read for the B shares.

I believe that this requires a loop for to look through each open doc, then a if docName matches the regex, then play correct action.  But I can't put them all together and would very much help.

Thank you!

Hi squirpy,

You can use a switch box or an if else clause. There is no difference.

// be sure that action set with name actionSet exists
// be sure that action1 in action set with name actionSet exists
for(i=0; i

Have fun

Tags: Photoshop

Similar Questions

  • My macbook since a former apple ID, then I changed my name and my iphone has the new id apple - how can I change apple id name my macbook to match my iphone for home sharing?

    My macbook since a former apple ID, then I changed my name and my iphone has the new id apple - how can I change apple id name my macbook to match my iphone for home sharing?

    Thank you

    Cindy

    Welcome to the Apple community.

    You need to disconnect your old ID in System Preferences > iCloud > sign out and then sign in with your new code.

    You will also need to do this for iTunes, App Store, Messages, FaceTime, and books.

    To change your sharing settings go to iTunes > file > Colocation.

  • How can I change the name of a document

    not sure how to change the name of a document I have downloaded from the internet. I want to just save a title I'll be able to remember instead of a string of letters and numbers without meaning.

    You can use file > save as in Reader

    Also:

    How to rename a file in Windows

    How to rename files on a Mac

  • [JS]: is it all the same to change the name of a document?

    Is anyway to change the name of a document? Or create a document with a certain name?

    I'm looking at the JavaScript reference, and it is said that document.name is a readonly value. It's absolutely true / is there another way to change the name of a document?

    Any help would be appreciated

    Thank you!

    You can change the name of a document in two ways:

    1. open, save under a different name and delete the original.

    2. do not open the document, use the JavaScirpt object file to rename the document. Details are provided in the Guide JavaScript tools, accessed from your ESTK on the Help menu.

    Peter

  • How 2 search within a PDF document using the PDF reader internal Firefox

    Could not find a way to search for text in a PDF document, when it is displayed by the PDF reader integrated into Firefox.

    If there is a way, how do you?

    If there isn't a way, it seems an obvious improvement.

    Implementation of the "Find" (CTRL + F) feature usual should work within a PDF in Firefox.

  • In XP, trying to change the safe playback mode so I can open a link that is highlighted in a document that I'm reading

    try to change the mode of reading sure... so I can open a link that is highlighted in a document that I'm reading

    * original title - Manager of trust *.

    AFAICT, Manager of trust is not a part of Windows but is part of a player like Foxit Reader and Adobe Reader (protected mode) software.  Here are some links on how to disable the Mode without reading failure:

    Foxit: http://forums.foxitsoftware.com/showthread.php?27969-Foxit-PDF-in-quot-SafeMode-quot>
    Adobe <> http://kb2.adobe.com/cps/860/cpsid_86063.html >

    HTH,
    JW

  • How to connect the vCO vRO action name programmatically?

    Anyone know if we can save name of the action by programming just as a workflow name can be made, something like Workflow.action.name?  This helps identify what action the failure occurred.

    Jörg have already said, there is not such a generation - in function. However, you can use the default, that Rhino javascript engine of capabilities to achieve what you're trying to do. Use this:

    //VRO's arguments.callee.name implementation will always return the String "Module + action name".
    //We remove the "Module" prefix. Remember: while this works with vRO 6 and 7, it may stop working if the RHINO implementation changes.
    var actionName = arguments.callee.name.substr(6);
    //Keyword this represents the module this action is part of. The Module scripting object provides access to the name property.
    System.log("The currently running action is: " + this.name + "." + actionName);
    

    Concerning

    Robert

  • Could someone please tell Adobe programmers to give the possibility to remove ' home, tools, documents, learn Adobe icon, link icon Mobile and sign in "from the Acrobat Reader toolbar.

    Could someone please tell Adobe programmers to give the possibility to remove ' home, tools, documents, learn Adobe icon, link icon Mobile and sign in "from the Acrobat Reader toolbar.

    Even assuming that we could achieve these programmers they don't make decisions like that, do marketing.

  • How is - a removes a document from the list recently displayed on the opening screen of the Acrobat Reader?

    How is - a removes a document from the list recently displayed on the opening screen of the Acrobat Reader?

    While you can't remove individual documents, you can choose how much (if any) to show.

    Edit > Preferences > Documents > open settings. Everything you want to value "Documents in the recently used list".

  • I was converting pdf to word. I tried to download multiple documents, but the system froze.  I closed the Acrobat Reader. Now, I see no export tools more.  I even tried to restart the computer.  I am currently with my account.

    I was converting pdf to word. I tried to download multiple documents, but the system froze.  I closed the Acrobat Reader. Now, I see no export tools more.  I even tried to restart the computer.  I am currently with my account.

    Hi bulldogcl1,

    Please perform this cleanup tool to uninstall the reader Download Adobe Reader and Acrobat cleaning - Adobe Labs tool, reboot your system & install the latest Adobe Acrobat Reader DC Acrobat Reader DC Learn & support , sing with your Adobe ID to use the export to service PDF format using Acrobat Reader. Export PDF to Acrobat Reader DC.

    You can also use this online https://cloud.acrobat.com/exportpdf service

    Let me know if it solves your problem.

    Kind regards
    Nicos

  • Why is the adobe reader software store my documents, I want to only read and when I tried to save I do it myself?

    could someone explain to me why adobe reader software automatically store my documents instead of just read and save when I wanted?

    Ok. It could be a number of things. Either you must configure your browser so that it opens pdf files using the plugin player who here are the patches: using Acrobat | Display PDF in browser. DC to Acrobat, Acrobat Reader DC

    Or, you use Google Chrome, which has no solution for the moment.

  • How to read my document in the Adobe reader file

    How to read my document in the Adobe reader file

    Sorry, I don't understand what you're asking.

  • How to save a document on OneDrive via the Adobe Reader on Windows Phone app?

    Hello

    I know everything, the documents that are to be registered in the Adobe Reader on Windows Phone app, we can save them on the mobile (Nokia Lumia 930) or transfer them to OneDrive.

    Thank you.

    Adobe/Acrobat Reader peut upload/download/synchronize documents to Adobe Document Cloud (Acrobat.com); I don't think that it offers built-in features to interact with other file-sharing services.

    [subject moved to Reader/Acrobat DC to Mobile forum]

  • Need to change the default save a document to a card reader in acrobat from adobe pro xi

    We have many users to annotate PDF files, and we need Adobe pro to automatically save the PDF files to a shared drive on the network. So I need to change the default save a document to a card reader in Xi'an of acrobat from adobe pro for everyone.

    Hi sonjab80769668,

    There no such customizable settings in Acrobat Pro XI to make this network as a default location to save the files.

    Kind regards
    Rahul

  • the XML reader - need assistance to change the script, please help

    Hi all, I don't know if this is the right place for this question but I want to change a xml flash drive so that it creates the playlist with the name I want and not the default. Some can tell me please how to change this so that when the player has found songs in the "my_mp3s" folder it creates a named xml playlist

    'mymusic.xml ' instead of the default "audioplaylist.xml".  I tried to edit the script of the player's actions and overwrite changes but it still does not work, here is the code please help. I found this script online.

    Thank you

    Stop();

    / * ALL BUTTONS BELOW ARE MARKED FOR EDITABLE AND DON'T CHANGE, BUT IF YOU KNOW WHAT YOU ARE DOING
    THEN YOU CAN ACTUALLY CHANGE WHAT YOU WANT BUT FOR THIS APP WORKS CORRECTLY ONLY CHANGE IF NECESSARY
    ENTRIES... ONCE YOU HAVE MADE YOUR CHANGES, COPY AND PASTE THIS ENTIRE SCRIPT PAGE IN
    THE FIRST IMAGE OF THE SCENARIO THAT HE RIGHT THE SCRIPT THATS ALREADY THERE.
    The button labels for the XML READER text * /.
    SIDE MENU BUTTONS\\\
    Btn1.buttText.ButtonText.text = "DOWNLOAD FILES"; DO NOT CHANGE
    btn2.buttText.ButtonText.text = "SYSTEM VOLUME"; DO NOT CHANGE
    btn3.buttText.ButtonText.text = 'EDIT PLAYLIST XML'; DO NOT CHANGE
    btn4.buttText.ButtonText.text = "BURN CD"; DO NOT CHANGE
    btn5.buttText.ButtonText.text = "CREATE a FOLDER"; DO NOT CHANGE
    btn6.buttText.ButtonText.text = 'DELETE FILE'; DO NOT CHANGE
    btn7.buttText.ButtonText.text = "CDROM OPEN"; DO NOT CHANGE
    btn8.buttText.ButtonText.text = 'OPEN DVD'; DO NOT CHANGE
    btn9.buttText.ButtonText.text = "FTP CLIENT"; DO NOT CHANGE
    btn14.buttText.ButtonText.text = "VIEW PLAYLIST"; DO NOT CHANGE
    btn23.buttText.ButtonText.text = "INFO"; DO NOT CHANGE
    btn25.buttText.ButtonText.text = 'HELP '; DO NOT EDIT
    btn26.buttText.ButtonText.text = 'HELP MDM'; DO NOT CHANGE
    LOW BTNS
    btn19.buttText.ButtonText.text = "OPEN TRAY"; DO NOT CHANGE
    btn20.buttText.ButtonText.text = 'CLOSE CD TRAY'; DO NOT CHANGE
    btn21.buttText.ButtonText.text = "OPEN DVD TRAY"; DO NOT CHANGE
    btn22.buttText.ButtonText.text = "CLOSE DVD TRAY"; DO NOT CHANGE

    Here ARE the FUNCTIONS THAT CAN BE CHANGED, BUT THAT THOSE BRAND 'YOU CAN CHANGE this PATH' are sure to change
    MY DOWNLOAD FILES
    Btn1.onRelease = function() {}
    MDM. Dialogs.BrowseFile.filterList = "MP3 files | * .mp3 ';
    MDM System.exec ("E:\\My Music\\").    Path to the download of the file //YOU CAN CHANGE THIS path
    }
    SYSTEM VOLUME / / / DO NOT CHANGE
    btn2.onRelease = function() {}
    MDM. System.exec("sndvol32.exe");    System volume .exe
    }
    EDITING XML PLAYLIST / / / DO NOT CHANGE
    btn3.onRelease = function() {}
    MDM. System.exec (MDM. System.Paths.programFiles+"Mgamerz\\audiolist2.xml");    XML list
    }
    BURN CD / / YOU CAN CHANGE THIS PATH
    btn4.onRelease = function() {add your way here to your burning nero for example software
    MDM. System.exec (MDM. System.Paths.programFiles+"Nero\\nero.exe");
    }
    CREATE FOLDER / / / DO NOT CHANGE
    btn5.onRelease = function() {}
    MDM FileSystem.makeFolderUnicode ("C:\\Program Files\\Mgamerz\\Burn").    Creates a working folder for burning mp3s
    }
    DELETE FOLDER / / / DO NOT CHANGE
    btn6.onRelease = function() {///Deletes working folder if you want to remove it
    MDM. FileSystem.deleteFolder ("C:\\Program Files\\Mgamerz\\Burn", "ask", "Are you sure");
    }
    OPEN CDROM / / YOU CAN CHANGE THIS PATH
    btn7.onRelease = function() {///Opens change of cdrom drive letter to match your pc
    MDM System.exec("I:\\."); "
    }
    OPEN DVDROM / / YOU CAN CHANGE THIS PATH
    btn8.onRelease = function() {///Opens changing the letter to match your pc dvdrom drives
    MDM System.exec("I:\\."); "
    }
    FTP CLIENT / / YOU CAN CHANGE THIS PATH
    btn9.onRelease = function() {///File path to your ftp software (I use here the cover page)}


    MDM. System.exec (MDM. System.Paths.programFiles + "Microsoft FrontPage Bar\\Office\\Microsoft Office\\Office10\\Shortcut"); "
    }
    Buttons in the header at the top

    DRIVE C: / / / DO NOT EDIT
    btn10.onRelease = function() {///Opens to the top of drive c: for navigation
    MDM. System.exec (MDM. System.Paths.programFiles+"\\");
    }
    * btn11.onRelease = function() {///Opens to the top of the unit for navigation
    MDM System.exec("D:\\."); "    YOU CAN CHANGE THIS PATH
    }*/
    MY DOCUMENTS / / / NOT EDIT
    btn12.onRelease = function() {///Opens my documents for navigation}
    MDM. Dialogs.BrowseFile.filterList = "MP3 files | * .mp3 ';
    MDM. Dialogs.BrowseFile.show ("my Documents\\");
    }
    MP3 FILE / / / DO NOT CHANGE THE
    btn13.onRelease = function() {//main directory for mp3 files
    MDM. System.exec (MDM. System.Paths.programFiles+"Mgamerz\\my_mp3s\\");
    }
    VIEW PLAYLIST / / / DO NOT CHANGE
    btn14.onRelease = function() {///View playlist as a text file
    MDM. System.exec (MDM. System.Paths.programFiles+"Mgamerz\\my_mp3s\\mp3.t xt");
    }
    UPDATE XML FILE / / / DO NOT CHANGE
    btn15.onRelease = function() {///Creates xml playlist once new mp3s have been added
    MDM. System.exec (MDM. System.Paths.programFiles+"Mgamerz\\audiolist2.xml");
    }
    MINIMIZE BUTTON
    * btn16.onRelease = function() {//Minimizes application
    MDM. Application.Minimize (///DO) NOT EDIT
    }*/
    CLOSE BUTTON
    * btn17.onRelease = function() {///Closes application
    MDM. Application.Exit ('ask', ' are you sure you want to go out to? ") DO NOT EDIT
    }*/
    SCREEN CAPTURE DEVICE / / / DO NOT CHANGE
    btn18.onRelease = function() {///Screen capture sofdtware
    MDM. System.exec (MDM. System.Paths.programFiles+"Mgamerz\\apps\\Capture screen Studio\\css.exe");
    }
    OPEN CDROM TRAY / / YOU CAN CHANGE THIS PATH
    btn19.onRelease = function() {}
    MDM System.openCDTray ("I").
    }
    CDROM TRAY CLOSE / / YOU CAN CHANGE THIS PATH
    btn20.onRelease = function() {//Closes cdrom tray
    MDM System.closeCDTray ("I").
    }
    OPEN DVDROM PLATEAU / / YOU CAN CHANGE THIS PATH
    btn21.onRelease = function() {//Opens dvdrom
    MDM System.openCDTray ("H").
    }
    CLOSE TRAY DVDROM / / YOU CAN CHANGE THIS PATH
    btn22.onRelease = function() {//Closes dvdrom plateau
    MDM System.closeCDTray ("H").
    }

    * btn23.onRelease = function() {//DO NOT EDIT
    nextFrame();
    }*/
    HELP / / DO NOT EDIT
    btn25.onRelease = function() {//Closes dvdrom plateau
    MDM. System.exec (MDM. System.Paths.programFiles+"Mgamerz\\help.exe");
    }
    HELP OF MDM / / DO NOT EDIT
    btn26.onRelease = function() {//Closes dvdrom plateau
    MDM. System.exec (MDM. System.Paths.programFiles + "MDM helps 2.5 file\\MDM 2.5 UserManual.chm"); "
    }

    use:

    / * ALL BUTTONS BELOW ARE MARKED FOR EDITABLE AND DON'T CHANGE, BUT IF YOU KNOW WHAT YOU ARE DOING
    THEN YOU CAN ACTUALLY CHANGE WHAT YOU WANT BUT FOR THIS APP WORKS CORRECTLY ONLY CHANGE IF NECESSARY
    ENTRIES... ONCE YOU HAVE MADE YOUR CHANGES, COPY AND PASTE THIS ENTIRE SCRIPT PAGE IN
    THE FIRST IMAGE OF THE SCENARIO THAT HE RIGHT THE SCRIPT THATS ALREADY THERE.
    The button labels for the XML READER text * /.
    SIDE MENU BUTTONS\\\
    Btn1.buttText.ButtonText.text = "DOWNLOAD FILES"; DO NOT CHANGE
    btn2.buttText.ButtonText.text = "SYSTEM VOLUME"; DO NOT CHANGE
    btn3.buttText.ButtonText.text = 'EDIT PLAYLIST XML'; DO NOT CHANGE
    btn4.buttText.ButtonText.text = "BURN CD"; DO NOT CHANGE
    btn5.buttText.ButtonText.text = "CREATE a FOLDER"; DO NOT CHANGE
    btn6.buttText.ButtonText.text = 'DELETE FILE'; DO NOT CHANGE
    btn7.buttText.ButtonText.text = "CDROM OPEN"; DO NOT CHANGE
    btn8.buttText.ButtonText.text = 'OPEN DVD'; DO NOT CHANGE
    btn9.buttText.ButtonText.text = "FTP CLIENT"; DO NOT CHANGE
    btn14.buttText.ButtonText.text = "VIEW PLAYLIST"; DO NOT CHANGE
    btn23.buttText.ButtonText.text = "INFO"; DO NOT CHANGE


    btn25.buttText.ButtonText.text = 'HELP '; DO NOT EDIT
    btn26.buttText.ButtonText.text = 'HELP MDM'; DO NOT CHANGE
    LOW BTNS
    btn19.buttText.ButtonText.text = "OPEN TRAY"; DO NOT CHANGE
    btn20.buttText.ButtonText.text = 'CLOSE CD TRAY'; DO NOT CHANGE
    btn21.buttText.ButtonText.text = "OPEN DVD TRAY"; DO NOT CHANGE
    btn22.buttText.ButtonText.text = "CLOSE DVD TRAY"; DO NOT CHANGE

    Here ARE the FUNCTIONS THAT CAN BE CHANGED, BUT THAT THOSE BRAND 'YOU CAN CHANGE this PATH' are sure to change
    MY DOWNLOAD FILES
    Btn1.onRelease = function() {}
    MDM. Dialogs.BrowseFile.filterList = "MP3 files | * .mp3 ';
    MDM System.exec ("E:\\My Music\\").    Path to the download of the file //YOU CAN CHANGE THIS path
    }
    SYSTEM VOLUME / / / DO NOT CHANGE
    btn2.onRelease = function() {}
    MDM. System.exec("sndvol32.exe");    System volume .exe
    }
    EDITING XML PLAYLIST / / / DO NOT CHANGE
    btn3.onRelease = function() {}
    MDM. System.exec (MDM. System.Paths.programFiles+"Mgamerz\\audiolist2.xml");    XML list
    }
    BURN CD / / YOU CAN CHANGE THIS PATH
    btn4.onRelease = function() {add your way here to your burning nero for example software
    MDM. System.exec (MDM. System.Paths.programFiles+"Nero\\nero.exe");
    }
    CREATE FOLDER / / / DO NOT CHANGE
    btn5.onRelease = function() {}
    MDM FileSystem.makeFolderUnicode ("C:\\Program Files\\Mgamerz\\Burn").    Creates a working folder for burning mp3s
    }
    DELETE FOLDER / / / DO NOT CHANGE
    btn6.onRelease = function() {///Deletes working folder if you want to remove it
    MDM. FileSystem.deleteFolder ("C:\\Program Files\\Mgamerz\\Burn", "ask", "Are you sure");
    }
    OPEN CDROM / / YOU CAN CHANGE THIS PATH
    btn7.onRelease = function() {///Opens change of cdrom drive letter to match your pc
    MDM System.exec("I:\\."); "
    }
    OPEN DVDROM / / YOU CAN CHANGE THIS PATH
    btn8.onRelease = function() {///Opens changing the letter to match your pc dvdrom drives
    MDM System.exec("I:\\."); "
    }
    FTP CLIENT / / YOU CAN CHANGE THIS PATH
    btn9.onRelease = function() {///File path to your ftp software (I use here the cover page)}
    MDM. System.exec (MDM. System.Paths.programFiles + "Microsoft FrontPage Bar\\Office\\Microsoft Office\\Office10\\Shortcut"); "
    }
    Buttons in the header at the top

    DRIVE C: / / / DO NOT EDIT
    btn10.onRelease = function() {///Opens to the top of drive c: for navigation
    MDM. System.exec (MDM. System.Paths.programFiles+"\\");
    }
    * btn11.onRelease = function() {///Opens to the top of the unit for navigation
    MDM System.exec("D:\\."); "    YOU CAN CHANGE THIS PATH
    }*/
    MY DOCUMENTS / / / NOT EDIT
    btn12.onRelease = function() {///Opens my documents for navigation}
    MDM. Dialogs.BrowseFile.filterList = "MP3 files | * .mp3 ';
    MDM. Dialogs.BrowseFile.show ("my Documents\\");
    }
    MP3 FILE / / / DO NOT CHANGE THE
    btn13.onRelease = function() {//main directory for mp3 files
    MDM. System.exec (MDM. System.Paths.programFiles+"Mgamerz\\my_mp3s\\");
    }
    VIEW PLAYLIST / / / DO NOT CHANGE
    btn14.onRelease = function() {///View playlist as a text file
    MDM. System.exec (MDM. System.Paths.programFiles+"Mgamerz\\my_mp3s\\mp3.t xt");
    }
    UPDATE XML FILE / / / DO NOT CHANGE
    btn15.onRelease = function() {///Creates xml playlist once new mp3s have been added
    MDM. System.exec (MDM. System.Paths.programFiles+"Mgamerz\\mymusic.xml");
    }
    MINIMIZE BUTTON
    * btn16.onRelease = function() {//Minimizes application
    MDM. Application.Minimize (///DO) NOT EDIT
    }*/
    CLOSE BUTTON
    * btn17.onRelease = function() {///Closes application
    MDM. Application.Exit ('ask', ' are you sure you want to go out to? ") DO NOT EDIT
    }*/
    SCREEN CAPTURE DEVICE / / / DO NOT CHANGE
    btn18.onRelease = function() {///Screen capture sofdtware
    MDM. System.exec (MDM. System.Paths.programFiles+"Mgamerz\\apps\\Capture screen Studio\\css.exe");
    }
    OPEN CDROM TRAY / / YOU CAN CHANGE THIS PATH
    btn19.onRelease = function() {}
    MDM System.openCDTray ("I").
    }
    CDROM TRAY CLOSE / / YOU CAN CHANGE THIS PATH
    btn20.onRelease = function() {//Closes cdrom tray
    MDM System.closeCDTray ("I").
    }
    OPEN DVDROM PLATEAU / / YOU CAN CHANGE THIS PATH
    btn21.onRelease = function() {//Opens dvdrom
    MDM System.openCDTray ("H").
    }
    CLOSE TRAY DVDROM / / YOU CAN CHANGE THIS PATH
    btn22.onRelease = function() {//Closes dvdrom plateau
    MDM System.closeCDTray ("H").
    }

    * btn23.onRelease = function() {//DO NOT EDIT
    nextFrame();
    }*/
    HELP / / DO NOT EDIT
    btn25.onRelease = function() {//Closes dvdrom plateau
    MDM. System.exec (MDM. System.Paths.programFiles+"Mgamerz\\help.exe");
    }
    HELP OF MDM / / DO NOT EDIT
    btn26.onRelease = function() {//Closes dvdrom plateau
    MDM. System.exec (MDM. System.Paths.programFiles + "MDM helps 2.5 file\\MDM 2.5 UserManual.chm"); "
    }

Maybe you are looking for