Action of folder to create subfolders of files is passed in
This is probably very simple, but can't seem to understand.
I need a record of Automator action that will automatically create a subfolder with the same name as the element that fell into it.
Any help on this would be greatly appreciated.
Thank you
Without seeing your script, it's impossible to guess where you are having problems, but there are several things to consider:
1. you cannot create a folder with the same name as the file, because you will have a name conflict (two elements in the same directory with the same name
2 when you create the folder, the folder Action fires again because there's another new element in the folder
There are solutions, however.
For the second, your file must check if the newly added file was a file, in which case he must ignore (assuming that only the files dropped are valid).
For the first problem you can create the directory, move the file, and then rename the directory, thus avoiding name conflicts.
Hand, I don't know how to make this work in Automator (Automator workflow controls are awful, IMHO), but a simple AppleScript solution might look like:
on Adding folder items to thisFolder after receiving of theseItems
Repeat with eachItem in theseItems
say application 'Finder '.
if class eachItem is the document file and then - we have a file
game of thisItemsName to the name eachItem - capture his name
game NewFolder to (create a new folder to thisFolder)-create a new folder
eachItem move NewFolder - move the file to the new folder
Set the name of NewFolder in thisItemsName - then rename the folder
end if
end say
end Repeat
end Adding folder items to
Tags: Mac OS & System Software
Similar Questions
-
Windows operating system. I get a disk crash and a lot of my restored photos and documents are now set to hidden or read only files. I would like to reset the attributes of files to remove these attributes, but are not particularly care to do one file at a time. How can I make a folder at a time?
Hit,
This should give you all the information you need on the attrib command from a command prompt window
http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/attrib.mspx?mfr=true
To open a command prompt window.
- Click Start
- Click on run
- Type cmd and press enter
Post back if you have any other questions.
Tricky
-
Create subfolders in the folder in the document library
I am trying to create subfolders in a particular file, I have in the document library. I tried right click, select new, and there is no option to create a new folder. I tried to create a folder on the desktop and by dragging in the folder and the files came the file disappeared! For example, I managed to trade shows, so each show has its own file in the document library. For each show, I want to create subfolders for contracts, menus, etc. I hope that this option has not disappeared in the new OS!
Hello
You should be able to simply locate the folder in the library where you want to create the subfolder.
Double-click the folder to open it then right click inside this folder and select the new/folder option.
When you open the library, look at the top-right of the window and make sure that this folder is selected in the Arrange by: menu drop-down.
If you have this option is set to something like name or modification Date, then you will not see the new/folder option.
Let us know if that helps.
Concerning
-
Peform OCR on all PDF files in a certain folder and its subfolders
I wanted to do an OCR PDF files in a certain folder and its subfolders, without moving the files in their subfolders. Naturally I went to: documents - ocr multiple files - add files - add directories. Then came the problem. Updated Adobe established a list of almost all the files in this folder and subfolders, even including Word files. I wanted to only PDF files, I went down this list and deleted all files which was not a PDF file. Then I turned it off, and it worked.
How can I tell Acrobat I want only to run OCR PDF files in a folder and subfolder? How can I tell that it does run OCR on Word files, who already have the recognizable text?
It is Acrobat X (not pro) on 64-bit Windows 7, FYI.
If you have Acrobat X, you lucky that you can run an Action on this file and OCR PDF files just in it. If you upgrade to XI, you will not be able to do and it will convert all the files not PDF to a PDF as part of this Action. You basically need to do is set up the Action, add the step of recognition of text and make sure that under file/folder of input options you uncheck all other types of files, so that only PDF files is treated.
-
Can we create backup files to another folder with timestamp of a file in another folder?
Original title: automate the process to create backup files.
Can we create backup files to another folder with timestamp of a file in a different folder.
My goal is: when I dump/copy the files in the folder 1, saving the same file must be created in the folder with timestamp 2.
This will apply even if I change the file existing on the record 1 (i.e. If I change an exixting file in folder 1, this change should reflect by creating a new file with timstamp)Hi Dhawal02,
This option is no longer available in Windows XP.
You can use your favorite search engine and download & install any third party software that can serve the purpose.
Note: This response contains a reference to third party World Wide Web site. Microsoft provides this information as a convenience to you. Microsoft does not control these sites and no has not tested any software or information found on these sites; Therefore, Microsoft cannot make any approach to quality, security or the ability of a software or information that are there.
Hope the helps of information.
-
Cannot create a .db file in the assets folder
I am trying to create a quizz.db file in the current folder by creating first a temporary quizz.db in the folder data and then creating tables inside and then copy it in the current folder. By debugging code, it shows that the folder is created. But I can't find it in the current folder. Here is the code
#include
#include #include #include using namespace bb::cascades; using namespace bb::data; SQLTest::SQLTest(bb::cascades::Application *app): QObject(app) { const QString fileName = QString("quizz.db"); QString dataFolder = QDir::homePath(); QString newFileName = dataFolder + "/" + fileName; QTemporaryFile file(newFileName); // Open the file that was created if (file.open()) { // Create an SqlDataAccess object SqlDataAccess sda(newFileName); // Create a table called Employee in the database file sda.execute("CREATE TABLE Employee( firstName VARCHAR(50),lastName VARCHAR(50), salary INT);"); // Insert employee records into the table sda.execute("INSERT INTO Employee (firstName, lastName, salary) VALUES (\"Mike\", \"Chepesky\", 42000);"); sda.execute("INSERT INTO Employee (firstName, lastName, salary) VALUES (\"Westlee\", \"Barichak\", 55000);"); sda.execute("INSERT INTO Employee (firstName, lastName, salary) VALUES (\"Ian\", \"Dundas\", 47000);"); if(sda.hasError()) { } else copyFileToAssetsFolder("quizz.db"); } } void SQLTest::copyFileToAssetsFolder(const QString fileName) { QString appFolder(QDir::homePath()); appFolder.chop(4); QString originalFileName = appFolder + "app/native/assets/" + fileName; QFile newFile(originalFileName); // If I enable this `if` condition the code satisfies it and removes the quizz.db file and then it satisfies the next `if` condition and successfully copies the quizz.db file from `data` folder to `assets` folder. /*if(newFile.exists()) QDir().remove(originalFileName);*/ // this `if` condition is not satisfied. Which should mean the quizz.db file has been created on assets folder. if (!newFile.exists()) { // If the file is not already in the assets folder, we copy it from the // data folder (read and write) to the assets folder (read only). QString dataFolder = QDir::homePath(); QString newFileName = dataFolder + "/" + fileName; QFile originalFile(newFileName); if (originalFile.exists()) { // Create sub folders if any creates the SQL folder for a file path like e.g. sql/quotesdb QFileInfo fileInfo(originalFileName); QDir().mkpath (fileInfo.dir().path()); if(!originalFile.copy(originalFileName)) { qDebug() << "Failed to copy file to path: " << originalFileName; } } else { qDebug() << "Failed to copy file data base file does not exists."; } } // mSourceInDataFolder = newFileName; } If activate the commented "If" condition of "copyFileToAssetsFolder" int he removes already created quizz.db file in the current folder (that Im unable to find) and goes inside the next ' if' and copy the quizz.db created on the folder "data" of active fodler. But in any case I don't find the quizz.db in the current folder. I really need help with this quickly. Thank you.
Thanks to read this to learn why you can have an application change the assets folder: https://developer.blackberry.com/native/documentation/bb10/com.qnx.doc.native_sdk.devguide/com.qnx.d...
-
There was an error creating a zipped folder - "missing or empty zip file.
I use Windows 7 64 bit and want to Zip to a large number of content items in a foder, about 1200 points, amounting to 800MB. I select items, right click, "send to" and select "compressed (zipped) folder." The process begins and after an indefinite comes up with an error 'compressed folder error - missing or empty Zip file.
It's very strange because the process is in fact create the zip folder, sometimes it gets a little path through the process before the error and creates a small (8 MB) zip file, sometimes it get far and creats a big file (250 MB), but it ends.
Any ideas?
You can use a 3rd party zip software.
I don't know whether you are running in a limitation of the program.Some have the trial version that you can download to see if it will work for you.
Thank you
-
I had an accident and now I can't create a new file or folder.
original title: new file or folder
I had an accident and now I can't create a new file or folder. When I try the NEW space is marked void
You can restore with this guide:
Windows 7 - new context Menu - delete & restore default Menu items
http://www.SevenForums.com/tutorials/28677-new-context-menu-remove-restore-default-menu-items.html -
How to create a new file when I open a folder?
original title: Stupid Question... The files and folder, how can I
Create a new file when I open a folder? I use Windows 7, Microsoft Office Word 2003.
In Vista when you are in a folder, you just went to the file, new, and created a new file but Windows 7 won't let you do.
Thanks for any help. THE
Right-click in the folder and select new.
Kind regards
Hank Arnold
Microsoft MVP
Windows Server - Directory Services
http://it.Toolbox.com/blogs/personal-PC-Assistant/05/07/2010 17:16, lead foot wrote:
Create a new file when I open a folder? I use Windows 7, Microsoft Office Word 2003.
In Vista when you are in a folder, you just went to the file, new, and created a new file but Windows 7 won't let you do.
Thanks for any help. THE
Best regards, Hank Arnold (MVP - DS)
-
I have an old mac in 6 years that the battery exploded so I bought a new mac (Macbook Pro 13, 2015, running OS X El Capitan). I have an external hard drive that I backed up my LR5 the catalog and raw files on my old Mac. On my new mac, I have my EXHD plugged and the LR5 (of membership cloud of Adobe) running. I'm sailing LR5 to open the catalog on my EXHD do, essentially, on all my edits on my photos on my new computer. I get the attached message that it does not bc the parent folder does not allow for files to be created in the breast of the it.
What should I do?
Old mac still works so I was wondering if I could try to save the catalog on a USB (its about 4 GB) and rather than the new mac. Or try to save the EXHD catalog in a different way or something.
Thank you very much!
I copied the EXHD catalog to my new Mac desktop computer and then sailed LR5 catalog on my desktop. WORKED LIKE A CHARM!
-
While creating a new music folder in XP and using the tab of "Customizing" folder properties, properties that had to be "applied to all subfolders" apply properties to all folders and subfolders on the computer and attached externally. How can I retrieve short to restore the entire disk (my drive is saved with the Windows backup feature)?
You can finely tune and crafts which properties are applied to files by using the option you mentioned, as well as "templates folder" as well. But using both in tandem is not very intuitive.
Although it was created using Windows 8 for example, the video below also works for Windows 2000, XP, Vista and 7. This should help you to set up your personalized finely folder and spread it to all folders of the same type.
Apply Styles folder to all subfolders [Video]
cmdrkeene.com/Apply-Folder-styles-to-all-subfolders -
Set comumns to a folder and its subfolders
I use Windows 7. I have download a load of podcasts each day using the downloader "Juice." It places each radio show podcasts in a folder with a descriptive name. All the these are placed in 'My Podcasts', then I'm...
My Podasts
-Programme_A
-PodcastsProgA_date_1
-PodcastsProgA_date_2
-Programme_B
-PodcastsProgB_date
-Programme_C
-PodcastsProgC_date
etc.
So I can see what's new the other day, I extracted the files Sub-folders (the Program_X records), then b: Delete subfolders a: send them to my MP3 player. The next day, I'll have a new brood of subfolders, dependiong on what programs have issued new podcasts to date here.
Here's the problem: Windows seems to detect that these are audio files and make the columns in newly created subfolders
as follows: name / # / title / contributing artists / Album
What I want is: name / title / modified Date / Size
I have reset the columns of my Podcasts and they are not modified by a download, but I can't find any method to the default columns for any subfolder of my Podcasts.
How do we? I can not even find a way to change the columns in all subfolders each day - the only way that I can find is to change each one individually.
Among the predefined formats column that you pointed out above, is that I suppose the operating system to aid is 'music '. He must get this information from a file somewhere. can you tell me where it is? Maybe I can change it.
It is almost certainly set in the registry. If it is then a Google search could tell you where exactly it is and how to edit.
-
We have recently installed Office 2016 on a couple of Macs at work. We have XI of Acrobat Pro installed, and the other has the version of Creative Suite (Acrobat Pro DC) subscription. After you have installed Office 2016, we have two different problems when trying to create a PDF file from a doc or docx file by dragging the Word on Acrobat file (which we always used to do before, without any problems):
1. on the computer with Acrobat Pro XI, drag the Acrobat doc file try to open Word 2016 with Acrobat, but then gives an error (cannot open Word) and the process stops. Do drag directly on doc file Word can open without error, and drag a PDF Acrobat file opens without error. We have tried to reinstall Microsoft Office and Acrobat and of course restarting the computer, but without success - the problem persists. Before installing Office 2016, the conversion would happen almost immediately, without the word being opened in the background.
2. on computer 2, it's a different problem. The process works, but when you drag the file doc on Acrobat Pro DC, it begins to convert, but then he said that additional permissions are required to access the files (the way it gives looks like: private/var/folders/hn/vpyjby8d7r34y68chxfx9mpc0000gn/T/Acr175842024411136-91550.tmp) I have to then click on "Select" and grant access to the folder. It wouldn't be a problem if this were to be done once, but she does whenever I try to convert a doc in this way file (the path is always the same, but the .tmp file is always different). I thought it may be a permissions problem - do a read the information on file shows (/ T /) read & write access to me and "no access" for "everyone." I tried to settle temporarily "read and write" access to "everyone", but that did not help. Is there another way to give access to the applications in a folder without having to manually grant whenever an action?
Thanks in advance to anyone who can offer a solution to these two problems!
Integration between older versions of Acrobat (11 and earlier versions) and office 2016 will not be forthcoming. You need Acrobat DC for that integration. Sorry!
-Dov
-
I want to create subfolders, how can I do?
Hi, my page is almost finished, but I have a problem.
iWant to create subfolders as... 'Muse Export' (this is where my site locates, and the HTML files also the css and images folder)
So now, in this case I want called subfolders
customers/Customer1
/ Cusatomer2
/ Customer3 and so on.
in the customers folder, it will be a html designed with different galleries.
the galleries located in records of clients such as:
Gallery1/customers/customer1/gallery1html =
Gallery2 = /customers/customer2/gallery2.html
in each folder will be a .htaccess file to grant access only to the gallery you have the connection to.
But that is the problem...
When I create a page in Muse, so I can't set/export single pages in different folders.
is there any solution for this?
I really need your help
English or German... cause im German.
It is simply not possible. You must do it outside after publishing the files and use another FTP transfer tool to maintain the structure.
Mylenium
-
How to make a folder shows the number of files in there?
How to make a folder shows the number of files in there?
You have not indicated what OS you are using.
Yosemite
Action > View Options: Select to display the item of information
Maybe you are looking for
-
How to pin a website for the Firefox jumplist in Windows 8?
How to pin a website for the Firefox jumplist in Windows 8? I use Firefox version 35. I have a site pinned on my Firefox jumplist taskbar, but may not know how to add additional sites. Thank you!
-
Flash player is up-to-date, and Firefox is the latest version. However, no videos will play on Firefox. They worked fine until recently. We used to watch the videos offered on the weather channel, but the screen is black. When I click on the play but
-
I have a great video to go pro in iphoto. I want to set to decrease the size of the video. How to do this?
-
I installed a Seagate Barracuda 1 TB internal hard drive. He is recognized only after a restart or cold. After "standby" mode, it does not appear in Windows Explorer or disk management.
-
Why my PC2 cannot ping 172.16.0.11?
Hi all In a first time, I learn the Cisco networking so apologies if this is a stupid question. I have a following. image.jpg Now, OSPF, I have it configured on routers R1, R2, and R3, and I see that the OSPF seems to have done his job very well, tak