CS3 files with spaces in the name

I have a slight problem with the files that are in folders that have spaces in the name of the folder.

For example, the file is in the following location: rtu 41%.psd/c/n Hold/Test Image file/mondeo

If I run the script, it creates a folder called ScriptFolder to the location of the file and a saveAs psd files in that folder but I get an error.

General Photoshop error occurred. This feature can pas...ld\...\mondeo n 41% ' because the file is not found.

If I change ' folder of images to test ' to 'Test_Image_Folder', which is where the file is the script works.

Here's the script of any suggestions on how I can get around this?

var myPsDoc = app.activeDocument;
var justname = myPsDoc.name.split ('.) ») [0]
var MonNouveauDossier = new Folder(myPsDoc.path+"/ScriptFolder/"); "
If {(myNewFolder.exists)
} else {}
myNewFolder.create ();
}
newFile = new file (MonNouveauDossier + "/" + justname)
photoshopSaveOptions = new PhotoshopSaveOptions()
photoshopSaveOptions.embedColorProfile = false
myPsDoc.saveAs (newFile, PhotoshopSaveOptions, true, Extension.LOWERCASE)

With the help of decodeURI should take care of the problem with spaces in the path.

var MonNouveauDossier = new folder (decodeURI (myPsDoc.path) + "/ScriptFolder/");

Tags: Photoshop

Similar Questions

  • FTP access with spaces in the names of dir

    Hello

    I'm doing a recursive list of files in an FTP directory.

    Although FileZilla deals with spaces in the names of directory without problem, it seems that Labview struggles a little.

    In effect, if I ask labview for files and a folder named directory, for example/Projects/Camera 1 /, it returns an empty array (while FileZilla sees clearly 12 files in that folder). It seems that the problem is white in the name space, because if I replace (using FileZilla) the space character by '_', LV correctly gives me the list of files.

    No idea how the LabView FTP working properly deal with spaces in the directory and file names?

    Best regards

    perper2001

    Hello

    Unfortunately, I can't share the code, but here's a screenshot of what it looks like.  It is based on the "vi directory listing" which comes with labview.

    Basically, it send the command MLSD and wait for an answer. After that, it's a matter of parsing of the response from the server that my FTP looks like this:

    type = CDIR; sizd = 3; change = 20150220090455; UNIX.mode = 0705; UNIX.uid = 32210; UNIX.gid = 100; single is d8g863beb0;.
    type = IRDP; sizd = 5; change = 20150302165245; UNIX.mode = 0705; UNIX.uid = 32210; UNIX.gid = 100, unique = d8g863beae;...
    type = dir; sizd = 12; Change = 20150302000236; UNIX.mode = 0705; UNIX.uid = 32210; UNIX.gid = 100, unique = d8g863beb2; Battery camera 9

    Kind regards

    Peper

  • Can't CD to the folder with spaces in the name

    5.1 ESXi

    Using PuTTY I'm changing the directories of datastore1 in a folder named Windows 2008 R2 x 64.  It's a virtual machine to the Macintosh to ESXi 5.1 using converter standalone.  When I try to cd Windows 2008 R2 x 64 from the datastore1 prompt, I get an error:

    -sh: cd: can't cd for Windows

    BTW, Windows 2008 R2 x 64 anyname mv generates an error:

    MV: unable to rename "anyname" no such file or directory

    Any thoughts on how to change the folder name if I can get rid of the spaces?

    Thank you

    Mux

    Put the folder_name quotes

    so

    #cd "Windows 2008 etc"

    It should work

  • Printing of the .pdf of the 2013 project file will stop when the name of the file must be written. Project 2013 crashes. Anyone know what the problem is between 2013 project and Adobe Acrobat 9?

    Printing of the .pdf of the 2013 project file will stop when the name of the file must be written. Project 2013 crashes. Anyone know what the problem is between 2013 project and Adobe Acrobat 9?

    The family of products Acrobat 9.x passed in mid-2013 "end of Support".
    Using Acrobat 9 of MS Project via PDFMaker stops with Office 2007.
    To 2013 Office support, you must use Acrobat XI (11.0.1) or newer.

    A good reference:
    https://helpx.Adobe.com/Acrobat/KB/compatible-Web-browsers-PDFMaker-applications.html

    Acrobat Pro and Standard DC are what are currently available for purchase.

    Be well...

  • Space in the name of the cluster

    Hi all

    I have an obligation to give a space in the name of the cluster, for example 'server '.
    Coherence supports space in the name of the cluster. I know, he can't stand point.
    and if he can't then how?
    for dot, we replaced with underscore in our api.
    Let me know what you.

    Thank you
    Vinay

    Vinay,

    Who told you this Cluster name can not contain spaces? I did the test on 3.5.3 - p8 which allowed areas and points. The developer for 3.5.3 and 3.6 guides say not that you can not use spaces or points.

    JK

  • Download a pdf file, save, won't show the full name of the backup file when name contains a space, stop the name of the file.

    Download a pdf file, the file name contains a space in the middle of the file. The name showing on the 'Save' popup is first letters up to space. Works fine on IE8. For example, a file named "old snail_12345.pdf" would show only 'old' (ignore the "s"). This is on Firefox 30.0, WinXP Pro.

    Apparently, there is an extension to work around this problem. I have not tried myself. See:

    http://KB.mozillazine.org/Filenames_with_spaces_are_truncated_upon_download

  • Using a command line with spaces in the path name

    I want to write a batch file simple to keep the output of the log file in a program, I'm running. Unfortunately, I him did not over the years and I'm rusty I thought.

    Basically, the CW program creates a file called "log.txt".

    What I would do is to remove a file called log10.txt and the iteratively to rename log9, txt connect 10.txt, log 8. txt log9 txt... and so on.

    Once the name change is made, I would like to run CW.txt.

    Some complications. There is a version of the program the two 32 - bit and 64 - bit and only can exist.

    So I thought I could use the system environment PROCESSOR_ARCHITECTURE VCBBASE to test if I am running 64 bit.

    Then I could use ProgramFiles or % ProgramFiles (x 86) % to locate my executable.

    Sounds easy in theory, but I'm stumbling - a lot.

    I use cmd to open a window to test my script of commands and the batch script is in a file called "testme.cmd." I don't know if it would make a difference if the batch file has been "testme.bat"?

    The full name of the directory for the 64 bit version of the program is:

    C:\Program Files\KingComp\Cram 3\CW.exe Wiz

    You try to run a batch file to determine if the file exists:

    If exist %ProgramFiles%\KingComp\Cram Wiz 3\CW.exe

    causes an error: the system cannot find the path specified. I tried various combinations of the quotes around parts or all of the order - all without success. The research gives a lot of results, but none seem to apply to my problem except suggestions to determine the 8.3 file name and use it. But I do not know how to find by program structures of 8.3 directory.

    Is it possible to use the Windows 7 environment variables and a path name that contains spaces and get a positive result?

    Thank you.

    I'm also not sure exactly what shell or the shell I use. As far as I know is not BACK, Dorothy. :)

    Hi Mike,.

    Your question of Windows 7 is more complex than what is generally answered in the Microsoft Community. It is better suited for the IT Pro TechNet public.  Please post your question using the link below.

    http://social.technet.Microsoft.com/forums/Windows/en-us/home?Forum=w7itproappcompat&filter=AllTypes&sort=lastpostdesc

    I hope this helps.

  • How to disable the feature in Windows 7 to change all downloaded files for underscores instead of spaces in the name?

    I'm having a problem where any file I download from the internet is modifed by Windows 7.  Underscores instead of spaces added.  I use IE 8 32-bit on Windows 7 Professional 64 bit.   This issue is causing users a problem because most of our Applications are Web applications, and there are a lot of files that must be downloaded for reports or the import feature.

    Is their a solution to this problem/bug in Windows 7?  To review other forums on the Net, it seems that the change occurs because any file from a website hosted server must not have any spaces because it cannot be accepted if used in a URL.

    Any help on this would be greatly appreciated.

    Thank you

    kkuntchef

    Hello

    I suggest you post your queries and comments on the TechNet forum so that you will get the expert answer from TechNet support. See the link: http://social.technet.microsoft.com/Forums/en-US/category/w7itpro

    Hope this helps you

  • Downloaded a zipped file/folder would not, the name is too long.

    I have downloaded a compressed file/folder to a trusted site that I always. I unzipped the file (Music mp3) successfully and added to my itunes. When I tried to drag the file of music on my ipod, itunes shows his location could not be found. I went and checked on the folder I unzipped and all these other files with weird characters appears. It took 145 GB of space in my external hardrive (thank goodess). Now, I can't rename or delete the file or the folder itself. I tried a few removal tools but it did not work or when I try to download, my anti-virus software reports me. I need a way to get rid of the file. The budget is tight, so it would help if it's freeware. OR better yet a way to removed without having to download any software. I tried to delete it in safe mod and BACK. Without success. Tried Unlocker and D something software too.

    Have you tried Unlocker which would have been my first recommendation.  I don't know other programs (especially turned to the long name) free file deletion. If Unlocker doesn't work, or none will remove utilitly in Vista (because Unlocker is better than Vista).

    The commercial product ($19 I think) says that he specifically deletes files whose names are too long. http://www.abtollc.com/Folder-Delete.aspx.  I suspect that this will do the trick, but of course I can't be sure so try there is a risk that it will not solve the problem in spite of spending money on it.

    Your problem with the file may be a permissions problem.  Make sure that you have the permissions of all rights and take possession (and maybe both parent folders).  Don't forget to check the Advnaced properties for special permissions that restrict rights or inherit permissions from parent folders - you may need to remove if you already have all the rights on the main screen.  Here are the procedures:

    To view your permissions, right-click on the file/folder, click Properties, and check the Security tab.  Check the permissions you have by clicking on your user name (or group of users).  Here are the types of permissions, you may have: http://windows.microsoft.com/en-US/windows-vista/What-are-permissions.  You must be an administrator or owner to change the permissions (and sometimes, being an administrator or even an owner is not sufficient - there are ways to block access (even if a smart administrator knows these ways and can move them - but usually should not because they did not have access, usually for a very good reason).)  Here's how to change the permissions of folder under Vista: http://www.online-tech-tips.com/windows-vista/set-file-folder-permissions-vista/.  To add take and the issuance of right of permissions and ownership in the right click menu (which will make it faster to get once it is configured), see the following article: http://www.mydigitallife.info/2009/05/21/take-and-grant-full-control-permissions-and-ownership-in-windows-7-or-vista-right-click-menu/.

    To resolve this problem with folders, appropriating the files or the drive (as an administrator) and give you all the rights.  Right-click on the folder/drive, click Properties, click the Security tab and click on advanced and then click the owner tab.  Click on edit, and then click the name of the person you want to give to the property (you may need to add if it is not there--or maybe yourself). If you want that it applies to subfolders and files in this folder/drive, then check the box to replace the owner of subcontainers and objects, and click OK.  Back and now there is a new owner for files and folders/player who can change the required permissions.  You can change now switched to read-only (even if the main folder indicates that they are always read-only - you can access yourself as the owner).  You can keep them in read-only to other users, customers and administrators even (although they can support themselves and access, if they wish, and it is really not that you can do to stop it except protect the file with a password by using a 3rd party product.)  Here is more information on the ownership of a file or a folder: http://www.vistax64.com/tutorials/67717-take-ownership-file.html.  To add take ownership in the menu of the right click (which will make it faster to get once it is configured), see the following article: http://www.howtogeek.com/howto/windows-vista/add-take-ownership-to-explorer-right-click-menu-in-vista/.

    I have no other suggestions at this point.  What is the EXACT and the full path of this folder?  Depending on where it is, we are able to create a new user profile (treat your as if it is corrupted) and traansfer all data EXCEPT the folder in the new profile.  Then delete the old provile if he leaves despite this file - it might or it might not (I'm not sure).

    To try this http://windows.microsoft.com/en-AU/windows-vista/Fix-a-corrupted-user-profileuse.  If that is the only available Administrator Profile (you need to be an administrator to fix this), enable the Hidden Administrator Account (HAA) using http://www.microsoft.com/communities/newsgroups/en-us/default.aspx?&lang=en&cr=US&guid=&sloc=en-us&dg=microsoft.public.windows.vista.administration_accounts_passwords&p=1&tid=d20f9db4-7b2c-48be-a087-7835dc2a9055&mid=d20f9db4-7b2c-48be-a087-7835dc2a9055.  If you don't remember the password, try nothing because that's probably what you (or seller) did during the installation.  Once that is done, don't forget to disable the HAA to save it in case it is necessary once again and for safety reasons (since people often try to hack into systems using this account).  Do NOT use the HAA as your administrator account because if you lose the only administrator on the system account or it is damaged again, then you're watered.

    You can also try to enter in a command prompt: click on start / all programs / accessories / command prompt and right click on command prompt, and then click Run as administrator.  There Cd type a space and then type the path of the fulll name the folder in question (if it even appears).  Once inside the folder type del *. * and see what happens.  It can give you the same error message, or it can remove. Once the content is deleted type cd, and then type del (yes I know it's long) and enter. This can remove the folder.

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • WIN8 scheduled task does not work with spaces in the path of the program

    Hello, I walked with this problem. I created a basic task using the Task Scheduler, and I noticed if the program you want the task to run, it's the path contains white space, it will not work.

    Does anyone know how to solve?

    I tried with this http://support.microsoft.com/kb/823093/en-us, but could not make it work.

    Thank you.

    I had the same problem http://answers.microsoft.com/en-us/windows/forum/windows8_1-system/scheduled-tasks-don ' t-run-pops-up-how-do-you-want/14e9f209-09b7-46a9-8739-ba821b565e1b?tm=1430262836762 with a task "alarm" working if the file name has spaces. I renamed the file, but win8.1 must be able to handle spaces in the directory/file names. I think it's a bug.

  • AppleScript, Terminal Server and files with spaces

    Hey all, I wrote a small program to move files with the script action do. I came across a problem with files that have spaces. AppleScript freaks out a bit when I use the terminal command 'touch ~/Desktop/Hello\ world. " Is there a work around for this?

    tell application "Terminal"
      do script "touch ~/Desktop/Hello\ World"
    
    end tell
    

    Put a second-next to the existing one.

    (139109)

  • Element browse file with savings in the database

    Hello

    I am looking for an option of selection/browse file where I can select the file in a folder and find the path to the file. But I don't need to save the file in the "WWV_FILES" or BLOB column. Is there a way we can achieve this?. Baiscally I need to extract the file name of the path and use to other transformations. I need the file to be saved in the database. Can achieve us in Apex?

    I use Apex 4.1.

    Thank you

    Jyo

    JyoInd123 wrote:

    I am looking for an option of selection/browse file where I can select the file in a folder and find the path to the file. But I don't need to save the file in the "WWV_FILES" or BLOB column. Is there a way we can achieve this?. Baiscally I need to extract the file name of the path and use to other transformations. I need the file to be saved in the database. Can achieve us in Apex?

    It looks like a continuation of the previous thread: retrieve indicated in the item browse file full path? I hope that the conditions are now more clear and achievable in practice.

    It is possible to extract the name of the file, rather than the path. An example of a method to do this is provided in the specification HTML for the type of input file.

    In APEX, create dynamic action before this Page with 2 actions. In the first use, an action to run the JavaScript Code to copy the file name of the file search for point to another page using the method in the link above. In the second, apply an action to disable the item browse file to prevent the file downloaded with the subject page.

  • SQLDev4 - sdcli - space in the name of the report (Linux/Mac)

    Version SQL Developer - 4.0.0.12.27

    Under linux/Mac, platforms, SQL Developer 4, when you use (sdcli) command-line interface to generate html from a 'user defined Report", if the report path has space, then it fails. Its due to the use of $* sqldeveloper/bin/sqldeveloper file used to launch the IDE. If the parameter is passed to the place using the "$@", then the report name is correctly passed to the IDE and it generates the report successfully.

    Maybe Developer SQL Developer may want to fix this bug.

    $ grep LaunchIDE sqldeveloper

    LaunchIDE $*.

    $ bash sdcli reports generate - report "Names/latch Vishal/statistics names" db - files 11203_RHEL6-/tmp/vishal.html

    Oracle SQL Developer

    Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved

    July 25, 2013 16:34:58 javax.ide.extension.spi.DefaultElementContext resolveResource

    GRAVE: jar:/file:/Applications/SQLDeveloper.app/Contents/Resources/sqldeveloper/sqldeveloper/extensions/oracle.sqldeveloper.migration.application.jar!/META-INF/extension.xml:16: resource not found: ' ${SCRATCH_COMMAND_ICON} ".

    Invalid reports command:-FILE

    $ grep LaunchIDE sqldeveloper

    LaunchIDE "$@".

    $ bash sdcli reports generate - report "Names/latch Vishal/statistics names" db - files 11203_RHEL6-/tmp/vishal.html

    Oracle SQL Developer

    Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.

    July 25, 2013 16:35:24 javax.ide.extension.spi.DefaultElementContext resolveResource

    GRAVE: jar:/file:/Applications/SQLDeveloper.app/Contents/Resources/sqldeveloper/sqldeveloper/extensions/oracle.sqldeveloper.migration.application.jar!/META-INF/extension.xml:16: resource not found: ' ${SCRATCH_COMMAND_ICON} ".

    Success!

    Hello.

    connected n fixed a bug 17221719.

    Thank you

    Barry

  • Open a new file in photoshopcc and the name of the file is displayed but no Web white work. You can see it as a layer in the layers panel and if I pull on the grey area I see int on the layer, but not on the main screen.

    Open a new file in photoshop cc and the name of the file is displayed but no Web white work. You can see it as a layer in the layers panel and if I pull on the grey area I see int on the layer, but not on the main screen.

    Nice day!

    Could you please post a screenshot with the relevant panels visible?

    Not turning off"use graphics processor" in the Performance preference and restarting Photoshop have a bearing on the issue.

    Kind regards

    Pfaffenbichler

  • ADF - listener to download files of component - defining the name of the output file

    Studio Edition Version 11.1.1.2.0


    Hi, I would like to learn how to set the name of the output than the current data file + file name. I have a button with the component listener downloading files with theses parameters

    Content/Type: application/pdf
    File name: test.pdf
    Method: fullReportPDF()

    I needed when the user clicks the button, it returns the current date + the statically defined file name.


    How can I do this?

    A bean, you implement a method that returns the date soul filen and static part concatenated and set it as EL in the af: fileDownloadActionListener

    // on the page
    
    
    // in the bean
        public String getFilename()
        {
            String fn = (new Date()).toString() + "static_part.xyz";
            return fn;
        }
    
        public void fullReportPDF(FacesContext facesContext, OutputStream outputStream) { ... }
    

    where XYZBean is the bean where you have implemented, the method fullReportPDF.

    Timo

Maybe you are looking for

  • How can I uninstall last updated?

    Auto-update of Firefox (29.0.1) and completely changed my interface. I hate it. How can I get the latest version back? What is the name of the latest version? It is hard to tell on the download page.

  • Cannot restore iphone6 sauvegardΘ - out of memory

    Hi all I lost a few messages on my iPhone somehow and I try to restore from dos, I done a week before and quantified for the first time. When I click on the restoration of the back to the top and enter all passwords I get "restore in progress" on the

  • UNMOUNTABLE_BOOT_VOLUME during the upgrade to Windows 7 from Windows Vista

    I'm getting an unmountable_boot_volume during the upgrade to Windows 7 from Windows Vista.  It occurs after Windows 7 software loads and restarts.  If I restart the computer, I have the option to start the upgrade to Windows 7 or Windows Vista.  If I

  • An Apple compatible a PC SATA

    An Apple SATA works with a PC Sata too.

  • Help with filters...

    I have a BasicEditField Age which should accept only 0-9 and the letter 'or a' character.  Given that I am new to blackberry can someone give me an example, please?  I tried some things using TextFilters, but does not work as I wanted to. any help is