Can one lift a file-name without the file.extension in javascript

I suspect this matter may have come up before but I could not find a thread on it ...
Anyway: If I grab a filename for later use with
var thedoc = app.activeDocument
var docName = thedoc.name
it picks up the original file-extension too.
Is there a way to avoid this or to »substract« the extension later on?
What I want to use that for is for saving multiple flattened CMYK-files from a layered RGB-psd-file into the same folder as the psd-file and appending a letter-combination to signify what printing-conditions they were generated for.
As Im plenty ignorant in Scripting-matters any help would be appreciated.

Here I go again:
Originally I thought I would combine Actions and Scripts into a Droplet but then I got to thinking one Script containing all the operations would be neater.
However I cant figure out how to write the Color Conversion of the RGB-files to CMYK into the Script.
In »convertProfile« how do I address the ICC-Profiles and the Intent?
Once again help would be appreciated, as I simply cant seem to figure it out from the Adobe-documentation on Javascript or a web-search.

Similar Messages

  • Is there a way I can use my external hard drive without the files being transferred on to my computer? as like like my iTunes music being on my hard drive without them being copied onto my computers hard drive ?

    is there a way I can use my external hard drive without the files being transferred on to my computer? as like like my iTunes music being on my hard drive without them being copied onto my computers hard drive ? because i dont have that much memory and i wanted my external hard drive to be the source for my music files and not my computer.

    Many users keep their iTunes libraries on external drives. You just have to remember to connect and power up the drive before launching iTunes.
    iTunes for Mac: Moving your iTunes Media folder:
      http://support.apple.com/kb/HT1449 

  • "Could not save (file name) because the file is already in use or left open."

    Hello,
    When I tried save as a file, I get an error msg:
    "Could not save (file name) because the file is already in use or left open."
    The file is not open anywhere accept Photoshop.
    Mac Pro, OSX 10.5.6
    Photoshop CS4.
    I searched the forum but could not find anything even though i'm sure someone already asked it.
    would love to get a solution for that.
    thank you,
    shlomit

    There is a problem with both Photoshop and InDesign, then we can blame wich ever it is.
    1. I open a .psd file in Photoshop CS4 by double clicking it in Bridge
    2. This image is placed on a page in a open InDesign document.
    3. Doing some changes in Photoshop on the image.
    4. Trying to save and get this error message (this topics subject)
    5. Deleting the image from the page in ID doc, it is the only one in the document.
    6. Can't still save file.
    7. Closing ID completely and now I am able to save the file.
    I tried turning of Live preflight in Indegisn but that didn't help.
    So probably the fault is InDesign or the MacOS. I didn't have this problem with CS3. It is a stupid problem because this type of workflow is pretty common and one would expect it to be solved by now.
    Jan Suhr
    Stockholm, Sweden

  • Change File Name In The "File Download" Dialog Box For Web Reports

    Hi All ,
    I followed the below note to change the "File Download" name.
    How To Change The File Name In The "File Download" Dialog Box For Web Reports? Doc ID: Note:418366.1
    However its not working. Has anyone tried this and works fine ?
    Basically I wanted to change the name "rwservlet" when a report is run in an
    excel format.
    Rajesh Alex
    Rajesh Alex

    Hello,
    Have you checked if a HTTP header "Content-disposition" is returned ?
    You can use ieHTTPHEaders for IE
    http://www.blunck.se/iehttpheaders/iehttpheaders.html
    and
    Live HTTP Headers for FireFox
    https://addons.mozilla.org/en-US/firefox/addon/3829
    Regards

  • Could not save as (file name) because the file could not be found

    When i try saving sothing it comes up with could not save as (file name) because the file could not be found and need to save this file. i could save stuff before but not anymore if anyone could help i would be grateful
    im using photoshop cs5.1
    Thanks keiron

    We cannot know. These kinds of things are operating system errors with stuff getting blocked due to insufficient permissions, security tools interfering, network errors or whatever. Since you mentioned none of that, it's an "Ask your mom..." thing at this point, but if you provide more details, someone might be able to figure it out.
    Mylenium

  • Previously Firefox would show a number at the end of the file name (renaming the file by adding a number) showing that I had already downloaded a file at least once before. Recently that isn't happening. How do I get that feature back?

    When downloading, previously Firefox would show a number at the end of the file name (renaming the file by adding a number) showing that I had already downloaded a file at least once. Now that isn't happening. How do I get that feature back?

    When downloading, previously Firefox would show a number at the end of the file name (renaming the file by adding a number) showing that I had already downloaded a file at least once. Now that isn't happening. How do I get that feature back?

  • Obtaining file name from the file path given

    hi,
    how to obtain  file name from the file path given

    Hi bharath,
    1. PC_SPLIT_COMPLETE_FILENAME
    2.
    DATA : path LIKE pcfile-path.
    DATA : extension(5) TYPE c.
    path = filename.
    CALL FUNCTION 'PC_SPLIT_COMPLETE_FILENAME'
    EXPORTING
    complete_filename = path
    * CHECK_DOS_FORMAT =
    IMPORTING
    * DRIVE =
    extension = extension
    name = name
    * NAME_WITH_EXT =
    * PATH =
    EXCEPTIONS
    invalid_drive = 1
    invalid_extension = 2
    invalid_name = 3
    invalid_path = 4
    OTHERS = 5
    regards,
    amit m.

  • Changing of the physical file name of the file after archiving

    Hi all,
    We are in process of archiving  and  completed the process successfully and archived to o:\PRODSID\<filename>.
    When refresh   is happening from Prod to Quality   the archived data will come as O:\PRODSID\<filename> and the archived files will not be accessible since quality system  is not able to find the path with O:\PRODSID\<filename>.
    Is there anyway i can change the physical file name  of the archived files to correct path O:\QUALITYSID\<filename>, i need to change only the SID  only    from PRD to QUALITY.
    Thanks,
    Subhash.G

    Hi Subash,
    Do you want change the Physical File name or the Path from PROD to SID.
    Path :- in the transaction called FILE, double click on Logical Path Definition , select the Logical File and double click on "Assignment on Physical Path to Logical Path" and you can change FILENAME also here
    Thanks,
    Sravanthi

  • How to route the file, base on the file name without touching file content?

    Hi All,
    can you please provide me solution how to route the file based on file name with out touching file content.
    Business criteria :
    > One source directory having zip files with different file names
    > File adapter have to pick the zip files and have to route it to different email addresses based on fist 5 characters of file name.
    please provide possible solutions to route the zip files to target.
    Regards,
    Sreeramulu Konjeti.

    You can use Standard context object FILENAME.
    in receiver determination Put a condition based on standard context object FileNAME
    In the receiver determination, in the condition channel, use the Technical context object 'FileName' for file adapter.
    Follow the below path:
    Goto Receiver Detrmination --> Condition --> Left Operand f1 Help --> select first option 'Context Object' --> 1 List will be popped up --> Select FileName for File adapter from that list
    It will route the file based on filename.
    You can use CP for contains pattern (u2248) in condition
    FileNAME u2248  ABCFI*

  • Getting File name without the suffix

    If I have a file name myfile.java
    Is there a function where I can get it to be just myfile without the .java at the end?

    public static String getBaseName (String filename) {
         filename = filename.substring (0, filename.lastIndexOf ("."));
         return filename;
    public static String getBaseName (File file) {
         String filename = file.getName ();
         return getBaseName (filename);

  • LabVIEW 2011 file selection fails to fill in the file name into the "File name:" field

    In LV2011 I am selecting a text file while my code is running. The "file name:" field is not populated with the selected file name.
    This is inconvenient, especially if I want to modify a file name by one or some few characters.
    How do i make LV 2011 behave like the previous versions?
    Scientia est potentia!
    Attachments:
    File name is not filled in.PNG ‏72 KB

    Thank you fot your reply it causd  me to find the problem.
    I figured it out while I was trying to extract the applicable section of my code to send it to you.
    I had an asterisc wired to the "default name" input of the "File dialog" VI.
    Now I am not wiring anything to the "default name" input of the "File dialog" VI and it works just fine.
    I am sorry for your lost time.
    Scientia est potentia!
    Attachments:
    Corrected code.PNG ‏10 KB

  • Random Artifact and "Could not save (file name) because the file is already in use or left open."

    Hi,
    I've been working on a collage for school, and I 'merged all layers below into one layer', and photoshop left me a random artifact on all my masks. Also, the same file has been suffering the 'Could not save...' problem. I have taken older versions of the file, brought them back to where I had been, and then a similar artifact appears (from various actions). Once the artifact appears, I can undo the action but not the artifact, and the file is useless. It happen on a second file, but the artifact was different (a rectangular hole in the middle of the masks).
    I have a MBP/4GB/MacOSX 10.6.4, everything is up to date.
    If anyone has any suggestions, it would be really appreciated... I'm working for a deadline at school.
    Thanks,
    Patrick

    Hi Chris,
    I have updated both the Adobe suite and the MacOSX. My school has CS5. The holes cut into the image in a geometric pattern (the rectangles) are the random artifact (cropped below).
    Also, I understand 'Could not save...' means it could not save... Why it cannot save seems to be the issue. I believe you understand the circumstances of the 'Could not save...' issue, and it isn't simply that another program has it open.
    http://forums.adobe.com/thread/370206?start=50&tstart=0
    I don't really know if it's Adobe, Apple, or Windows issue, and I don't think it really matters. It is a problem in Photoshop, which would make it an Adobe problem... and waiting for a fix doesn't seem to be a satisfactory answer.
    I don't want to make this tread about politics, I want to fix my file, and I thought it might be another symptom to a bigger problem.
    Thanks for your response,
    Patrick

  • Restricting length of file name of the file to be uploaded in file browse.

    Hi,
    I have got a file browse item. When the file name is more than 74 characters, it goes to an error page. Can this be avoided?
    To prevent this, I tried using a javascript
    function doSubmitWithProgress()
    if (document.getElementById('P202_FILE_INPUT').value.length > 70){
    alert('File name should be less than 70 characters in length.');
    object.focus();
    else
    {$x_Hide('wwvFlowForm');
    $x_Show('InProgress');
    doSubmit('UPLOAD_FILE');
    But this is considering the path of the file as well and hence causing an issue.
    So could you please help me out with this issue.
    If there is a way to avoid going to error page if file name is big that would be great. Otherwise, if there is a way to check just the length of the file name and trigger an alert if it is more than 70 characters, that would help me too.
    Thanks,
    Vignesh

    The issue is that this code
      // Now create an array that contains the individual pieces of
      // the file name split on the "/" boundaries
      var myArray  = fileName.split('/');has the wrong path separator for Windows. Use backslash instead:
      // Now create an array that contains the individual pieces of
      // the file name split on the "\" boundaries
      var myArray  = fileName.split('\\');double backslash is necessary because '\' is the JavaScript escape character, so it needs to be doubled to indicate that that is the character we want.
    However, also be aware that for security/privacy reasons recent versions of browsers do not expose the file path via the .value method. Firefox, Safari and Chrome only provide the filename. IE6 & IE7 yield the path in Windows format. IE8 and Opera, in an effort not to "break the web" (i.e. to bend over backwards to keep poorly coded and non-interoperable Windows sites working) have adopted an irritating approach of replacing the path with a wholly imaginary "C:\fakepath\".
    So your validation may have to cope with up to 3 scenarios, depending on the browsers that need to be supported: only get the filename (FF/Safari/Chrome); get the full path (IE6/7/8 in some security configurations/older versions of all browsers); get a fake path (Opera/IE8 in other security configurations).
    For more information see:
    http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2009-March/018980.html
    http://blogs.msdn.com/ie/archive/2009/03/20/rtm-platform-changes.aspx
    (In 2009 MS are still concerned that pathname segments are limited to 8 characters?)

  • When I download files, firefox is adding " .part " to the file name and the file won't open, but if i back the .part out, it opens fine.

    Firefox seems to be adding " .part " to the file names of files I downoad. Here's an example:
    YuT9iNv8.pdf.part
    I cannot open this file because it can't find an application.
    If I back out the .part, I get a box asking if I want to change the extension to .pdf I check yes, and everything works fine. It doesn't happen with other browsers (Safai).

    I get the error message saying the file could not be downloaded due because there is no enough disk space.
    How large is your HD and how much space do you have left?

  • Error: Could not save "file name" because the file name was not valid. (PS CS6 + WIN 7)

    I have recently purchased a new desktop under WIN 7 as well as Adobe Creative Suite CS6.
    My first internal hard disk is 2 TB, the second one installed is from my old PC, 250 GB.
    I am getting this error when trying to save a file over an existing file using the “Save” command.
    The message is wrong, because the file name IS valid.
    This error is persistent.
    This error does not occur when doing the same action on my second internal hard disk.
    This error happens on files larger than about 1MB in weight.
    What happens is that the original file over which I try to do the ”Save” command gets corrupted and lost.
    If I don't use the “Save as” command to save my work under a different name, my work is lost.
    The same problem occurs with both PS CS6 versions, 64 Bit and 32 Bit.
    I am very disappointed and annoyed with this happening.
    Any idea what is going on here?

    ok ...
    I think I have resolved this.
    I forgot to mention that I have Sugarsync over that file structure.
    However, I do not know if Sugarsync has anything to do with the error.
    I copied the whole folder structure under a newly created folder, and I am no longer getting the error.
    Thanks
    Milan

Maybe you are looking for

  • Error while running the OA Tutorial.

    Hi , I downloaded the new OA J Developer 10.1.3.1 from metalink using the patch 5856648.. I also has access to Release 12 vision instance which i'm trying to run the tutorial againist.. I did setup the jdeveloper on my machine as per the manual and t

  • LIon OS and Flash Player

    Upgraded my Mac Air Leopard to the Lion 2 days ago and had problem with streaming video. The Adobe Flash Player prompted for permission to allow storing on my local disk however no response when I tried to activate the allow option. This happened on

  • Sudoku crashes

    Since yesterdy, on my iPod 5G, 30 GB the game "Sudoku" starts with an error message (translated from German): "Sudoku can not be startet. Please install and start again". I did install it serveral times without any success. At the beginning (for more

  • Help tuning a decryption function

    I have the following function which decrypts credit card number and is running extremely slowly. The problem is related to the cal to an external table 'select enckey into p_key2 from ops_sec'. Looking at the explain plan, this gets executed for each

  • App Store Crashing

    I have an iPad Mini and the past week every time I open the App Store and check for updates it crashes after about 6 seconds. I open it again and the same thing happens again. Any ideas on what the problem could be please?