How to run a (previously recorded) macro for all files inside a folder ?
Example : I have recorded a macro that is working correctly for an opened html file. I have saved the macro as "test.jsee".
I have a folder in my computer named "C:\folder_with_files". It is full of html files.
How to run "test.jsee" for all files inside the folder "C:\folder_with_files" ?
ps: same question if many subfolders contains html files inside the main big folder "C:\folder_with_files" ?
pps: my idea is that Emeditor opens one file, run the macro, close the file (I have already saved the updated file in my macro) and do the same for the next file.
There are two ways to accomplish your task.
Select Run with Temporary Options on the Macros menu. Select the macro, set the Run the macro against each opened document option, add (or drag and drop) files or folders to the list, and set the Save and close each document after running the macro if necessary.
Or
Select Advanced Open on the File menu. Set the Run a macro against each opened document, select the macro, click the Select Files to Open... button to select all files you want to open.
If you can't see these commands, please make sure you are using the newest version of EmEditor Professional.
Related
I have a program called BulkFileChanger, and when I add files - it opens Windows dialog where I can select files. Now that is common windows dialog and I can select all files ( ctr+a) and it selects all files + all subdirecotires, but when you click OPEN it just imports files, not the files contained in subdirecotires, so is there a way to actually open all files + all files in all subdirectories in normal windows open files dialog ? I am also using some other programs that can open "bulk" files, but strange thing is that none of them (who uses normal windows open files dialog) can actaully open subfolders.... is there some kind of shortcut in Windows that will allow this feature ?
The file dialog will not do this for you. There is no setting that will make it recurse into sub-folders and return all files contained within. If you want that functionality you must implement it yourself.
I would need a folder to be shared on the server and InDesign CS6 would need to load the scripts from that particular location.
Is this possible?
If you just want to include other scripts in your script you can do this:
$.evalFile(new File(mainscriptloc + "/c/some/folder/central.jsx"));
It will load central.jsx into the executing script just like an "include" file.
On a Mac? I found this solution useful:
http://tewha.net/2012/07/make-a-symbolic-link-from-finder/
The best way I found is to create a folder in any place you want your scripts to be (like a server) which is shared with all the users. Then to setup and run the scripts will be more tricky:
Open ExtendScript Toolkit
Open "Scripts" tab
Click on the top-right button and "Add Favorite"
Choose your path to the script and click ok
Now you can click on the drop down on the left and select "Favorites"
Click on the right drop down and click on your folder name
Double click on your script and run it
Now you are running scripts directly from the custom folder.
The startup script cannot be run from there... so it only works with scripts.
We create links in the users individual scripts folders that link back to the actual script in the central repository on Windows. The downside is of course that users will reasonable often accidentally copy the actual script, rather than a link to the script - and then they miss out on future updates to the script.
Below is an example of a typical users 'scripts panel' folder. Each of the shown shortcuts point at a file in our central repository.
When the user opens InDesign these shortcuts appear in their scripts panel the same way a regular script file would.
On a Mac, I suggest using symlinks (a special kind of OSX shortcut - go here for instructions and an Automator workflow download that will create one whenever you need it).
To create a shortcut, simply select the desired folder (recommended) or file located elsewhere on your computer/server and run the workflow (I suggest making a keyboard shortcut to the workflow as described in the instructions). Drag the shortcut created into your inDesign scripts folder and it will appear and operate exactly as the actual script or folder would in your Scripts Panel. Simply click on the link and inDesign will do the rest - you'll never know what you clicked is not the actual folder/file or that it's located elsewhere.
Note: if you create a shortcut to a script file rather than a folder, be sure to remove the extra text the workflow adds to the name (ie. when applied to "MyScript.jsx", the workflow will create a shortcut named "MyScript.jsx symlink". Remove the " symlink" part so inDesign will recognize the shortcut as a script file. Otherwise it will not run).
I've tested this with inDesign CC on my Mac and it works flawlessly.
i have gone through the this post and it says that the files take the automatic behavior of the windows to open the .cs and .sql files.
in my case when i open these files from a folder it opens up correctly in vs and sql server for .cs and .sql respectively.
Can anyone tell me how to open a file in a shelve in any editor other than notepad?
i have also checked the file types tab in folder options.
I believe you are using the VS Shelveset Dialog which is modal - maybe that's the reason "they" designed the View function to spawn a new process of notepad. It's unfortunate because for some file types, the editor is not VS but it will still bring up notepad. This is consistent with all other TFS related operations in VS. with changesets, you can view files in VS or other editor, when you look at any non-modal dialog (history for a single file for example)
So unfortunately without hacking around there's no way to change this behavior.
I have to formate my PC. I have installed Visual Studio again. Earlier I have a project
on Visual Basic. I have the Project files saved as .VBP extn and also have and ExE file for
the same project. It is also running. But How can I retrieve the Forms i have created in VB from these Exe and Project file.
Let's clear something out of the way first, there's no strightforward way to get those forms out of the .exe file, so that is not an option.
On the other hand, the .vbp file is the project file, it does not contain the forms themselves, but it can help you locate them forms.
Visual basic doesn't require for the form files (.frm) to be stored on the same folder as the project file, that is why the project file stores the location of those forms. All you have to do is right click on your VBP file and select open with from the context menu, then select notepad from the list and you will see the plain text contents of your VBP file. Around the top there should be a few lines that look like these (depending on how many forms your project has):
Form=Form1.frm
Form=....\Form2.frm
Form=..........\Source Code\Form3.frm
Those are the "relative" paths of each of the frm files on the project. If yours looks like the first one where there's no path, then it means the frm files where stored in the same folder of the vbp and you have lost them (someone might have deleted them, or not copied them when they sent you the project), in that case there's nothing you can do to retrieve them.
But if the lines on your vbp file look like the second and third line, then search into those folders and the form files "should" be there, but unfortunately there's no warranty.
Hope that helps!
I currently have a project I am building in Visual Studio 2005 and I need to be able to build the part of the project some of the time with directory A and sometimes with directory B and never both. If you right click a file (foo.f) --> Click Properties --> you can change the "Exclude File From Build" from NO to YES and the project will build w/o that individual file.
Is there a way to do this for an entire folder/directory (without individually clicking every file in the folder) so that that particular folder/directory will be ignored in the build?
NOTE: I know I could select all the files in the directory if there were not subdirectories. I realize that would work but there are many subdirectories within this main directory (1000+ files 20+ subdirectories) and using shift and selecting the top and bottom files. You cannot select them all that way; it pops up an error when you right-click!
Solution explorer supports multiple selection.
Open the directory
Select the top file
Hold shift and click on the bottom file.
This will select every file in the directory. The right click context menu will then allow you to exclude them all as a group.
You can get even more fine grained selection by using control to select elements.