-
Notifications
You must be signed in to change notification settings - Fork 1
/
new-handler-template.applescript
54 lines (36 loc) · 1.19 KB
/
new-handler-template.applescript
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
-- someAwesomeHandlerName({Çfull_list_of_params_for_handler_with_default_valuesÈ})
-- ÇOriginal AuthorÈ, ÇOrganization/Company/creation locationÈ
-- ÇdescriptionÈ
(*
HISTORY:
1.1 - ÇISO8601 dateÈ ( ÇauthorÈ ): Çversion changesÈ
1.0 - ÇISO8601 dateÈ ( ÇauthorÈ ): first created
TODO:
- Çimprovements or things to fixÈ
- Çanother improvements or things to fixÈ
REQUIRES:
Çlist of handlers requiredÈ
Çlist of handlers requiredÈ
*)
property helper : ""
on run
-- SAMPLE CALL TO THIS FUNCTION:
someAwesomeHandlerName({someAmazingParamName:"sample value", anotherDescriptiveParamName:"value"})
end run
--------------------
-- START OF CODE
--------------------
on someAwesomeHandlerName(prefs)
-- version Çcurrent_versionÈ
set defaultPrefs to {someAmazingParamName:null, anotherDescriptiveParamName:null}
set prefs to prefs & defaultPrefs
(* Çhandler logic goes hereÈ *)
return true
end someAwesomeHandlerName
--------------------
-- END OF CODE
--------------------
on someRequiredHandler(prefs)
return "helper code goes here. Generally this is just a slug that calls the same function in 'htcLib' application that"
-- tell app "htcLib" to someRequiredHandler(prefs)
end someRequiredHandler