Folders' item count versus file count.
At the risk of making a comparison to Windows, it has a default behavior that provides more detailed information.
In the example below, with Mavericks and Windows 7 in Parallels, I "Get Info" and show "Properties" on the same Music folder, respectively.
As you can see, Windows breaks it down to Files and Folders, whereas Mavericks only shows an Item count.
Is there a setting to toggle in Mavericks to provide this level of detail?
Is there a third party plug-in that is recommended that can accomplish the same thing?
You get what you see.
Similar Messages
-
MARS Query 'Hit-Count' versus 'Total-Count'
Hi, I have a question about MARS queries: I run queries using 'custom columns' and I continually hit over 5000 entries. I was wondering if there is a way to show the following:
Custom Colums:
- event type set
- source IP address
- destination IP address, port, and protocol
- <NEW FIELD> 'Hit-count'
The reason I posit the 'Hit-count' field is that this would help me see everything that happened on the first three columns and not limit me when MARS says 'only the first 5000 entries will be displayed'.
If there is any way to count the number of times it happened in a hit-count field, versus counting the number of times it happened and then limiting the displayed results, I would think that would be tremendously useful.
Please let me know if there is already a way to do this, or if there are any plans to add this! Thanks!Don't know about queries, but you define 'Count' in MARS rules, so you could clone the built-in rule and perhaps modify the count value to suit your needs. I know this is not exactly what you are looking for but it might get you going in the right direction. You also have the following variables to play with to further suit your needs:
ANY-(Default). Signifies that the IP address for each count is any IP address.
SAME-Signifies that the IP address for each count is the same IP address. This variable is local to its offset.
DISTINCT- Signifies that the IP address for each count is a unique IP address. This variable is local to its offset.
$Target01 to $Target20-The same variable in another field or offset signifies that the IP address for each count is the same IP address.
Have a look at:
http://ciscosystems.com/univercd/cc/td/doc/product/vpn/ciscosec/mars/5_3/uglc/rules.htm#wp1054961
Also on strange idea, but it might work, in the "Maximum Number of Rows Returned" why don't you try and put 1000, does the MARS accept that? I seriously doubt it would work, but worth a try. I think they used to have an even lower limit in older version (1000).
Regards
Farrukh -
KM report - add folder & file count
Hi all,
I've just finished my custom report to report files and folders in a given time range.
After running one of the default EP reports under 'Content Administration' -> 'KM Content' -> 'Toolbox' -> 'Reports' : 'Delete', the report displays not only 'Found Items', but also 'Folder Count' and 'File count' in the 'schedule' tab.
How can these properties be added to a custom report?
Does anybody now where the default reports par file can be found? Seems like it's not on the file system.
Thanks for the help :o))Hi Kevin,
you might try this trick as last instuction in your execute(..) method:
List summary = new ArrayList();
if(!useFramework) {
summary.add(new Property(PN_RESULT_FOLDER_COUNT,new Long(folders)));
summary.add(new Property(PN_RESULT_FILE_COUNT,new Long(files)));
return receiver.finish("",ITEM_PROPERTY_NAMES, summary);
In fact this is the code block that creates the output in your referenced example.
Best regards,
Michael -
'Info' file count varies between original and copied folders
Unlike Snow Leopard, Lion and Mountain Lion 'Info' counts hidden files in folders (usually .DS files). However copied folders, often to different locations, computers, etc, do not count to the same total as the original folder. How can I stop 'Info' counting hidden files in a folder, so that I can check acturately folder contents between original and copied folders. I do not want to have to open each folder and check the count at the bottom of the window, this is very time consuming when dealing with many folders
I hope there is an easy answer ??You can do this simply in Terminal with the command
ls [directory] wc -l
This will only count the files and folders at the top level (i.e., not the contents of folders within it) and it won't count hidden files.
Examples:
if you want to count how many files are in your home user folder
ls -1 ~/ | wc -l
If you want to count how many files are in your desktop folder
ls -1 ~/Desktop | wc -l
If you want to count how many files are in a folder called 'Temp' on your Desktop:
ls -1 ~/Desktop/Temp | wc -l
If you want to count how many files are in your Trash:
ls -1 ~/.Trash | wc -l
If you want more sophisticated counts, such as subdirectories, type
man ls
into Terminal to read the manual on the various options you can use with the 'ls' command. -
File Count keeps changing in Folders
Greeting All,
I have a few Macs running Mac Os 9.2.2 and they connect to a Mac Pro running OS X Server 10.4.7. The problem I am having is that if there are more that say 75 files in a folder that I open to view, the files in that folder keeps jumping and the file count keep alternating. In other words, selecting a files from the folder is nearly impossible as the files keep moving in the folder. If I connect from a mac running OS X to the said Server running 10.4.7, I do not get this problem. Nor do i get the problem if I Connect the macs running OS 9 to a server running Appleshare Ip Server software I don't get the problem. ThanksHi Mike B,
I tried as you suggested but the 326 or so files in the folder keep refreshing themselves. I've also noticed the file count go up to 352 and then return to 326. It's like there are invisible files in the folder or something like that. and as I said, it only does like this when I connect from a Mac running 9.2.2. Any ideas?
Thanks -
Collect file count and add to CSV file.
I have this script efficiently crafted by Jacques Rioux and I now what to do a little more with it.
What it currently does is look on my desktop at a select number of Folders on my desktop. It then looks at the keyword information and then returns the results to a csv file.
it looks for all the photographs; shot by Matthew. edited by Matthew etc.... with the date appended to the start and then the next time the script is run it adds the next data to the bottom of the last.
The result looks like this
19/12/2012,255,412,37,68
27/12/2012,197,342,16,26
From the fist line you can see on the 19th December 2012 I shot 255 images
No what I would like it to do is:-
a) Specifaically look in the folders of the desktop whose name begins with BH, BU, DA, DI, DO, FR, IN, NO, MA, TM, WA, PR, SE (These folders may or may not exist at the time, but are the only folders it should look at)
b) also do a file count of the contents of the above individual folders and append it to the csv file. Again a folder may not exist. Where it doesn't exist the file count must = 0 so that it can then be added to the CSV file.
This is how I hope the line to look like from the CSV file,
19/12/2012,255,412,37,68, 5,3,20,25,60,101,25,0,85,5,40,0,0
from the line above you can see that the folders NO, PR, and SE were all non existant and therefore a 0 was written in its place on the CSV file.
Below is the working script that looks for the keywords.
set spotlightqueryList to {"Shot by Matthew", "Editted by Matthew", "Shot by Shah", "Editted by Shah"}
set thefolders to {"Desktop"}
set thekind to "PSD"
set csvFileName to "ProductivityLog.csv"
set tHome to path to home folder as string
set tc to count spotlightqueryList
set theseCount to {}
repeat tc times
set end of theseCount to 0
end repeat
repeat with i in thefolders
set thepath to my existsItem(tHome & i)
if thepath is not "" then -- exists
repeat with j from 1 to tc
set tQuery to item j of spotlightqueryList
do shell script "mdfind -onlyin " & thepath & " " & tQuery & " " & thekind & " | wc -l" -- wc return the number of lines
set item j of theseCount to (item j of theseCount) + (the result as integer) -- add the number of lines
end repeat
end if
end repeat
set csvPath to "DCKGEN:Brands:Zoom:Online Photography:" & csvFileName
set oTID to text item delimiters
set text item delimiters to "," -- CSV delimiter
set thisLine to (theseCount as text) -- convert list to text, each number is separated by comma
set text item delimiters to oTID
tell (current date) to set tDate to short date string
set beginning of theseCount to tDate -- insert the date (first column)
set csvPath to "DCKGEN:Brands:Zoom:Online Photography:" & csvFileName
set oTID to text item delimiters
set text item delimiters to "," -- CSV delimiter
set thisLine to (theseCount as text) -- convert list to text, each number is separated by comma
set text item delimiters to oTID
--- append this line to CSV file
do shell script "echo " & (quoted form of thisLine) & " >>" & quoted form of POSIX path of csvPath
on existsItem(f)
try
return quoted form of POSIX path of (f as alias) -- exists
end try
return "" -- else not exists
end existsItem
(* just a way to visually see it working
set dialog to "Matt Shot: \"" & item 1 of theseCount & "\"" & return & return & "Matt Edit: \"" & item 2 of theseCount & "\"" & return & return & "Shah Shot: \"" & item 3 of theseCount & "\"" & return & return & "Shah Edit: \"" & item 4 of theseCount & "\"" & return & return
display dialog dialog
This is what I began to wrote but really have no idea how I would write it into the data into the CSV file and also I was struggling to get the non existant folder to = 0?
tell application "Finder"
set folderA to (get first folder of desktop whose name starts with "BH")
set folderB to (get first folder of desktop whose name starts with "Bu")
set folderC to (get first folder of desktop whose name starts with "Da")
set folderD to (get first folder of desktop whose name starts with "DI")
set folderE to (get first folder of desktop whose name starts with "Do")
set folderF to (get first folder of desktop whose name starts with "Fr")
set folderG to (get first folder of desktop whose name starts with "In")
set folderH to (get first folder of desktop whose name starts with "Ma")
if (exists (get first folder of desktop whose name starts with "No")) is true then
set folderI to (get first folder of desktop whose name starts with "No")
else
set folderI to "0"
set folderJ to (get first folder of desktop whose name starts with "To")
set folderK to (get first folder of desktop whose name starts with "Wa")
if (exists (get first folder of desktop whose name starts with "SE")) is truethen
set folderL to (get first folder of desktop whose name starts with"SE")
else
set folderL to "0"
if (exists (get first folder of desktop whose name starts with "PR"))is true then
set folderM to (get first folder of desktop whose name starts with "PR")
else
set folderM to "0"
set folderM to (get first folder of desktop whose name starts with "PR")
end if
end if
end if
tell application "System Events"
set contentsA to (number of files in folderA)
set contentsB to (number of files in folderB)
set contentsC to (number of files in folderC)
set contentsD to (number of files in folderD)
set contentsE to (number of files in folderE)
set contentsF to (number of files in folderF)
set contentsG to (number of files in folderG)
set contentsH to (number of files in folderH)
set contentsI to (number of files in folderI)
set contentsJ to (number of files in folderJ)
set contentsK to (number of files in folderK)
set contentsL to (number of files in folderL)
set contentsM to (number of files in folderM)
end tell
end tell
I hope someone can help me compile the remaining data.
Many thanks
MattOK i've done my homework and I have been able to get a lot closer I just need to make the search specific to a number of folders on the desktop?
Line 7 explains how I would like it to search.
set spotlightqueryList to {"Shot_by_Matthew", "Editted_by_Matthew", "Shot_by_Shah", "Editted_by_Shah"}
set spotlightqueryList2 to {"AL70", "BH70", "BH70", "BU40", "ES20", "DV25", "DJ30", "RA30", "FR10", "GT55", "MA65", "MB65", "MC65", "FI65", "MF65", "MH65", "NN_", "TM15", "WA35", "PR_", "SE_"}
set thefolders to {"Desktop"}
--Here I need to limit the search so that it only looks in folders of the desktop whose name begins with "BH", "BU", "DA", "DI", "DO", "FR", "IN", "MA", "NO", "TM", "WA", "PR", "SE"
set thekind to "PSD"
set csvFileName to "ProductivityLog.csv"
set tHome to path to home folder as string
set tc to count spotlightqueryList
set theseCount to {}
repeat tc times
set end of theseCount to 0
end repeat
set tc2 to count spotlightqueryList2
set theseCount2 to {}
repeat tc2 times
set end of theseCount2 to 0
end repeat
repeat with i in thefolders
set thepath to my existsItem(tHome & i)
if thepath is not "" then -- exists
repeat with j from 1 to tc
set tQuery to item j of spotlightqueryList
do shell script "mdfind -onlyin " & thepath & " " & tQuery & " " & thekind & " | wc -l" -- wc return the number of lines
set item j of theseCount to (item j of theseCount) + (the result as integer) -- add the number of lines
end repeat
end if
end repeat
repeat with i2 in thefolders
set thepath2 to my existsItem2(tHome & i2)
if thepath2 is not "" then -- exists
repeat with j2 from 1 to tc2
set tQuery2 to item j2 of spotlightqueryList2
do shell script "mdfind -onlyin " & thepath2 & " -name " & tQuery2 & " " & thekind & " | wc -l" -- wc return the number of lines
set item j2 of theseCount2 to (item j2 of theseCount2) + (the result as integer) -- add the number of lines
end repeat
end if
end repeat
set csvPath to "DCKGEN:Brands:Zoom:Online Photography:" & csvFileName
set oTID to text item delimiters
set text item delimiters to "," -- CSV delimiter
set thisLine to (theseCount as text) -- convert list to text, each number is separated by comma
set thisLine2 to (theseCount2 as text) -- convert list to text, each number is separated by comma
set text item delimiters to oTID
tell (current date) to set tDate to short date string
set beginning of theseCount to tDate -- insert the date (first column)
set csvPath to "DCKGEN:Brands:Zoom:Online Photography:" & csvFileName
set oTID to text item delimiters
set text item delimiters to "," -- CSV delimiter
set thisLine to (theseCount as text) -- convert list to text, each number is separated by comma
set thisLine2 to (theseCount2 as text) -- convert list to text, each number is separated by comma
set text item delimiters to oTID
--- append this line to CSV file
do shell script "echo " & (quoted form of thisLine) & (quoted form of thisLine2) & " >>" & quoted form of POSIX path of csvPath
on existsItem(f)
try
return quoted form of POSIX path of (f as alias) -- exists
end try
return "" -- else not exists
end existsItem
on existsItem2(f)
try
return quoted form of POSIX path of (f as alias) -- exists
end try
return "" -- else not exists
end existsItem2
(* just a way to visually see it working
set dialog to "Matt Shot: \"" & item 1 of theseCount & "\"" & return & return & "Matt Edit: \"" & item 2 of theseCount & "\"" & return & return & "Shah Shot: \"" & item 3 of theseCount & "\"" & return & return & "Shah Edit: \"" & item 4 of theseCount & "\"" & return & return
display dialog dialog -
How to count all files inside a disk?
Hi,
is there any free app to count all files inside a hard disk or volume without open all volumes and folders?
Not the size, but the number of files.
Thank you very much.Disk Utility displays a full drive folders and files
Finder with Show Status Bar, displays folder items at the bottom the Finder window
Do you require further information than these? -
File Count with selected date range
Hi,
Our requirement is to get the file count with selected date by the user from two sharepoint date time controls i.e. dtp1 and dtp2 into the data table. I am able to get the file count of specific folder from Pages library through below code. Now need to get
the selected date range from two date time picker controls and check with the item created by is within the date range. If yes I need to get the file count.
So please share your ideas/thoughts to do the same.
SPList list =
wikiweb.Lists["Pages"];
SPFolderCollection oFolders
= list.RootFolder.SubFolders["foldername"].SubFolders;
DataTable dt
= new DataTable();
dt.Columns.Add("Column1");
DataRow dr;
if (oFolders.Count
> 0)
foreach (SPFolder oFolder in oFolders)
if (!oFolder.Name.Equals("Forms"))
dr
= dt.NewRow();
dr["Column1"] = oFolder.ItemCount.ToString();
dt.Rows.Add(dr);
Regards,
Sudheer
Thanks & Regards, SudheerHi,
I have modified the code as below
if((DateTime)(oFolder.Item.File.TimeCreated>dtFromDate.SelectedDate)&&(DateTime)(oFolder.Item.File.TimeCreated<dtToDate.SelectedDate))
But still it is throwing the error.
Please share your ideas on the same.
Regards,
Sudheer
Thanks & Regards, Sudheer -
Reoccuring errors with volume file count, directory count, etc...
I'll give a little back story...
I purchased a new MacBook Pro 17" with OS X Lion (10.7.2) preinstalled back in January of this year (2012). I migrated my user accounts from my old MacBook Pro 15" (2008) running OS X Snow Leopard. Almost right away I started having issues of all sorts, including Admin accounts that wouldn't allow me admin priveledges, hidden user groups, apps that wouldn't run, multiple obscure error messages and a host of other issues. After scouring forums like this one I used Disk Utility and not only discovered innumerable permission errors but also disk errors like these:
Invalid volume file count
(It should be 1656658 instead of 1656636)
Invalid volume directory count
(It should be 345764 instead of 345743)
Invalid volume free block count
(It should be 69344839 instead of 69355225)
Volume header needs minor repair
Disk Repair would correct the ACH/permission errors and above-noted disk corruption, but only temporarily. After repairs I would reboot and be met with all of the same problems in the migrated accounts. Over the following days I reinstalled OS X Lion at least three or four times, completely wiping the 750 GB hard drive before two of those reinstalls (even doing one-pass reformatting on one of those instances). After reinstalling the OS, I would reinstall from TimeMachine and be met with all of the same problems again.
I then brought my machine in to the Genius Bar where, after more than two-and-a-half hours they declared it to be an unknown issue that must be related to defective hardware and replaced my entire machine. But wait - there's more!
After getting home and moving my old accounts back over from TimeMachine all the same issues began reoccuring. After at least two more OS reinstalls later I discovered that uninstalling Norton Internet Security seemed to fix some problems. However, running Disk Utility still returned results like those listed above...
Then there were the failed attempts at upgrading from 10.7.2 to 10.7.3 which hung at the end the first two times and required complete OS reinstalls from the Recovery HD. Several more headaches later I eventually I managed a sucessful upgrade.
But still I find myself with a machine that stalls on boot-up at least once or twice a week, necessitating a power-off to interupt the process. After each of these instances I run Disk Utility and get more of the same...
Checking volume information.
Invalid volume file count
(It should be 1656658 instead of 1656636)
Invalid volume directory count
(It should be 345764 instead of 345743)
Invalid volume free block count
(It should be 69344839 instead of 69355225)
Volume header needs minor repair
The volume [...] was found corrupt and needs to be repaired.
And now, this morning, after a month or two of all that... and after installing the Java Security Upgrade last night, I can't get into my accounts at all. On first boot-up it hung for 20 minutes before I shut it down. After running Disk Utility from Recovery Drive and repairing the drive I rebooted and got the log-in screen. I clicked on my user icon, typed the correct password, was shown they white/grey screen for a few flickering seconds then was brought back to the log-in screen. I rebooted to the Recovery Disk, ran Disk Utility, saw all the same errors again, repaired the disk, rebooted and got the same problems with logging in again.
I've repeated this cycle five times today, as both a normal boot-up and in "Safe Mode" all with the same results. I've repaired the disk using Disk Utility from Recovery Disk as well as accessing the disk in Target Mode, and always there are the same errors needing to be repaired.
I don't buy that I'm dealing with a hardware issue. My antivirus and security software are all up-to-date. What the heck is going on? Why do I keep having these disk problems? Why can't I access my accounts anymore? Why does it keep hanging during boot-up? Why am I about to throw the machine out my bedroom window?WithoutID wrote:
I don't buy that I'm dealing with a hardware issue.
You have a software issue carried over from the previous computer likely caused by Norton and perhaps some other issues related to recent malware.
Your going to need to copy your users data folders only to a external drive and disconnect everything,
command r boot into Recovery,
DU erase (with Zero) your Lion partition,
install Lion fresh from Apple,
setup with the same name (important),
Software update,
install all your programs from fresh sources,
and return files from the external drive manually into their respective folders
in that precise order.
and for good performance for a long time, try not to go over 50% of the drive filled, but certainly not more that 75%
Do not use migration or TimeMachine restores.
This is known as a Fresh Install, where everything is brand spanking new and only vetted files are returned.
It's a pain I know, the problem with too much automation, the crap seeps in and ruins everything.
I don't migrate nothing, I like my machines to work perfectly.
https://discussions.apple.com/docs/DOC-3046
https://discussions.apple.com/community/notebooks/macbook_pro?view=documents -
Different file count between Photo Elements 12 and Lightroom 5.
To Whom it might concern:
When I check properties the file count in Photo Elements 12 is different than that of Lightroom 5.
In one case Photo Elements shows 743 files and 51 folders and lightroom shows 734 files.
I counted each a every file and found Lightroom to have the correct count and Elements the same count
but properties shows a count of 743.
Please answer.
Albert F Schwartz Jr
E-mail - [email protected]If you think you have found a bug, you should report it to Adobe here: http://feedback.photoshop.com/
This forum is not the place for bug reports -
Just curious...
I Just backed up over 60,000 images and put them into one folder called CR2.
Is there a limit of the amount of files a folder can hold?
I know file sizes are limited to OS and hard drive space, but what about file count or folder count?I'm not aware on any limit on folder file count. but it's hardly practical to put so many files in one folder. it's quite hard to scroll and it will take system resources just to render all items within when you open that folder.
-
I have an issue in a applescript project counting zip files that are dopped-on. For instance, if I select a zip and a pdf and drop it, my count only says 1. If I select two zip files, same thing, just counts as one. Does this have something to do with the "flattened" structure?
here is a simple script to repro:
on open someItems
set itemCount to (count of someItems) -- the number of items to process
display dialog "Item Count - " & (itemCount as string)
end open
any thoughts? stil researching.yes. strange indeed. I tried on a dfferent mac (also 10.8.3) and it works fine... hm. reboot time. ... still odd.
-
File Adapter - how to get the file count from a folder
Hi All,
I have a requirement that have to poll a directory when the file count is reached to number N (ex:number of files avilable in folder is 5) otherwise it should wait and not pick any of the files. Is it possible to get the file count from a folder using file adapter ?? otherwise please suggest me an approach to achieve this requirement.
Thanks,
JJHi Sarath,
Thank you for your reply.
Go with the list files operation of file adapter it will gives you the number of files in the specified folder as you given. . - this step is already done.
When the number of files reaches your count startup your webservice that which can polls the files. . . - how can i acheive this?? Have to poll the directory and process the number files - please let me know, what could be added to the webservice which is being invoked after cheking file count from parent process.
The reason for the above question is - we cannot use ReadFile operation in second webservice because it will be automatically triggered when the file is avilable. Also SyncRead operation supports reading one file in b/w bpel process. Kindly explain me the implementation steps.
Thanks,
JJ -
Where is the file count in a finder window?
Where is the file count in a finder window now? I have nothing in any of the view modes.
From the Finder Menu bar View > Show status bar
-
Returning the file count of a folder--too slow
I am using the following to return the file count of a folder as part of a larger script
with timeout of 5000 seconds
tell application "Finder"
set origFolder to "Somefolder" as alias
set thePivotfiles to (every file of origFolder whose name ends with ".jpg")
return the count of thePivotfiles
end tell
end timeout
This script is rather slow to return the count of thePivotfiles--there are about 15,000 image files in the folder.
Is there a faster way for the script to do this?
Thanks.
Pedrotry using a shell script, something like :
do shell script "cd ~/SomeFolder; ls -a | wc -l"
more info here: http://developer.apple.com/mac/library/technotes/tn2002/tn2065.html
.... btw, this is the Final Cut Pro forum. :/
Maybe you are looking for
-
Itunes wont recognize my ipod when connected..what is the deal?
why wont itunes recognize my ipod touch...
-
I cannot shut down Itunes on my laptop with Apple TV running
any same thing? it will just bounce and restart how can I turn off itunes from my laptop this only happened after I set up my apple tv
-
Topaz plug ins. Which program to run topaz in?
Lightroom vs photoshop. I've never used plug ins in the past. Purchase completed several weeks ago but can't decide where to download. Is it possible to use in more than one program? Yes, I posted to topaz forum without answer so I'm back at Adob
-
Where should I to start ??
Dear all, Where should I to start learn about SOA ? I found many terms here such as ESB, BPEL, and much more. Those technologies offer different approaches and I found no basic knowledge about this or I miss something ? May someone give me more basic
-
Error When Dismissing Many Dynamic Tabs
Hi All, In the name of expanding knowledge, I bring another question. We're using JDev/JHS 11.1.1.4 and our project is a migration from JHS 11.1.1.3. This question relates to how JHeadStart deals with the open and close events associated with dynam