Skip to content

Files

Latest commit

a4c5456 · May 31, 2012

History

History
23 lines (16 loc) · 584 Bytes

README.md

File metadata and controls

23 lines (16 loc) · 584 Bytes

lib.scpt

Framework to ease the development of AppleScript scripts.

Examples

(Assuming lib.scpt is in ~/Library/Scripts/lib)

Basic Usage:

property lib : load script POSIX path of (path to scripts folder) & "lib/lib.scpt"
set front_app to frontmostApplication() of _UI of lib
display alert (name of front_app as string)

Including an application library:

property lib : load script POSIX path of (path to scripts folder) & "lib/lib.scpt"
property Firefox : include("Application/Firefox") of lib
tell Firefox to refresh()