AppleScript new item added on subfolder - applescript

I've applied "add - new item alert" Folder Action Script on a folder. But its only gets triggered when a file is added to the root/main of that folder, not to its subfolders.
Is there any way to get Folder Actions be trigger when changes occur in subfolders? Thanks in advance.

Related

How can I add a new folder in Sublime Text?

I'm in Sublime working on a project that I need to add a folder in; when I right click to try "Add Folder.." I type in name, press enter and nothing happens. It will still allow me to add a file no problem, but that's not what I need just yet.
You can add files and folders on the sidebar in Sublime Text. First, go to Project -> Add Folder to Project and select whatever your parent folder is. That'll put your parent folder in the sidebar. Then you can right click on any of the folders in the sidebar to create child files and folders.
I was having the same problems, not being able to create folders in the sidebar. Luckily, this method worked for me:
I typed in the name field the full path of one random file:
foldername-1/foldername/filename.php
The folders got created automatically.
I thought I had the same issue, but I've realised that when you click on create New Folder, appears a bar at the bottom asking you for the Folder Name. Once you give it a name, the folder will be added.
I may have the same problem with you.
When I press Enter, it actually gives me a newline.
I can't apply the rename/add folder action through sidebar.
This github issue may be related.

i switch from Sublime to phpStorm, why my main folder and subfolder combine in project files tree?

How can i make customer folder to a subfolder again and create a new folder under the main folder.
In phpStorm the main Folder and the subfolder was combined like(production/customer) in my Project files. Please help. this is really wasting my time.
Make sure you are using "Project" scope in Project View panel and not any other.
Any other scope will "combine" empty parent folder with child one.

Xcode: How to add a file to a folder reference

I want to add a file to an existing folder in Xcode. I have a folder in the file system that I have added to my resources. Now when I add a file to that folder, and try to drag and drop that file onto the folder reference in Xcode, I am out of luck.
Even if I delete the reference and drag the whole folder over again, it does not work, as it imports all files that were in the folder when I originally imported it, but not the new ones.
Any ideas on that one?
Drag it into that folder in Finder, then right click that blue folder in Xcode and then "touch" it. Or collapse and expand that folder icon (is like touching it).

Add an existing folder to TFS source control

Is there any way I can add an existing folder to source control in TFS? I have created a new folder outside of TFS, just in the file system, and would like to add it to source control, but the only apparent way to do this is the ridiculous workaround of renaming my new folder to a temp name, then creating the new folder in Source Control Explorer, then adding the items from my renamed, original new folder.
Just select the folder after selecting the "Add Items to Folder..." option. You can get to this is from the context menu you get when right clicking on a folder (either the name or the actual folder itself).
The next page of the wizard will present you with lists of included and excluded files. Select the files you want and then hit "Finish".
Then submit the pending changes.
Let me share you a easier way that I just figured out.
(I was having the same trouble, and that is why I found this post.)
Drag the folder you want to add to the solution explorer and drop at the place you want to add.
Ta Ta ! It is done.
Mine is VS2010.
Before dragging and dropping or selecting Add Items To Folder, you must map the parent TFS folder to your local drive.
That is, if you want to add a C:\Stuff\HelloWorld directory to the /Top/Projects folder in TFS, you must first map /Top/Projects to C:\Stuff and then add HelloWorld.

How to add an existing sub-folder (with/without child files/folders) to the solution?

The folder resides within my solution physical location but I can not find a command to add existing folder to the project from right-clicking. All I can see is "Add existing files". Trying to create the folder is denied since it already exists!
I tried to move the folder out of the solution folder on the hard disk, and add it again. Thing goes fine but it turns out to be awlful if the folder is a complex folder (with lots of files and folders inside). I gave up!
You need "Include in project":
Click "Show all files", the small button at the head of your Solution Explorer, to show all files/folders of your solution. The ones not in your solution is in phantom/white color.
Right click your "existing folder" and select "Include in project"
Done
Hope that helps!

Resources