Friday, December 15, 2017
  • Index
  •  » Automator
  •  » Automator action that returns the "Date Added" in Finder

#1 2017-07-30 01:17:44 pm

redvivi
Member
Registered: 2017-06-18
Posts: 4

Automator action that returns the "Date Added" in Finder

Hey guys!

I am looking for an Automator action, ready to use, that returns the "Date Added" in MacOS Sierra Finder.

Do you have that ?

Thanks.

Browser: Safari 603.2.4
Operating System: Mac OS X (10.12.5)

Offline

 

#2 2017-07-30 03:19:43 pm

haolesurferdude
Member
Registered: 2010-02-19
Posts: 109

Re: Automator action that returns the "Date Added" in Finder

Here is a system you could implement.  I tried it and it works.  The Applescript will ask you to select the file you are interested in.

1. Run Applescript

Applescript:


on run {input, parameters}
   
set DA to do shell script "mdls -name kMDItemDateAdded -raw " & quoted form of POSIX path of (choose file "Select file for date added:")
   set delim to "/"
   tell DA to set dateAdded to word 2 & delim & word 3 & delim & word 1
   
   set input to dateAdded
   
   return input
end run

2. Set Value of Variable
     theDateAdded

3. Ask for Confirmation
     Message: The date the file was added: theDateAdded.
     Body: The date file was added has been determined.

Last edited by haolesurferdude (2017-07-30 03:20:17 pm)

Offline

 

#3 2017-10-29 01:14:34 pm

redvivi
Member
Registered: 2017-06-18
Posts: 4

Re: Automator action that returns the "Date Added" in Finder

Thanks !!!

Offline

 
  • Index
  •  » Automator
  •  » Automator action that returns the "Date Added" in Finder

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)