mirror of
https://github.com/python/cpython.git
synced 2025-07-27 05:04:15 +00:00
Initial revision
This commit is contained in:
parent
1d6a6ea1a8
commit
7cc5735ef2
24 changed files with 5316 additions and 0 deletions
25
Mac/Contrib/PythonScript/PyScriptTest.py
Normal file
25
Mac/Contrib/PythonScript/PyScriptTest.py
Normal file
|
@ -0,0 +1,25 @@
|
|||
'''
|
||||
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