mirror of
https://github.com/python/cpython.git
synced 2026-01-09 00:42:33 +00:00
Moved PythonScript to unsupported at Bill Bedford's request. It'll go
away completely next release, unless someone complains.
This commit is contained in:
parent
de3d060eb2
commit
f0a2ac9d5b
9 changed files with 0 additions and 0 deletions
|
|
@ -1,25 +0,0 @@
|
|||
'''
|
||||
Minimal test module
|
||||
'''#
|
||||
|
||||
import sys
|
||||
import PythonScript
|
||||
|
||||
SIGNATURE = 'MACS'
|
||||
TIMEOUT = 10*60*60
|
||||
|
||||
PythonScript.PsScript(SIGNATURE, TIMEOUT)
|
||||
p = PythonScript.PyScript
|
||||
ev = PythonScript.PsEvents
|
||||
pc = PythonScript.PsClass
|
||||
pp = PythonScript.PsProperties
|
||||
|
||||
startup = str(p(ev.Get, pc.Desktopobject(1).Startup_disk().Name()))
|
||||
print 'startup',startup, type(startup)
|
||||
print p(ev.Get, pc.Disk(startup).Folder(7).File(1).Name())
|
||||
print p(ev.Get, pc.Disk(1).Name())
|
||||
print p(ev.Get, pc.Disk('every').Name())
|
||||
print p(ev.Make, None, New='Alias_file', At=pp.Desktop(''), To=pp.System_folder(1))
|
||||
|
||||
sys.exit(1)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue