Changeset 160
- Timestamp:
- 05/16/04 06:20:42 (21 years ago)
- Location:
- trunk/appswitch
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/appswitch/appswitch/README
r156 r160 1 appswitch 1.0.1 [1 9 April2004]1 appswitch 1.0.1 [16 May 2004] 2 2 =============== 3 3 … … 42 42 ----------- 43 43 44 A Project Builder project, 'appswitch.pbproj', is included. A45 precompiled binary is also provided. 'appswitch' was developed and 46 tested under Mac OS 10.3.3 with the April 2004 Developer Tools, 47 and does notrequire any additional software to build.44 An Xcode project, 'appswitch.xcode', is included. A precompiled 45 binary is also provided. 'appswitch' was developed and tested under 46 Mac OS 10.3.3 with the April 2004 Developer Tools, and does not 47 require any additional software to build. 48 48 49 49 USAGE … … 56 56 other methods, this should give you some indication. 57 57 58 appswitch -a Emacs 0.00s user 0.02s system 5% cpu 0.355 total 59 appswitch -i com.gnu.Emacs 0.01s user 0.04s system 13% cpu 0.381 total 60 open -a Emacs 0.30s user 0.15s system 53% cpu 0.842 total 58 appswitch -a Emacs 0.00s user 0.02s system 55% cpu 0.054 total 59 appswitch -i com.gnu.Emacs 0.00s user 0.04s system 63% cpu 0.063 total 60 open -a Emacs 0.32s user 0.12s system 50% cpu 0.876 total 61 launch -a Emacs 0.00s user 0.03s system 35% cpu 0.085 total 61 62 osascript -e 'tell application "Emacs" to activate' 62 0. 66s user 0.42s system 45% cpu 2.361total63 0.41s user 0.23s system 67% cpu 0.949 total 63 64 64 65 The above tests were performed on a PowerBook G4/800; slower systems … … 73 74 --------------- 74 75 75 1.0.1 - 19 April 2004 76 - fixed crash matching applications with no bundle identifier 76 1.0.1 - 16 May 2004 77 - fixed crash matching applications with no bundle identifier 78 - fixed process listing PSN column width 77 79 1.0 - 19 February 2003 78 80 - added description of -q delay bug (no workaround) -
trunk/appswitch/appswitch/appswitch.1
r156 r160 1 .Dd Mon Apr 192004 \" DATE1 .Dd Sun May 16 2004 \" DATE 2 2 .Dt APPSWITCH 1 LOCAL \" Program name and manual section number 3 3 .Os appswitch 1.0.1 -
trunk/appswitch/appswitch/appswitch.xcode/nicholas.pbxuser
r156 r160 2 2 { 3 3 08FB7793FE84155DC02AAC07 = { 4 activeBuildStyle = 014CEA4 90018CE3211CA2923;4 activeBuildStyle = 014CEA4A0018CE3211CA2923; 5 5 activeExecutable = E1A0BD2C03EFAD1C00050001; 6 6 activeTarget = 08FB779FFE84155DC02AAC07; … … 51 51 ); 52 52 }; 53 PBXPerProjectTemplateStateSaveDate = 10 4034524;53 PBXPerProjectTemplateStateSaveDate = 106378266; 54 54 PBXPrepackagedSmartGroups_v2 = ( 55 55 { … … 226 226 isCollapsed = yes; 227 227 sizes = ( 228 "{{0, 0}, {571, 1 18}}",229 "{{0, 1 18}, {571, 547}}",228 "{{0, 0}, {571, 121}}", 229 "{{0, 121}, {571, 544}}", 230 230 ); 231 231 }; 232 232 PBXProjectWorkspaceModule_DataSourceSelectionKey_Rev6 = { 233 BoundsStr = "{{0, 0}, {556, 10 1}}";233 BoundsStr = "{{0, 0}, {556, 104}}"; 234 234 Rows = ( 235 235 0, 236 236 ); 237 VisibleRectStr = "{{0, 0}, {556, 10 1}}";237 VisibleRectStr = "{{0, 0}, {556, 104}}"; 238 238 }; 239 239 PBXProjectWorkspaceModule_EditorOpen = true; … … 241 241 PBXSplitModuleInNavigatorKey = { 242 242 Split0 = { 243 bookmark = E1 737411063370F0002A81F1;243 bookmark = E1CC5D69065735A3001A87C9; 244 244 history = ( 245 E18A0A500633657C008DC67C,246 245 E18A0A5B0633660A008DC67C, 247 246 E18A0A6B06336B3F008DC67C, 248 E18A0A6F06336B56008DC67C,249 247 E173740F063370F0002A81F1, 250 248 E18A0A3A06336491008DC67C, 249 E1CC5D67065735A3001A87C9, 250 E18A0A500633657C008DC67C, 251 251 ); 252 252 prevStack = ( … … 255 255 E18A0A6806336B3E008DC67C, 256 256 E18A0A6C06336B3F008DC67C, 257 E1 737410063370F0002A81F1,257 E1CC5D68065735A3001A87C9, 258 258 ); 259 259 }; … … 272 272 }; 273 273 }; 274 PBXProjectWorkspaceModule_OldDetailFrame = "{{0, 0}, {571, 1 18}}";275 PBXProjectWorkspaceModule_OldEditorFrame = "{{0, 1 18}, {571, 547}}";274 PBXProjectWorkspaceModule_OldDetailFrame = "{{0, 0}, {571, 121}}"; 275 PBXProjectWorkspaceModule_OldEditorFrame = "{{0, 121}, {571, 544}}"; 276 276 PBXProjectWorkspaceModule_OldSuperviewFrame = "{{182, 0}, {571, 665}}"; 277 277 PBXProjectWorkspaceModule_SGTM = { … … 304 304 PBXSmartGroupTreeModuleOutlineStateSelectionKey = ( 305 305 ( 306 10, 306 6, 307 4, 308 0, 307 309 ), 308 310 ); … … 470 472 RubberWindowFrame = "46 125 753 707 0 0 1280 832 "; 471 473 }; 472 PBXWorkspaceStateSaveDate = 10 4034524;474 PBXWorkspaceStateSaveDate = 106378266; 473 475 }; 474 476 perUserProjectItems = { 475 477 E173740F063370F0002A81F1 = E173740F063370F0002A81F1; 476 E1737410063370F0002A81F1 = E1737410063370F0002A81F1;477 E1737411063370F0002A81F1 = E1737411063370F0002A81F1;478 478 E18A0A3A06336491008DC67C = E18A0A3A06336491008DC67C; 479 479 E18A0A3C06336491008DC67C = E18A0A3C06336491008DC67C; … … 484 484 E18A0A6B06336B3F008DC67C = E18A0A6B06336B3F008DC67C; 485 485 E18A0A6C06336B3F008DC67C = E18A0A6C06336B3F008DC67C; 486 E18A0A6F06336B56008DC67C = E18A0A6F06336B56008DC67C; 486 E1CC5D67065735A3001A87C9 = E1CC5D67065735A3001A87C9; 487 E1CC5D68065735A3001A87C9 = E1CC5D68065735A3001A87C9; 488 E1CC5D69065735A3001A87C9 = E1CC5D69065735A3001A87C9; 487 489 }; 488 490 sourceControlManager = E18A0A29063362FF008DC67C; … … 492 494 08FB7796FE84155DC02AAC07 = { 493 495 uiCtxt = { 494 sepNavIntBoundsRect = "{{0, 0}, { 709, 5843}}";495 sepNavSelRange = "{1 4100, 30}";496 sepNavVisRect = "{{0, 4189}, {709, 443}}";496 sepNavIntBoundsRect = "{{0, 0}, {530, 6287}}"; 497 sepNavSelRange = "{16945, 0}"; 498 sepNavVisRect = "{{0, 5419}, {530, 527}}"; 497 499 sepNavWindowFrame = "{{15, 325}, {750, 502}}"; 498 500 }; … … 513 515 E16C83CC03F7AF7B00050002 = { 514 516 uiCtxt = { 515 sepNavIntBoundsRect = "{{0, 0}, {530, 1 036}}";516 sepNavSelRange = "{ 0, 0}";517 sepNavVisRect = "{{0, 0}, {530, 533}}";517 sepNavIntBoundsRect = "{{0, 0}, {530, 1163}}"; 518 sepNavSelRange = "{3337, 0}"; 519 sepNavVisRect = "{{0, 456}, {530, 527}}"; 518 520 }; 519 521 }; … … 535 537 vrLen = 1440; 536 538 vrLoc = 4186; 537 };538 E1737410063370F0002A81F1 = {539 fRef = C6859E970290921104C91782;540 isa = PBXTextBookmark;541 name = "appswitch.1: 4";542 rLen = 0;543 rLoc = 122;544 rType = 0;545 vrLen = 1440;546 vrLoc = 4186;547 };548 E1737411063370F0002A81F1 = {549 exec = E1A0BD2C03EFAD1C00050001;550 isa = PBXExecutableBookmark;551 uiCtxt = {552 buildSettingsExpandedSubviews = (553 0,554 1,555 2,556 3,557 4,558 5,559 );560 buildSettingsVisRect = "{{0, 0}, {556, 498}}";561 };562 539 }; 563 540 E18A0A29063362FF008DC67C = { … … 663 640 vrLoc = 0; 664 641 }; 665 E18A0A6F06336B56008DC67C = {666 fRef = 08FB7796FE84155DC02AAC07;667 isa = PBXTextBookmark;668 name = "main.c: 463";669 rLen = 0;670 rLoc = 18890;671 rType = 0;672 vrLen = 1696;673 vrLoc = 17194;674 };675 642 E1A0BD2C03EFAD1C00050001 = { 676 643 activeArgIndex = 2147483647; … … 700 667 }; 701 668 }; 669 E1CC5D67065735A3001A87C9 = { 670 fRef = 08FB7796FE84155DC02AAC07; 671 isa = PBXTextBookmark; 672 name = "main.c: 420"; 673 rLen = 0; 674 rLoc = 17006; 675 rType = 0; 676 vrLen = 1569; 677 vrLoc = 16415; 678 }; 679 E1CC5D68065735A3001A87C9 = { 680 fRef = 08FB7796FE84155DC02AAC07; 681 isa = PBXTextBookmark; 682 name = "main.c: 420"; 683 rLen = 0; 684 rLoc = 17006; 685 rType = 0; 686 vrLen = 1569; 687 vrLoc = 16415; 688 }; 689 E1CC5D69065735A3001A87C9 = { 690 fRef = E16C83CC03F7AF7B00050002; 691 isa = PBXTextBookmark; 692 name = "README: 97"; 693 rLen = 0; 694 rLoc = 3337; 695 rType = 0; 696 vrLen = 1567; 697 vrLoc = 1280; 698 }; 702 699 } -
trunk/appswitch/appswitch/main.c
r156 r160 24 24 const char *APP_NAME; 25 25 26 #define VERSION "1.0 "26 #define VERSION "1.0.1" 27 27 28 28 struct { … … 308 308 int termwidth = 80; 309 309 struct winsize ws; 310 char *banner = " PSN PID TYPE CREA NAME";311 // 12345678 .0 12345 1234 1234 12345678901234567890310 char *banner = " PSN PID TYPE CREA NAME "; 311 // 123456789.0 12345 1234 1234 1234567890123456789 312 312 if ((ioctl(STDOUT_FILENO, TIOCGWINSZ, (char *)&ws) != -1 || 313 313 ioctl(STDERR_FILENO, TIOCGWINSZ, (char *)&ws) != -1 || 314 314 ioctl(STDIN_FILENO, TIOCGWINSZ, (char *)&ws) != -1) || 315 315 ws.ws_col != 0) termwidth = ws.ws_col; 316 char *formatButPath = "% 8ld.%ld %5ld %c%c%c%c %c%c%c%c %-20.20s";316 char *formatButPath = "%9ld.%ld %5ld %c%c%c%c %c%c%c%c %-19.19s"; 317 317 int pathlen = termwidth - strlen(banner) - 1; 318 318 // XXX don't ever free 'format', should fix if we get called repeatedly … … 404 404 } 405 405 406 int main 406 int main(int argc, char * const argv[]) { 407 407 OSStatus err = noErr; 408 408 … … 416 416 CPSProcessSerNum psn = matchApplication(&info); 417 417 418 const char *verb ;418 const char *verb = NULL; 419 419 switch (OPTS.appAction) { 420 420 case APP_NONE: break; -
trunk/appswitch/package-appswitch.sh
r93 r160 5 5 cd appswitch && \ 6 6 find . -name \*~ -exec rm '{}' \; && \ 7 pbxbuild && \ 7 xcodebuild && \ 8 8 SetFile -c 'R*ch' -t 'TEXT' README VERSION && \ 9 9 strip build/appswitch && \ 10 10 sudo /usr/bin/install -c build/appswitch /usr/local/bin && \ 11 11 sudo /usr/bin/install -c appswitch.1 /usr/local/man/man1 && \ 12 chmod 755 build/appswitch && \ 13 chmod 644 appswitch.1 && \ 12 14 rm -rf build/appswitch.build build/intermediates build/.gdb_history && \ 13 15 VERSION=`cat VERSION` TARBALL="appswitch-$VERSION.tar.gz" && \ … … 16 18 rm -f appswitch-$VERSION $TARBALL $DMG && \ 17 19 ln -s appswitch appswitch-$VERSION && \ 18 tar -- exclude=.DS_Store --exclude=.svn-zchf appswitch-$VERSION.tar.gz appswitch-$VERSION && \20 tar --owner=root --group=wheel --exclude=.DS_Store --exclude=.svn --exclude=.gdb_history -zchf appswitch-$VERSION.tar.gz appswitch-$VERSION && \ 19 21 #hdiutil create $DMG -megabytes 5 -ov -type UDIF && \ 20 22 #DISK=`hdid $DMG | sed -ne ' /Apple_partition_scheme/ s|^/dev/\([^ ]*\).*$|\1|p'` && \
Note:
See TracChangeset
for help on using the changeset viewer.