Import Examples
Summary: Imports files, URLs, and text with various options.
Requires: EagleFiler
Install Location: ~/Library/Scripts/Applications/EagleFiler/
Description
This script show different ways to get your information into EagleFiler’s frontmost library via AppleScript.
Download in Compiled Format | Download in Text Format
Script
tell application "EagleFiler"
tell library document 1
-- import a file into a particular folder, and add a note
set theFolder to library record "MyFolder" of root folder
set thePath to "/Users/mjt/Desktop/MyFile"
set theNote to "This file was on the desktop."
import files {POSIX file thePath} container theFolder note theNote
-- import URLs, creating Web archives and adding tags
import URLs {"http://www.apple.com", "http://c-command.com"} tag names {"mac", "software"}
-- import text, creating a new RTFD file
import text "This is a test."
end tell
end tell