Batch Set Creation Date
Summary: Sets the creation date of the selected records.
Requires: EagleFiler
Install Location: ~/Library/Scripts/Applications/EagleFiler/
Last Modified: 2020-11-02
Description
This script lets you change the creation date of multiple selected records at once.
Installation Instructions · Download in Compiled Format · Download in Text Format
Script
use
framework
"Foundation"
use
scripting additions
set
_formatter
to
current application's
NSDateFormatter's
alloc's
init
_formatter's
setDateStyle:(
current application's
NSDateFormatterShortStyle)
_formatter's
setTimeStyle:(
current application's
NSDateFormatterShortStyle)
set
_currentDateString
to
_formatter's
stringFromDate:(
current date
)
display dialog
"Enter creation date:"
default answer
_currentDateString
as
string
set
_dateString
to
(
text returned
of
the
result)
set
_nsDate
to
_formatter's
dateFromString:
_dateString
set
_date
to
_nsDate
as
date
tell
application
"EagleFiler"
set
_records
to
selected records
of
browser window
1
repeat
with
_record
in
_records
set
_record's
creation date
to
_date
end
repeat
end
tell