summaryrefslogtreecommitdiffstats
path: root/Mac/Unsupported/PythonScript/PyScriptTest.py
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2001-10-26 12:55:39 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2001-10-26 12:55:39 (GMT)
commitf0a2ac9d5bf4f233824b7fcd6c232a41e5670284 (patch)
treeabdc53e56d0aabefdcc4a50da55806fc47486b41 /Mac/Unsupported/PythonScript/PyScriptTest.py
parentde3d060eb23c955a656730cc54a55eaf94f6d959 (diff)
downloadcpython-f0a2ac9d5bf4f233824b7fcd6c232a41e5670284.zip
cpython-f0a2ac9d5bf4f233824b7fcd6c232a41e5670284.tar.gz
cpython-f0a2ac9d5bf4f233824b7fcd6c232a41e5670284.tar.bz2
Moved PythonScript to unsupported at Bill Bedford's request. It'll go
away completely next release, unless someone complains.
Diffstat (limited to 'Mac/Unsupported/PythonScript/PyScriptTest.py')
-rw-r--r--Mac/Unsupported/PythonScript/PyScriptTest.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/Mac/Unsupported/PythonScript/PyScriptTest.py b/Mac/Unsupported/PythonScript/PyScriptTest.py
new file mode 100644
index 0000000..fee3203
--- /dev/null
+++ b/Mac/Unsupported/PythonScript/PyScriptTest.py
@@ -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)
+