home *** CD-ROM | disk | FTP | other *** search
Wrap
Text File | 1996-10-09 | 3.3 KB | 85 lines | [ TEXT/ttxt]
Tortoise Additions 0.91 © Michael Schürig 1996 mailto:uzs90z@uni-bonn.de You may freely use this set of Scripting Additions as long as you understand that there's no warranty and that the risk of their use is completely up to you. I don't accept any responsibilities. That said, have fun and please tell me if you find any errors. I you really absolutely want to get source code for any of the additions ask me, but beware: the source is in quite disorderly a state. What's in it & what's it all about? Tortoise Suite : Copyright © Michael Schürig 1996. Freeware. convertToHtml: convert styled text to text in HTML format convertToHtml styled text Result: string -- HTML text extractUrls: extract URLs from a file or string. extractUrls textstream -- file or string [base url string] -- base for relative URLs Result: list of string -- URLs labelNames: get the names of labels used for Finder items labelNames Result: list of string makeFileSpec: Make file specs or aliases for files/folders within a folder. makeFileSpec list of string -- file or folder(s). Can also be a partial path starting with “:”. for 'name' in folder file specification -- containing folder. [as type class] -- allowed are “file specification” (default) and “alias” Result: list of anything -- file spec(s) or alias(es) startupTime: Get and change the time the computer starts up. startupTime [date] -- new startup time Result: date -- previous startup time wakeupTime: Get and change the time the computer wakes up. wakeupTime [date] -- new wakeup time Result: date -- previous wakeup time lastActivity: get info on last activity on this computer lastActivity Result: activity info get SpeakableItems get SpeakableItems Result: boolean -- true if SpeakableItems are on set SpeakableItems: Activate or deactivate SpeakableItems set SpeakableItems boolean tempFile: Make a file spec for a temporary file. If you create a temp file remember to delete it before quitting! tempFile [base name string] -- used in creating temp file name. Default is name of current application. Result: file specification -- temporary file documentKind: Get the kind string for a document or document type. documentKind [of string] -- for this file type [created with anything] -- signature, process serial number, or alias of an application file [using volume string] -- the volume on which to search Result: string -- kind of the document openableFileTypes: Get types or kind strings for files that an application can open. openableFileTypes [for anything] -- signature, alias, or process serial number of an application [documents only boolean] -- ignore 'APPL', 'disk', 'fold', and '****'. Default is true. [four only boolean] -- return only four file types. “choose file” et al. take only four types. [as type class] -- possible return types are “string”/“text” and “type class” [using volume string] -- the volume on which to search (only used with application signature) Result: list of anything -- list of file types or kinds Class textstream Properties: string [r/o] alias [r/o] file specification [r/o] Class activity info Properties: overall date [r/o] -- last time for general activity user date [r/o] -- last time for user activity network date [r/o] -- last time for network activity disk date [r/o] -- last time for hard disk activity