• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Generate all the standard scripting suite packages.
2# Note that this module needs *serious* hand-crafting because of all the
3# absolute paths. It is, however, a great leap forward compared to the time
4# when this information was only stored in Jack's brain:-)
5
6import sys
7import os
8import gensuitemodule
9
10verbose=sys.stdout
11
12DSTDIR="/Users/jack/src/python/Lib/plat-mac/lib-scriptpackages"
13OS9DISK="/Volumes/Moes"
14
15APPLESCRIPT=OS9DISK + "/Systeemmap/Extensies/AppleScript"
16SYSTEMEVENTS="/System/Library/CoreServices/System Events.app"
17
18CODEWARRIOR=OS9DISK + "/Applications (Mac OS 9)/Metrowerks CodeWarrior 7.0/Metrowerks CodeWarrior/CodeWarrior IDE 4.2.6"
19EXPLORER="/Applications/Internet Explorer.app"
20FINDER="/System/Library/CoreServices/Finder.app"
21NETSCAPE=OS9DISK + "/Applications (Mac OS 9)/Netscape Communicator\xe2\x84\xa2 Folder/Netscape Communicator\xe2\x84\xa2"
22TERMINAL="/Applications/Utilities/Terminal.app"
23
24gensuitemodule.processfile_fromresource(APPLESCRIPT,
25        output=os.path.join(DSTDIR, 'StdSuites'),
26        basepkgname='_builtinSuites',
27        edit_modnames=[], verbose=verbose)
28gensuitemodule.processfile(SYSTEMEVENTS,
29        output=os.path.join(DSTDIR, 'SystemEvents'),
30        basepkgname='StdSuites',
31        edit_modnames=[('Disk_2d_Folder_2d_File_Suite', 'Disk_Folder_File_Suite')],
32        verbose=verbose)
33gensuitemodule.processfile(CODEWARRIOR,
34        output=os.path.join(DSTDIR, 'CodeWarrior'),
35        basepkgname='StdSuites',
36        edit_modnames=[], verbose=verbose)
37gensuitemodule.processfile(EXPLORER,
38        output=os.path.join(DSTDIR, 'Explorer'),
39        basepkgname='StdSuites',
40        edit_modnames=[], verbose=verbose)
41gensuitemodule.processfile(FINDER,
42        output=os.path.join(DSTDIR, 'Finder'),
43        basepkgname='StdSuites',
44        edit_modnames=[], verbose=verbose)
45gensuitemodule.processfile(NETSCAPE,
46        output=os.path.join(DSTDIR, 'Netscape'),
47        basepkgname='StdSuites',
48        edit_modnames=[('WorldWideWeb_suite_2c__as_d', 'WorldWideWeb_suite')], verbose=verbose)
49gensuitemodule.processfile(TERMINAL,
50        output=os.path.join(DSTDIR, 'Terminal'),
51        basepkgname='StdSuites',
52        edit_modnames=[], verbose=verbose)
53