Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Dick got it, but I just fixed something and made it so it labels the file instead of a popup.</p> <pre><code>set dateList to {} tell application "Finder" set inputList to get selection repeat with i from 1 to count (inputList) set end of dateList to get modification date of item i of inputList end repeat end tell --Compare section... set theResult to item 1 of inputList as alias set theResultDate to item 1 of dateList set modDate to item 1 of dateList repeat with i from 1 to count (inputList) if dateList's item i &gt; modDate then set modDate to dateList's item i set theResult to item i of inputList as alias set theResultDate to item i of dateList end if end repeat --Display Result… --display alert "Most recently modified file in selection:" message "" &amp; theResult &amp; " --" &amp; theResultDate tell application "Finder" to set label index of (theResult as alias) to 6 </code></pre> <p>This will label it green, if you want a different color fiddle around with the index number 1-8, they're apparently not in order. Finder is also apparently smart enough to not count the selections in other open windows.</p> <p>Thanks!</p> <p>And finally, to make it useful as a right-click item, open Automator, make a Service, select at the top to use this on files/folders, drag Run Applescript in there, paste script, save. Now it will be available on right click. One downside is it seems the files need to stay selected until something is labeled. So no clicking while it's working.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload