diff --git a/Mac/scripts/BuildApplet.py b/Mac/scripts/BuildApplet.py index cf90901911a..c532ea6232d 100644 --- a/Mac/scripts/BuildApplet.py +++ b/Mac/scripts/BuildApplet.py @@ -57,7 +57,7 @@ def main(): # Ask for source text if not specified in sys.argv[1:] if not sys.argv[1:]: - srcfss, ok = macfs.StandardGetFile('TEXT') + srcfss, ok = macfs.PromptGetFile('Select Python source file:', 'TEXT') if not ok: return filename = srcfss.as_pathname() diff --git a/Mac/scripts/EditPythonPrefs.py b/Mac/scripts/EditPythonPrefs.py index 3e14ff3ba60..2ed604553aa 100644 --- a/Mac/scripts/EditPythonPrefs.py +++ b/Mac/scripts/EditPythonPrefs.py @@ -18,7 +18,7 @@ import Res # For Res.Error # resource IDs in our own resources (dialogs, etc) MESSAGE_ID = 256 -DIALOG_ID = 131 +DIALOG_ID = 512 TEXT_ITEM = 1 OK_ITEM = 2 CANCEL_ITEM = 3 @@ -85,7 +85,7 @@ def interact(list, pythondir): if n == REVERT_ITEM: return [], pythondir if n == DIR_ITEM: - fss, ok = macfs.GetDirectory() + fss, ok = macfs.GetDirectory('Select python home folder:') if ok: pythondir = fss tmp = string.splitfields(GetDialogItemText(h), '\r') diff --git a/Mac/scripts/EditPythonPrefs.rsrc.hqx b/Mac/scripts/EditPythonPrefs.rsrc.hqx index 9af1d46fa3a..abea956ec95 100644 --- a/Mac/scripts/EditPythonPrefs.rsrc.hqx +++ b/Mac/scripts/EditPythonPrefs.rsrc.hqx @@ -1,9 +1,9 @@ (This file may be decompressed with BinHex 4.0) -:&%9NDA43HA4SEfj3FQ9QFbjbFh*M!(*cFQ058d9%!3#3"``k1UJ!N!3"!!!!#ad! -!!SG!!!"(6B8)&3JD!!8)&"p%E"S%3!k!@FQ%Lm-6VS#$!`k!&Tj&%9NDA43HA4S -Efj3FQ9QFbjbFh*MC3)!!J"bFh*M8P-#!(*cFQ058d9%!3$rN!3!N"!i3+U,ZiN! -N!B-1[m4`+KT!4e!%Irc%h!!%#lrmlh5%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!!!%%!*!&J2rr!!!" +%J#3"!%Xrrm!!!%p!*!%!5crr`!!!B%!N!3",2rr!!!&K3#3"!%Xrrm!!!D*!*!% +!5crr`!!"`d!N!S*%3#3"!)!rrm!!!N@!-f6G!)!rrm!!!N[!-f8N!!16hGZCA)J +FQ9cEh9bBfAP)!: diff --git a/Mac/scripts/PackLibDir.py b/Mac/scripts/PackLibDir.py index cdda87d0e78..e6cd656effb 100644 --- a/Mac/scripts/PackLibDir.py +++ b/Mac/scripts/PackLibDir.py @@ -77,14 +77,10 @@ def handlesubdir(handle, id, srcdir): if __name__ == '__main__': args = sys.argv[1:] if not args: - ifss, ok = macfs.StandardGetFile('PYC ') - if ok: - args = [ifss.as_pathname()] - else: - ifss, ok = macfs.GetDirectory() - if not ok: - sys.exit(0) - args = [ifss.as_pathname()] + ifss, ok = macfs.GetDirectory('Select root of tree to pack:') + if not ok: + sys.exit(0) + args = [ifss.as_pathname()] for ifn in args: ofss, ok = macfs.StandardPutFile('Output for '+os.path.split(ifn)[1]) if not ok: diff --git a/Mac/scripts/RunLibScript.py b/Mac/scripts/RunLibScript.py index 36787d94766..36e94875083 100644 --- a/Mac/scripts/RunLibScript.py +++ b/Mac/scripts/RunLibScript.py @@ -9,7 +9,7 @@ import string import Dlg import macfs -DIALOG_ID = 140 +DIALOG_ID = 512 OK = 1 CANCEL = 2 SCRIPTNAME=3 diff --git a/Mac/scripts/RunLibScript.rsrc.hqx b/Mac/scripts/RunLibScript.rsrc.hqx index 46780ad8366..19bed330c70 100644 --- a/Mac/scripts/RunLibScript.rsrc.hqx +++ b/Mac/scripts/RunLibScript.rsrc.hqx @@ -2,7 +2,7 @@ :%9*eENaTBP0MFQP`G#jbFh*M!(*cFQ058d9%!3#3"`cLBVi!N!3"!!!!#m8!!!V& !!!"(6B8)&3JD!!8)&"p%E"S%3!k!@FQ%Lm-6VS#$!`k!&Tj%9*eENaTBP0MFQP` -G#jbFh*M!J!!!(*cFQ058d9%!3!!!(*cFQ058d9%!3!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FJEfiJCAKTG!#3"4m!#J!`!*Z)"de[C(9XC6VA!*!& 13!+!%`!QiJ+3A*RG@ePER4c1J#3"9J!#J"S!*U)"R0dC'PZ1J#3"A!!#J#"!*U) "h0dC'peG$TP!*!&L3!+!*N!QiJ5GfpbDfPZCb"NDA*PBh4[FRNk!*!&"J"&!"B" 6)JM8R9Z)'%JF(PdD'pZ)'e[C(9XC5"KFb"YB@PZ)("bEfGbB@d!!!!"!!!!#m8! -!!V&!!!"(3$Aqp35AJ!!!"`"$J!,3Nj%6!!!!'**3diM!!!!EP0*@N8!!!"k4P*& +!!V&!!!"(3$0Nh!44!!!!"`"$J!,3Nj%6!!!!'**3diM!!!!EP0*@N8!!!"k4P*& 4J!!!)CTBh-M!!!!NQPME$J!!!#HD@0c1!!!!+TTBh-d!!!!YQPME$3!!!$#8&P8 C3!!!-j%6%p(!!!!fN4*9%`!!!$Q!)$rr`!!!4d!N!3",2rr!*!)rj!%!!!""!#3 "B$rr`!!!4)!N!3",2rr!!!"23#3"!%Xrrm!!!'"!*!%!5crr`!!"B8!N!3",2rr -!!!'L3#3"!%Xrrm!!!F0!*!+#4%!N!@-rrm!!!N@!*!&J2rr!!!*,`$AqR316hGZ -CA)JFQ9cEh9bBf@X%!: +!!!'L3#3"!%Xrrm!!!F0!*!+#4%!N!3#!2rr!!!*&J$0P-`#!2rr!!!*,`$0Nq!1 +6hGZCA)JFQ9cEh9bBfA2"!: diff --git a/Mac/scripts/fixfiletypes.py b/Mac/scripts/fixfiletypes.py index 5fdd12f957a..1d1b1153c55 100644 --- a/Mac/scripts/fixfiletypes.py +++ b/Mac/scripts/fixfiletypes.py @@ -39,7 +39,7 @@ def walktree(name, change): walktree(os.path.join(name, f), change) def run(change): - fss, ok = macfs.GetDirectory() + fss, ok = macfs.GetDirectory('Folder to search:') if not ok: sys.exit(0) walktree(fss.as_pathname(), change)