i want to ignore the first five characters when sorting.
You can create script column or better Evaluator column (Dopus 13) that cut the first five characters of name, then sort this column.
thank you for amazingly fast reply. I've upgraded to 13.11. I can't see how to create an evalulate column.
Preferences / File Display Columns / Evaluator Columns
I am now creating an evaluator column. what code should i enter so that directories are sorted by ignoring the first 7 characters in the directory names, or, alternatively, by alternatively, sorted by the letter following the first ' - ' in the directory name? so that paper, coll, web, book etc are grouped together
return (IsSet(ext) ? name : mid(name,7));
Once the column is created you can add it to the file display and sort by it like any other column.
I have duplicated and edited the group scheme 'first letter of name' to create '8th letter of name'.
how may I add '8th letter by name' to a groupable column so that it appears in the drop down list?
You were making a column earlier, now you're making a grouping scheme. Which do you want?
If you want to change how things are sorted, a column is best in most cases.
I was asking about columns before I became aware of grouping.
grouping now appears to better satisfy my needs.
all my filenames include a document description e.g.: paper, book, article etc.
I would like to be able to group files by document description.
My current script still appears to group primarily by date and then by description
group = left(value, 8);
if (ispunct(group) or isspace(group))
return "";
return ucase(group);
How can i sort/group only by description i.e.: paper, book, article etc ?
left(value, 8)
returns the left eight characters. If you want just the eighth character by itself, change that to mid(value, 8, 1)
.
below is how I wish the new output to be displayed:
1954 - ARTICLE - Arteriosclerosis - Definitions
1959 - ARTICLE - Mooers' Law or Why Some Retrieval Systems Are Used and Others Are Not
1956 - BOOK - Logic in Language qq1503
1927 - BOOK - International Library of Psychology Philosophy and Scientific Method - Possibility
1929 - BOOK - Modern English in the Making gqq1204
1947 - BOOK - A History of Scientific English - . . its Evolution Based on a Study of Biomedical Terminology gqq1203
1959 - BOOK - Classification and Indexing in Science 2e gqq1415 VICKERY
1961 - BOOK - Science Since Babylon - Enlarged Edition DE SOLLA PRICE
1963 - BOOK - Little Science, Big Science DE SOLLA PRICE
1968 - BOOK - H P Luhn - Pioneer Of Information Science
1969 - BOOK - Content Analysis for the Social Sciences and Humanities gqq1216
1959 - EDITORIAL - Mooers' Law - Or, Why Some Retrieval Systems Are Used And Others Are Not
1928 - PAPER - The Quantum Theory of the Electron
1929 - PAPER - A Theory of Electrons and Protons
1933 - PAPER - The Positive Electron
1937 - PAPER - The law of anomalous numbers
1945 - PAPER - As We May Think
1950 - PAPER - Coding, Information Retrieval, And The Rapid Selector
1950 - PAPER - Computing Machinery And Intelligence
1952 - PAPER - An Analysis of the Word Definition Errors of Children
1952 - PAPER - The scientific movement and the development of chemistry in england
1953 - PAPER - The Empirical Philosophy of Roger and Francis Bacon
1958 - PAPER - Proper Names
1958 - PAPER - The Automatic Creation of Literature Abstracts (book extract - better quality)
1957 - PAPER - A Statistical Approach to Mechanized Literature Searching
1959 - PAPER - Keyword-In-Context Index for Technical Literature (KWIC index)
1961 - PAPER - KWIC INDEX - lnstructions for Machine Print-Out and for Mounting Forms for Reproduction
1962 - PAPER - Types of Linguistic Communities
1964 - PAPER - The Scientific Journal - 300th Anniversary
1967 - PAPER - The CRANFIELD TESTS ON INDEX LANGUAGE DEVICES
1968 - PAPER - Theories of Scientific Method from Plato to Mach - A Bibliographical Review
1926 - LETTER - Mistakes in Terminology
1969 - THESIS - Meaning Change and Scientific Theory Change
Regex will be more suitable for handling variable string lengths.
^.{7}(.*)
didn't work