Creating a folder in the Finder/Windows by using a PS action

I need build a hierarchy of folders on the Desktop files and place by using a Photoshop action. for example:

Name of the Master folder

-High resolution

-HR_filename.jpg

-HR_filename.png

-Low resolution

-LR_filename.jpg

-LR_filename.png

-Master

-Master filename.psb

Using javascript (as it is portable between Mac and Windows), is there a way that simple? Maybe a tutorial? I'm having a time hard to find the right info in the forums - it asks me to start a new post.

Thank you

Apparently this works:

var target is Folder.selectDialog ("choose a target folder");.

DocName var = app.activeDocument.name.substring (0, app.activeDocument.name.indexOf('.'));

If (!) ((Folder(target+"/"+"filename"))). Exists)

{

new folder (target + "/" + docname) .create ();

new folder (target + "/" + nomdoc + "/ hi-res") .create ();

new folder (target + "/" + nomdoc + "/ lo-res") .create ();

new folder (target + "/" + nomdoc + "/ simplified") .create ();

}

Tags: Photoshop

Similar Questions

  • Status bar in the Finder Windows?

    I remember that there used a status bar (or the information bar or whatever) at the bottom of all the Finder Windows by default with information such as the number of files in the current folder, etc, but I do not see it in El Capitan. Is there a way to turn this back on? It was very useful.

    They are two distinct: display the status bar, see the path bar

  • I can't see changes in a folder unless I go up a level and then re-enter folder, for example, create new folder, rename the folder, rotate the image etc. Can someone please?

    I do not see changes within a folder, except if I go up a level and then again enter the folder, for example, create new folder, rename the folder, rotate the image, etc..

    By pressing the "F5" key would probably be to refresh the folder.

    See if this article helps you with this problem:

    "List of the files in the Windows Explorer folder is not refreshed after that you create, move, or delete files"
      <>http://support.Microsoft.com/kb/823291 >

    HTH,
    JW

  • why we can not create a folder named "con" in windows?

    I tried to create a folder named con in windows 7 and I wasn't able to do that it says "specified device name is invalid" what is the secret of this problem?

    See the MSDN naming of files, paths, and namespaces:

    Do not use the following device names reserved for the name of a file:

    CON, PRN, to THE, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, and LPT9. Also avoid these names immediately followed by an extension; for example, NUL.txt is not recommended.

    This applies to files, too.

    Noel

  • Create a folder in the file system

    Quote from the old forum:

    Rohan

    Messages: 12
    Join date: Jun 2008

    Create a folder in the file system
    Posted the: July 4, 2008 06:06
     
    Hi all

    I want to create a folder in the root of the blackberry device file system. Or you can say anywhere in the device file system I want to make a folder through my code. Is it not possible? How should I approach to achieve this?

    Thank you
    -Rohan

    gmay

    Messages: 231
    Join date: Jun 2007

    Re: Create a folder in the file system
    Posted the: July 4, 2008 10:53
     
    To create directories, please see FileConnection.mkdir)

    http://tinyurl.com/63yj23

    Gordon
    BlackBerry developer journal
    www.blackberrydeveloperjournal.com

    Rohan

    Messages: 12
    Join date: Jun 2008

    Re: Create a folder in the file system
    Posted the: July 7, 2008 02:12
     
    Hi Gordon,.

    Thanks for the reply and the link. I've been there. But I don't get the use of FileConnection.mkdir)

    Can you please let me know how extract use mkdir?

    Thank you
    -Rohan

    Rohan
    Messages: 12
    Join date: Jun 2008

    Re: Create a folder in the file system
    Posted the: July 7, 2008 04:00
     
    Hello

    After trying for a while, I get it how to use FileConnection.mkdir () in my code.

    But I am facing a problem here. When the mkdir() is executed, it gives me FileIOException: file system error

    Here is my code that attempts to create a directory called myDir

    try {}
    FileConnection fc = (FileConnection) Connector.open ("file:///store/home/myDir", Connector.READ_WRITE);
    If (! fc.exists ()) {}
    FC.mkdir ();


    }
    } catch (Exception e) {}
    Dialog.Alert (try ());
    }

    I even tried to give the path like 'file:///store/home/myDir/' because I tried to create a directory. But it also gives the same exception.

    Please let me know if I'm doing one any mistake here.

    Thank you
    -Rohan

    Rohan

    Messages: 12
    Join date: Jun 2008

    Re: Create a folder in the file system
    Posted the: July 7, 2008 06:10
     
    Hello

    I think the problem is... BlackBerry does not allow a directory to be created in the folder /store/ the device. Because I am able to create a directory in the directory/SDCard /.

    Is this something that we cannot create a directory in the root directory of the device?

    Rohan

    Messages: 12
    Join date: Jun 2008

    Re: Create a folder in the file system
    Posted the: July 7, 2008 06:17
     
    Hello

    I'm sorry to keep posting here because I'm trying various things in my code and got to know more. But I write as soon as I get a result, so that it can be useful for those who are looking for the same thing.

    I even tried to create a directory in/store/home/user/and it works fine. So that means, we need to create our directories in the directory/store/home/user or/SDCard /.

    Please correct me if I'm wrong.

    Thank you
    -Rohan

    yog123

    Messages: 2
    From: mumbai
    Join date: Apr, 2007

    Re: Create a folder in the file system
    Posted the: July 15, 2008 09:49
     
    Can someone explain this in detail...
    When I tried to create the folder on the memory card or memory in the camera, it gives exception as file system error...
    Is it related to any authorization or specific parameters... ??
    JDE 4.2.1.16
    8100 Simulator...
    Thanks in advance...

    Please make sure that the BlackBerry Simulator has been configured to support a micro SD card.  For this in the BlackBerry JDE by clicking on the menu Edition, by selecting Preferences, by clicking on the Simulator tab, then on the tab memory and filling of the size of the SD card and the SD card image settings.

    Hi yog123,

    The code you mentioned is valid, but I guess you make a small mistake here.

    Whenever you want to create a directory, you should give "/" after the name directory to inside the Connector.open)

    Just put "/" after the directory name "sp" in your code as shown below.

    FileConnection fconn = (FileConnection)Connector.open("file:///SDCard/BlackBerry/pictures/sp/",Connector.READ_WRITE);
    

    Please let us know if you still find no problem.

    Thank you

    -Rohan

  • Drag files from a folder on the docking station to a folder in the finder (El Capitan)

    We have recently improved Mavericks in El Capitan at work and I noticed some lost (apparently) features. Is no longer, I can click on my downloads on my dock folder and drag a file into a folder in the Finder. When I try to do it now, nothing happens, regardless of the file type.

    It is a small annoyance, but it was very convenient I wanted to download a file and do not have to navigate to the folder that is specific to each time. I often deal with lots of images and files on a single task, so it's much faster to send them all to my downloads and grab them off the Dock since she ordered chronologically downloads it.

    Someone has the same problem and have a solution?

    (Card: OS X El Capitan, Version 10.11.6, iMac 27 inches, end of 2013, 3.5 GHz Intel Core i7, 16 GB 1600 MHz DDR3, 500 GB, NVIDIA GeForce GTX 775 M 2048 MB)

    What happens if you try to drag the file in the downloads folder in your user/Home folder?

  • Folder in the Finder has no arrow click on contents of the folder see the

    I just change the contents of a folder in the Finder.  When I finished, I see that the folder icon has no arrow on his left, on which you click to display the contents of the folder without having to open the folder.  It is also true for all folders in the folder in question.

    How to restore the arrow click on content enable the folder to display in the Finder?

    Change the ' sort by ' votes to zero, i.e.

    Finder > view > sort by > no

    I don't know if this behaviour is a bug or a feature, but it intrigues many users.

    C.

  • Command + tab to open the Finder window does not

    Sorry to post this again - the first accidentally got marked as resolved, but it is not and I still need help.

    I recently installed at El Capitan on my iMac, and now, when I use the command + tab to toggle an application by opening a window of Finder, I get that the Finder menu bar. The open Finder window is located in the window menu, and I choose to see it and use it. Before the upgrade, command-tab would be near the top of the Finder window currently open and active. How do I get it to behave as it did before? I HATE having to select the window menu item! AND when I select the window from the window menu, the bar menu auto mask, that I also hate. Automatic masking occurs only in the Finder, and he is not selected in the settings of my Apple.

    Help! Thanks in advance.

    iMac (27-inch mid-2011), OS X El Capitan (10.11.3), MS ergonomic keyboard

    I think you have Finder mode full-screen. I do not use full screen at all, so I'm not really familiar with it, but what seems to work for me was to switch to Finder and select the window from the window menu, and then press ESC to exit full-screen.

  • How to lock a folder OR file in windows without using the 3rd party software

    How to lock a folder OR file in windows without using any software of the 3 part,.

    Please help me if there is another way to lock.

    Hi kvegesna,

    To lock a folder or file in Windows XP, the only way is to encrypt the file or folder.

    How to encrypt a folder in Windows XP

    http://support.Microsoft.com/kb/308989

    How to remove encryption from a file or a folder in Windows XP

    http://support.Microsoft.com/kb/308993

  • How do you do windows open each new folder in the same window?

    in Control Panel-folder options, open each folder in the same window is selected, but whenever a file is opened, it opens in a new window, what's wrong?

    Windows 7 pro, clean install, toshiba portege m700

    I had this problem, but after installing IE8 on Windows Vista.  I was unable to make Windows Explorer open folders in the same window, even if this option in 'Options folders'.

    The response marked here seems to have given back me the feature, but unfortunately it seems that I can not open files in their own windows separated (when this option is selected). Well.
    http://social.technet.Microsoft.com/forums/en/itprovistadesktopui/thread/a3ce4023-b3b1-49ad-A4F6-08587fc8b736

    ---
    Here is the solution:

    Run cmd as administrator and run the command "regsvr32 actxprxy.dll".

    See you soon
    ---

  • Open a folder in the Finder?

    Hello

    I had the script below in a .jsx file, it was located in the "Adobe Photoshop CC 2015/settings presets/Scripts" and it worked perfectly.

    Now for some unknown reason - it won't open the file hardcoded in the finder

    If something has changed in a previous update, which makes this useless script?

    Any ideas how I now just open a folder in the finder, directly from a script?

    Thank you in advance.

    var f = file ("Applications/files/Photoshop\ Tuts\ and\ Plugins Plugins/Photoshop\ /'");

    f.Execute ();

    If this is what has been returned then it should work.

    var f = Folder("/Applications/Files/Photoshop_Tuts_and_Plugins/Photoshop_Plugins");

    {if (f.Exists)}

    f.Execute ();

    } else {}

    Alert ("file has not exist\nPlease check your way!");

    }

  • I want to use my Lightroom 5 to index my slide collection architects who are now safely scanned on my new Mac in the images folder in the Finder. Previously, I had started to put these in Lightroom but decided to change the line

    I want to use my Lightroom 5 to index my slide collection architects who are now safely scanned on my new Mac in the images folder in the Finder. Previously I had successfully started putting these in Lightroom, but decided to change the format of deposit and deleted (I think) all these previous efforts of Lightroom. On my computer, now I would like to, but when I open Lightroom to try to import them from my computer, the Destination Lightroom Panel does not appear. What I am doing wrong?

    Robert alanb48311052 says:

    On my computer, now I would like to, but when I open Lightroom to try to import them from my computer, the Destination Lightroom Panel does not appear. What I am doing wrong?

    The Destination Panel does not appear? Try right click on one of the other names of Panel on the right side of the import dialog box and select Destination.

  • The name of the missing photo is missing in the upper part of the finder window, when you search for the missing photo.

    Until this version, the name of a missing photo was shown in the upper part of the finder window looking for the missing file. This was very helpful during the search, Miss me ;(

    Murk-FotoHello,

    Work on Mac OS 10.11?

    As it has nothing to do with the new version of Lightroom, this was changed in the new Mac OS.

    Concerning

    Sarika

  • How can I put pictures outside the window of Photoshop elements 14 work, so that I'm not obliged to work within the program window, but use my screen completely for the image?

    How can I put pictures outside the window of Photoshop elements 14 work, so that I'm not obliged to work within the program window, but use my screen completely for the image?

    dannyb76251437 wrote:

    How can I put pictures outside the window of Photoshop elements 14 work, so that I'm not obliged to work within the program window, but use my screen completely for the image?

    Note that you can work with two screens and drag and drop the image to display on the other window.

    I think you mean working temporarily with the window enlarged image without displaying all the tools and panels.

    See:

    Panels and bins in Photoshop Elements

    My advice: take the time to read the above help and especially to look at ways to maximize this window if you are on Mac or Win.

    Set your preferences in the Edit menu to "allow the floating windows in expert mode.

    Use the "tab" on the keyboard key to hide or show your panels and tools quickly.

    Find out how to hide the photo tray.

  • Remove the child window Parent using WIN API

    Hi all

    For a parent-child relationship between two screws using the User32.dll I use the SetParent function and pass the handle of the parent VI and VI child to this function. Now, after this relationship has been established, I want to remove the child from the parent window and use it as an independent VI using WIN API. Can someone help me on this?

    Thanks in advance!

    Fragger Fox!

    Hi Fragger Fox,

    I think that it should be possible, if you assign a new parent to the child. Maybe this works if you assign the desktop as a new parent.

    It will be useful.

    Mike

Maybe you are looking for