|
From: creedon <icr...@us...> - 2005-08-13 19:13:13
|
Update of /cvsroot/frontierkernel/odbs/frontierRoot/system/verbs/builtins/file In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7137 Modified Files: type creator Log Message: workaround problem kernel has with Mac OS X applications that are packagkes, they have a creator/type code and they are a folder; code cribbed from Sean Elfstrom's <sel...@im...> DuckTape Tool v0.5 Index: type =================================================================== RCS file: /cvsroot/frontierkernel/odbs/frontierRoot/system/verbs/builtins/file/type,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** type 26 Mar 2005 19:42:46 -0000 1.1.1.1 --- type 13 Aug 2005 19:13:05 -0000 1.2 *************** *** 1,3 **** FrontierVcsFile:1:scpt:system.verbs.builtins.file.type ! on type (path) { kernel (file.type)} \ No newline at end of file --- 1,3 ---- FrontierVcsFile:1:scpt:system.verbs.builtins.file.type ! on type (path) { ÇChanges Ç8/8/05; 4:24:26 PM by TAC Çworkaround problem kernel has with Mac OS X applications that are packagkes, they have a type code and they are a folder; code cribbed from Sean Elfstrom's <sel...@im...> DuckTape Tool v0.5 on kernelCall (path) { kernel (file.type)}; if system.environment.isCarbon { // it might be a package if file.isFolder (path) { try { // in case of error fallback to kernel return (string4 (string.mid (file.readWholeFile (path + "Contents:PkgInfo"), 1, 4)))}}}; kernelCall (path)} \ No newline at end of file Index: creator =================================================================== RCS file: /cvsroot/frontierkernel/odbs/frontierRoot/system/verbs/builtins/file/creator,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** creator 26 Mar 2005 19:42:45 -0000 1.1.1.1 --- creator 13 Aug 2005 19:13:05 -0000 1.2 *************** *** 1,3 **** FrontierVcsFile:1:scpt:system.verbs.builtins.file.creator ! on creator (path) { kernel (file.creator)} \ No newline at end of file --- 1,3 ---- FrontierVcsFile:1:scpt:system.verbs.builtins.file.creator ! on creator (path) { ÇChanges Ç8/8/05; 4:15:09 PM by TAC Çworkaround problem kernel has with Mac OS X applications that are packagkes, they have a creator code and they are a folder; code cribbed from Sean Elfstrom's <sel...@im...> DuckTape Tool v0.5 on kernelCall (path) { kernel (file.creator)}; if system.environment.isCarbon { // it might be a package if file.isFolder (path) { try { // in case of error fallback to kernel return (string4 (string.mid (file.readWholeFile (path + "Contents:PkgInfo"), 5, 4)))}}}; kernelCall (path)} \ No newline at end of file |