|
From: creedon <icr...@us...> - 2005-11-10 00:18:29
|
Update of /cvsroot/frontierkernel/odbs/frontierRoot/suites/aeTerminology In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5423 Added Files: Tag: commercial_suite_project-branch appIdStyle installMenu getAete newDesktopScriptInstaller suiteName init menu parseAete initializeNewTerminologyTable callbackLoop readMe newAppsTableItem newAppsTableItemInstaller Log Message: aeTerminology Suite --- NEW FILE: newAppsTableItemInstaller --- (This appears to be a binary file; contents omitted.) --- NEW FILE: newAppsTableItem --- (This appears to be a binary file; contents omitted.) --- NEW FILE: menu --- FrontierVcsFile:1:mbar:suites.aeTerminology.menu AAEFAQAAAxMAAQAAAAAAAAAAAAAAKwADA/0E/QAAAAAAAAZHZW5ldmEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgArAAMB6QJHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAADaAAABUQAAAgAADwZHZW5ldmEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAvxuVSb+XhJkAAARAAAABpwG/Am8DQExBTkT///////8AAAAAAABtYWMgAAAAAAAAAAAAAAAAYWVUZXJtaW5vbG9neQ0JTmV3IGFwcHMgVGFibGUgSXRlbS4uLg0JLQ0JPSBzdWl0ZXMuYWVUZXJtaW5vbG9neS5tZW51Q29tbWFuZHMubGF1bmNoQXBwbGljYXRpb24gKCkNCT0gc3VpdGVzLmFlVGVybWlub2xvZ3kubWVudUNvbW1hbmRzLm5ld0Rlc2t0b3BTY3JpcHRJbnN0YWxsZXIgKCkNCT0gc3VpdGVzLmFlVGVybWlub2xvZ3kubWVudUNvbW1hbmRzLmltcG9ydEFldGUgKCkNCS0NCU9wZW4gYXBwcyBUYWJsZQ0JU2V0IEN1cnJlbnQgYXBwcyBUYWJsZQ0JLQ0JTG9hZCBhbiBvc2F4Li4uDQktDQlSZWFkIE1lDQktDQ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mV2YQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAC/G5VJv2nJAgAAABABAAGnAb8CbwNATEFORP///////wAAAAAAAG1hYyAAAAAAAAAAAAAAAABlZGl0IChAYWVUZXJtaW5vbG9neS5tZW51KQ2AAAAAAAAAAgAAAAYAAAAbAAACAAAPBkdlbmV2YQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAC/KMmzv2nJBwAAAAwBAAGnAb8CbwNATEFORP///////wAAAAAAAG1hYyAAAAAAAAAAAAAAAABlZGl0IChAdXNlci5hZVRlcm1pbm9sb2d5KQ2AAAAAAAA= --- NEW FILE: installMenu --- (This appears to be a binary file; contents omitted.) --- NEW FILE: suiteName --- FrontierVcsFile:1:TEXT:suites.aeTerminology.suiteName aeTerminology --- NEW FILE: init --- (This appears to be a binary file; contents omitted.) --- NEW FILE: appIdStyle --- (This appears to be a binary file; contents omitted.) --- NEW FILE: newDesktopScriptInstaller --- (This appears to be a binary file; contents omitted.) --- NEW FILE: initializeNewTerminologyTable --- (This appears to be a binary file; contents omitted.) --- NEW FILE: parseAete --- (This appears to be a binary file; contents omitted.) --- NEW FILE: readMe --- FrontierVcsFile:1:optx:suites.aeTerminology.readMe This is the aeTerminology suite. Created by Thomas A. Creedon <icr...@ya...>. Based on the DuckTape Tool v0.5 by Sean Elfstrom < sel...@im... >. This is a potential replacement for the commercial Suite. The aeTerminology Suite imports AppleEvent Terminology Extension information. Abstract Here is my take on the aeTerminology Suite. Try it out. Make sure you back everything up! This should be considered development stage software. I ended up digging in a bit! :-) This is by no means perfect! I hope that folks will find it a good starting point to work from. If something is broken fix it! :-) If you don't like how I've laid things out, lets work with the community to figure out how to make it better. aeTerminology is available on SourceForge if you want to work with the community on making it better. It is on a branch called "commercial_suite_project-branch". Please see the Frontier Kernel Project CVS webpage < http://sourceforge.net/cvs/?group_id=120666 > for more information on how to access this project. It is beyond the scope of this document to explain how to use CVS and SourceForge. I tried to... focus how things are referred to in the suite, using names that beginners to intermediate scripters might come have across if they were to use the suite reduce the number of steps to get things done, too many dialogs as others have mentioned! make it so that the default choice for dialogs is a safe choice Menu Commands New apps Table Item... Create a new item in the apps table for an application you select. Launch Application for ... Launch an application associated with the current apps table. This menu item will be inactive until a new apps table item has been created or the Set Current apps Table menu item is selected from the aeTerminology menu. New Desktop Script Installer for ... Create a new Desktop Script installer for the current apps table. This menu item will be inactive until a new apps table item has been created or the Set Current apps Table menu item is selected from the aeTerminology menu. Replace Terminology for ... Replace the AETE information for the current apps table. This menu item will be inactive until a new apps table item has been created or the Set Current apps Table menu item is selected from the aeTerminology menu. Open apps Table Open the table at system.verbs.apps Set Current apps Table Allows you to set which apps table some of the menu items in the aeTerminology menu will apply. Select one of the items in the system.verbs.apps table and then use this command. 8/8/05; 12:28:58 PM by TAC - this could be expressed more clearly, I think. Load an osax... Load an osax into a table at system.extensions. This is an example command to show how aeTerminology can be used by other scripts to import AETE information and have it end up where ever the script writer wants it to go. There currently seems to be a bug in the kernel that prevents the user from being able to open file packages such as newer style OS X osaxen with the open dialog even though osax has been specified as a file type. As a workaround you can hold down the shift key when selecting this command shich will then allow you to select any file. Navigate carefully! Read Me This outline! Edit Suite Open the table for this suite. Menu Open the menu for this suite. user.aeTerminology Open the user table for this suite. Changes x set current apps table at end of creating new apps table item fixed a bug in the Set Current apps Table menu item, names with periods was fouling things up changed name of suite from DuckTape to aeTerminology Sep 15 added support for user.aeTerminology.callbacks.afterAppInfoInitialized can load aete from file data fork added an example Load osax command created aeTerminology.installMenu created aeTerminology.initializeNewTerminologyTable reorg the code a bit for suites.aeTerminology.getAete changed name of menu item from Replace AppleEvent Terminology Extension Information... to Replace Terminology... holding shift key when creating a new apps table item allows user to see all file types added support for user.aeTerminology.callbacks.afterParseAete removed support for skipping class/id when parsing events added support for user.aeTerminology.eventInformationTableName, 'defs" is default Aug 21 removed Desktop Script Installer fixed bug when creating new apps table items, if user.prefs.search.regularexpression was true then weird find and replaces would happen Aug 18 added support for skipping class/id when parsing events, user.aeTerminology.skipOnParse.[class].[id], value is nil bring about window to front, give user indication of progress added edit user.aeTerminology menu item to menu added support for user.aeTerminology.appIdStyle, three styles are currently supported; ".appInfo.id", ".id", and "string4", default is ".appInfo.id" added support for user.aeTerminology.flUseEventInformationTable, true is use eventInformation table; false don't use, default is true Aug 15 made a Desktop Script Installer to help with installation Aug 14 i made two improvements to the new apps table items process there was a bug in that some items were still being created in the top level table even when items were supposed to be put in the eventInformation table It was possible to create a conflict when creating a new table. Here is an example, when I tried creating a table for Mail.app named Mail, it conflicted with suites.mail. I put a check and warning in to notify the user of this kind of situation. Aug 8 initial version Notes In the data table for the Suite I have a table named DuckTapeRootLeftovers, which contains left overs from Sean's DuckTape Tool. In addition there is a table named commercialSuiteReference, which is a reference copy of the current version of the commercial suite as it exists on SourceForge at this time (Aug 8 2005), just in case you've modified your local copy. Instructions for Read Me.txt file How To Install Please make backups! This software should be considered development stage! Quit Frontier if it is running. Replace your Froniter application with the included version 10.1a3 if you are not already running v10.1a3 or newer. Launch Frontier. Double-click on each of the files in the Replacement Verbs folder. Please note that the replacment rez verbs requires Mac OS X Frontier v10.1a3 or newer. You may want to export your rez table for safe keeping, if you plan to revert to a previous state. Optional. In the Extras folder you will find DropStuff/StuffitExpander.ftds. These are Desktop Script Installers that were created using the aeTerminology Suite and contain apps table items. Please see aeTerminology.readMe for more information. Notes builtins.rez is a new rez verbs table that is compatible with Frontier v10.1a3 and allows the scripter to access resources that are in the data fork of a file fatPages.getFileData is a replacement verb that fixes a bug when importing information, make sure the table path exists. file.creator/type are replacement verbs that attempt to deal with Mac OS X packages and osax. --- NEW FILE: getAete --- (This appears to be a binary file; contents omitted.) --- NEW FILE: callbackLoop --- (This appears to be a binary file; contents omitted.) |