Word Count
Summary: Displays the number of words in the selected record.
Requires: EagleFiler
Install Location: ~/Library/Scripts/Applications/EagleFiler/
Last Modified: 2019-10-02
Description
This script shows an alert that reports the number of words in the current document and the number of words in the current selection.
Installation Instructions · Download in Compiled Format · Download in Text Format
Script
tell
application
"EagleFiler"
tell
browser window
1
set
{
_record}
to
selected records
set
_title
to
"Word Count for “" &
_record's
filename & "”"
set
_text
to
selected text
set
_selectedText
to
_record's
text content
set
_message
to
"Selection: " & (
count
words
of
_text) &
return
set
_message
to
_message & "Document: " & (
count
words
of
_selectedText)
display alert
_title
as
informational
message
_message
end
tell
end
tell