No files on the path

Hi Forum,

I'm conversion IDML INDD in specific paths of po and THE folders, my JS opens several files only, but not saved to file

Please can we fix my error

My JS:

checkDocLen()

var myDoc.

var mySourceFolder = Folder("/Volumes/User/Desktop/IN");

var myOutFolder = Folder("/Volumes/User/Desktop/OUT");

var Idml_files is get_File (mySourceFolder, [], '.idml');.

If (Idml_files. Length > 0)

{

for (var w = 0; l < Idml_files.length; ++ w)

{

try {}

app.scriptPreferences.userInteractionLevel = UserInteractionLevels.neverInteract;

myDoc = app.open (File (Idml_files [w]));

app.scriptPreferences.userInteractionLevel = UserInteractionLevels.neverInteract;

var myDocNam = stripExt (replace (Idml_files [w] .name) (/ % 20/g, "")) + "co-operate".

myDoc.save (File(myOutFolder+"/"+myDocNam));

app.activeDocument.close ();

} catch (E) {}

}

}

//---------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------ ------------------------------

function get_File (dir, myfile_arr, extension)

{

var f =. getFiles() record (dir);

for (ifil var = 0; ifil < f.length; ifil ++)

{

"" var mystr = f [ifil] + ' ";

var aa = mystr.match (/ \ / [.]) AppleDouble /)

var bb=mystr.match(/[_]VUC69~7/)

var cc=mystr.match(/DS[_]Store/)

If (f [ifil] instanceof file) //change

{

If ((AA==null) & & (cc == null))

{

get_File (f [ifil], myfile_arr, extension)

}

}

on the other

{

if(extension!=".*")

{

If (f [ifil].name.substr (-extension.length) == extension)

{

myfile_arr.push (f [Ifil])

}

}

on the other

{

If ((BB==null) & & (cc == null) & & (f [ifil] instanceof file == false))

{

myfile_arr.push (f [Ifil]);

}

}

}

} //for

Return myfile_arr;

}

//---------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------ ------------------------------

function stripExt (f)

{

Return f.substring(0,f.length-4);

}

//---------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------ ------------------------------

function checkDocLen()

{

app.scriptPreferences.userInteractionLevel = UserInteractionLevels.neverInteract;

while(App.Documents.Length!=0)

{

try {}

app.activeDocument.close ();

} catch (e) {}

}

}

Thanks in advance

Simon

change

var mySourceFolder = Folder("/Volumes/User/Desktop/IN");

var myOutFolder = Folder("/Volumes/User/Desktop/OUT");

TO

var mySourceFolder = Folder ("~/Desktop/IN");

var myOutFolder = Folder ("~/Desktop/OUT");

Tags: InDesign

Similar Questions

  • Since the last nights update I get now launching explorer.exe "windows cannot access the specified device, file, or the path?

    Since update of last nights, I get now launching explorer.exe "windows cannot access the specified device, file, or the path?

    Hi Jemd3,

    I suggest you to completely remove Norton of the system using Norton Removal Tool and check if the problem persists.

    Method 1:

    Maybe it's that your computer is affected by virus and malware. I suggest you run an online anti-virus scan and a scan for Malware. See the links below.

    Microsoft OneCare:

    http://OneCare.live.com/standard/EN-US/3/default.htm

    Malicious software removal tool

    http://www.Microsoft.com/security/malwareremove/default.aspx

    Get a free PC safety scan

    http://OneCare.live.com/site/en-us/default.htm

    Hope this information is useful.

    Thanks and regards.

    Thahaseena M
    Microsoft Answers Support Engineer.
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • RootKit/Malware/Virus problem - windows cannot access the specified device file or the path, you don't have permissions

    Hello

    I have a problem with my computer it has been infected by a virus that is not visible in normal mode. It prevents running any application that would help in the detection and removal. I tried running mrt, mcaffe, trendmicro rootkit detector rootkit detector, spybotSD, analysis windows Defender online Windows live onecar. All these works for a minute and then shutsdown, when I click it again I get the error, as mentioned in the title, 'windows cannot access the specified device file or the path, you do not have permissions.

    This problem has a solution or re - install is the only way out?

    The pointers/help appreciated.

    Just to add, I am able to connect using my last known good configuration and only safe mode configurations.

    Thank you

    Id2View,

    1. follow all the instructions in this thread: How to get rid of malware

    2. If still no joy you can find Microsoft MVPs and other trained analysts on the following support sites:
    Aumha.org
    Atribune.org
    SpywareHammer
    BleepingComputer
    Safer-Networking

    3. If you need help with virus-related issues, contact the Support Services Microsoft product.

    To support the Canada and the United States, call toll-free (866) PCSAFETY (727-2338).

    For support outside the United States and the Canada, visit the page Web of Product Support Services.

    4. If you need more assistance for the position of the newsgroup Microsoft - security - virusvirus/worm.
    Through your News Reader:
    News://msnews.Microsoft.com/Microsoft.public.Security.virus
    Via the Web:
    http://www.Microsoft.com/communities/newsgroups/list/en-us/default.aspx?DG=Microsoft.public.Security.virus

    Hope this helps,

    Vincenzo Di Russo - Microsoft MVP Windows Internet Explorer, Windows Desktop Experience & security - since 2003. ~ ~ ~ My MVP profile: https://mvp.support.microsoft.com/profile/Vincenzo

  • How to display the name of file or the path of the photos on my screensaver when the value for 'My images' using Vista?

    I simply marked the box in 'settings' of the screen saver under Windows XP, but Vista does not display this option!

    When an image appears on my screen saver, I want to find it among the thousands of photos by reading the name of the file or the path at the top of the screen.

    Hello

    This screensaver Vista version doesn't have this option.

    The feature is now part of the Windows Live Photo Gallery.  You can go to http://get.live.com to download the program.  .

  • Cannot open programs and files error: windows cannot access the file or the path of the specified unit. you don't have the appropriate permissions to access the item

    Original title: Search programs and files will not let me

    I get no response from the search - when I hit to see more results I request = aa indicating that windows cannot access the file or the path of the specified unit.  you don't have the appropriate permissions to access the item

    Hello

    1. don't you make changes to the computer until the problem occurred?

    2 when was the last time it was working fine?

    3 are you facing this problem only with Web sites or other sites also?

    I suggest you try the steps below and check if it helps

    Step 1:
    Try to start the computer in safe mode with network and check if the same error message, here is the link:

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

    Step 2:
    However, to work around the problem, try the step below:

    a. right click on the program file, select Properties.

    b. on the general tab, at the bottom, you will see listed in the issue of safety: this file came from another computer and might be blocked to help protect this computer.

    c. unlock.

    d. click on apply.
    e. click OK.

    Hope this information is useful.

  • Add all files in the path when creating file folio in Folio Builder

    Hello everyone.

    I'm using InDesign CS 5 and the creation of folio for iPad 2. My Folio builder was working fine until last week, but all of a sudden I see a change in the way it behaves. When I update the files in the Folio Builder, it adds all the files in the path of access (not only the links in the file), including source of PSD files and other related files that I have never used in InDesign, do folio file will increase in size. Can someone help me please how do I remedy this situation?

    I thank you very much in advance.

    I look forward to your solution.

    You have an HTML file in there? If so, put it (as well as its assets) in its own folder.

    Bob

  • Extract the file to the path

    I'm working on a project which seeks to this folder a file is in before determining what function to perform.  Currently I use nomchemin var = decodeURI (app.activeDocument.path.name); to extract the immediate folder the file is located in, but in some cases, I need to retrieve the name of a folder of that one.  For example, currently gets 1\ C:\Texture Sets\LibraryLarge Format and returns the 'Large Format' folder to the path variable, because the file that I work with is located in this folder.  What I need is a way to check for 'Library 1' in the same way using the same file.  Thanks for any help!

    dgolberg

    You can use...

    var parentFolder = decodeURI(app.activeDocument.parent.parent.name);
    alert(parentFolder);
    
  • Write common spreadsheet files in the path dialog

    Hi guys,.

    I am facing a roadblock here.

    I am currently using create a file (path of the unwired file) so that the user can enter the name of the file "test.txt" to create the txt file. No problem here.

    However, I want this newly created text file to be my path to my writing on a spreadsheet file.

    Please see attached picture.

    Help! Bravo and thank you!

    Why not use Build path? and then send it to write to the spreadsheet file.

  • Can't install downloaded software, receive the message error "Windows cannot access the specified device, file, or the path"

    Cannot install any software downloaded - says "Windows cannot access the specified device, path or file.  You can not have the appropriate permissions to access the item.  This happened after I went on a bad site and downloaded something accidentally and I was not able to do anything after that.  I have avast and avast kept popping up saying I've made to a site with malware and that it would interrupt - well these pop - ups have ceased and I was scanning my computer using windows defender (which did not find anything) - but I still have problems on my computer. Should what steps I take?

    Hello

    Download update and scan with the free version of malwarebytes anti-malware

    http://www.Malwarebytes.org/MBAM.php

    You can also download and run rkill to stop the process of problem before you download and scan with malwarebytes

    http://www.bleepingcomputer.com/download/anti-virus/rkill

    If it does not remove the problem and or work correctly in normal mode do work above in safe mode with networking

    Windows Vista

    Using the F8 method:

    1. Restart your computer.
    2. When the computer starts, you will see your computer hardware are listed. When you see this information begins to tap theF8 key repeatedly until you are presented with theBoot Options Advanced Windows Vista.
    3. Select the Safe Mode with networking with the arrow keys.
    4. Then press enter on your keyboard to start mode without failure of Vista.
    5. To start Windows, you'll be a typical logon screen. Connect to your computer and Vista goes into safe mode.
    6. Do whatever tasks you need and when you are done, reboot to return to normal mode.

    also run the sfc/scannow command.

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

    Use the (SFC.exe) System File Checker tool to determine which file is causing the problem and then replace the file. To do this, follow these steps:

    1. Open an elevated command prompt. To do this, click Start, click principally madeprograms,Accessories, right-clickguest, and then clickrun as administrator. If you are prompted for an administrator password or a confirmation, type the password, or clickallow.
    2. Type the following command and press ENTER:
      sfc/scannow

      The sfc/scannow command analyzes all protected system files and replaces incorrect versions with appropriate Microsoft versions

    If SFC detects the main problems it can't fix you may need to borrow a Microsoft dvd vista not an acer, HP etc. recovery disk and do a repair installation

    read the below tutorial on how to perform a repair installation

    http://www.Vistax64.com/tutorials/88236-repair-install-Vista.html

  • error message "Windows cannot access the specified device, file, or the path."

    Whenever I try to open a file even my music internet explore or anything that I get an error message Windows cannot access the specified device, path or file.

    Hi nanditaberi,

    Since when are you facing this problem? What were the changes to the system between the time where everything has worked, and when you noticed the problem?

    This problem may be caused by this security software on the computer, uninstall them might solve the problem.

    Example: AVG, Zone Alarm

    Important:

    O before you uninstall the security software disconnect the computer from the internet. Make sure that the windows firewall is enabled.

    Ø you may need to check with the manufacturer of security software for reinstallation and activation.

    O re - install the security software on the computer.

    Reference:

    Please read the steps provided by, Donna, dated Saturday, January 3, 2009 14:01click here for the post.

    A scanner online for any threat and try to correct

    http://OneCare.live.com/site/en-us/Center/cleanup.htm

     

    Thank you, and in what concerns:

    Ajay K

    Microsoft Answers Support Engineer

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Use regular expressions to extract .llb file from the path name

    I'm trying to be smart (always a dangerous thing) and use a regular expression to extract the name of a library to a filepath converted to a string.   While I appreciate there are other ways to do this, regex seems to be a very powerful way of neat, I would be able to operate.

    IE, if I have a string of type, C:\applications\versions\library.llb\toplevel.vi, I want to be able to extract the library.llb of the string, because it will be of variable length, may include the numbers & spaces and may be located in a file of variable depth hierarchy.   In other words, I want to extract the part of the string between the last-which ends with .llb

    The best I managed so far is \\+.*llb who all returned less the drive letter and the toplevel.vi

    Can someone help me to achieve this goal, or I'm better by using an alternative method (for example filepath string in array, search for .llb)

    Thank you

    Matt

    Hi Matt,

    attached you will find two other options.

    Mike

  • If I use my photos for the screen saver, how can I get the file or the path to display at the top of each photo?

    I love to see the name of the folder on the picture, then I remember where the photo was taken.

    Hello GwynneSmith,
    This thread has been created in the Microsoft Site Feedback forum. the Microsoft moderation team has moved this thread to the files, folders, and search Forum.
  • Try to save a text in a file, but the path of the file or directory may be incorrect.

    Could someone help me check the \\server\share\file_path, which is correct or not?

    FILE * f = fopen ("/ shared/documents/save.dat", "wb");
    {if(f==null)}
    fprintf (stderr, "Failed to create output. txt\n");
    _exit(2) (1);
    }
    fprintf (f, "Hello World!");

    The result is always f == NULL.

    "Remove the tip /, i.e." shared/documents/Save.dat' and you must have declared action access_shared

  • Cannot add files to the path of the construction

    Running my app on tomcat.

    I want to connect to the oracle database, I need classed12.zip (which contains the CBC to "oracle.jdbc...", "javax.sql...") which are necessary for the connection.

    It could be a very simple Question but you need to know how to add this on my way so that my jsp that reads, he can do it easily.

    P.S.: If you need to see the classes12.zip, I joined along.

    Thank you

    It is more a question of a Flex one jsp related. Ask this question on the forums JSP.

  • Developer SQL 4.1.2.20 Build HAND-20, 64: cannot drag-and - drop in editor files include "#" in the name or the path

    Developer SQL 4.1.2.20 Build HAND-20, 64: I am not able to drag-and - drop a file from Windows Explorer into the SQL Developer Editor window if the name of the file or the path includes sharp «#» Unfortunately, my main directory structure contains a ' # ' in one parent folder names and I use drag-and - drop all the time... it is, I used to. :-)

    I am running Windows 7 Enterprise 64-bit with Service Pack 1

    It wasn't a problem in the previous version of SQL Developer 4.1.1.19 build HAND - 19.59.

    Thanks to study deeply and providing a repeatable test. It is a very strange edge cases.  Particularly interesting is...

    This same issue exists for JDeveloper Studio Edition Version 12.2.1.0.0

    After my tests in SQL Developer 4.1.2 the question seems to be, that say you, trying to open any file (I tried sql, xml, and pkb types) by drag-and - drop from Explorer Windows to a publisher of target opened on a XML file with a symbol of hash somewhere in the specification of the file it is.

    First of all, as a solution, I thought that I could recommend that you drag-and - drop since our view > files browser rather than Windows Explorer.  Which avoids the question and even you will descend on the Start Page tab, any worksheet or another editor must be opened before hand. However, there is a completely different problem with that: try to close the last tab of the XML Editor open blocking the entirety of the product.

    As you do not declare it against a release of the Early Adopter, where our team connect the bug, the standard procedure is so that you can open a service request with the support of the Oracle. My research did not turn any latest bug as this connected against SQL Developer or JDeveloper.

    Edit: In fact, just double click instead of using drag-and - drop from view > files avoids questions, name incorrect both hang at the end.

Maybe you are looking for

  • Firefox4Life78: cannot open firefox

    Hi, spoke with 3 technicians today and not found any solution to the problem. I even went as far as buying the Malwareby Anti_malware and found NO problem. Again, I can not open firefox by clicking on the icon. It has been uninstalled and reinstalled

  • Cyan is bleeding on every printed page

    On my Laser Jet Pro 200 color cyan ink is bleeding on all my printed pages. How can I stop this?

  • 3rd generation airport emits extreme el capitan

    Since the upgrade to El Capitan, I have problems wireless with my 3rd gen airport extreme and I was wondering if it is just 'too old' for El Capitan, or just started South on me in general at a time coincidence.  It seems to be very much like a wired

  • How to disable voice Apple Watch

    Apple Watch parameters allowed the voices be turned on, but I've got this ' t turn it off. Siri said that he can't turn it off. Help welcome!

  • Vision of the E1 AMD(1000-1b04AU): Wifi does not

    Hello! I am not able to find the drivers for the following: -. (1) network controller Hardware ID - PCI\VEN_1814 & DEV_539B & SUBSYS_18ED103C & REV_00 2) PCI BUS Hardware ID - PCI\VEN_10EC & DEV_5229 & SUBSYS_188B103C & REV_01 SM Bus controller 3) Ha