Skip to content

Instantly share code, notes, and snippets.

@zarigani
zarigani / _gui.scpt
Created February 26, 2009 00:11
AppleScript's Library & Script
(*
GUIライブラリ
ロード方法の例(このライブラリをユーザースクリプトフォルダに"_gui.scpt"で保存した場合)
property GUI : load script file ((path to scripts folder as text) & "_gui.scpt")
あるいは動的に...
set GUI to load script file ((path to scripts folder as text) & "_gui.scpt")
開発&テスト環境
MacBook OSX 10.5.6
AppleScript 2.0.1
module Authorization
module AasmRoles
unless Object.constants.include? "STATEFUL_ROLES_CONSTANTS_DEFINED"
STATEFUL_ROLES_CONSTANTS_DEFINED = true # sorry for the C idiom
end
def self.included( recipient )
recipient.extend( StatefulRolesClassMethods )
recipient.class_eval do
before_save :do_before_save