Word Count
Summary: Displays the number of words in the selected record.
Requires: EagleFiler
Install Location: ~/Library/Scripts/Applications/EagleFiler/
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.
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 tellLast Modified: 2011-09-23
Running the Script
You can use AppleScript Editor (AppleScript Utility prior to Mac OS X 10.6) to enable Mac OS X’s built-in Script menu. To run the script, just select it from the menu. FastScripts provides a similar menu that supports keyboard shortcuts and other features.