Internal improvements (most of osaxen were re-compiled)
"MT ASCII Chars" has changed to "MT ASCII Characters" (only name was changed)
"MT Zap Chars" has changed to "MT Zap Characters" (only name was changed)
Fixed the conflict of "MT Parse CGI" with Akua Sweets
Some internal improvements
"MT Strip TailSpaces" has changed to "MT Strip Spaces", with which you can also strip head spaces of each lines as well as tail spaces.
"MT Write TextClip" has changed to "MT Write Clipping", with which you can save Picture into Picture Clipping File and save Text as URL Clipping file.
Fixed typo of "triming" of "MT Pick strings" (Now "trimming")
Some internal improvements (revision of codes). I'm afraid this cuases a new bug.
Integrate "MT Load IndexSTR Resource" into "MT Read Resource"
MT Read Resource somefile of type "STR#" ID 256 --- without specifying index
--> returns STR# as list of strings
Integrate "MT Store IndexSTR Resource" into "MT Write Resource"
MT Write Resource ListOfStrings to anyfile of type "STR#" ID 256 --- without specifying index
--> write the list of string as "STR#" resource
Add new parameters to "MT Count Files", "MT List Folders" and "MT Count Folders."
Add new function to "name contains" parameter of "MT List Files" and above 3 osaxen.
eg. MT List Files myFldr name contains ":my" --- search files whose name starts with "my"
eg. MT List Files myFldr name contains ".html:" --- search files whose name ends with ".html"
eg. MT List Files myFldr name contains ":script:" --- search files whose name is "script"
I made up my mind to finish beta phase!
Fixed a bug of handling itemDelimiter of "MT parse"
Removed "MT Read Clipboard" and "MT Set Clipboard"
For those who need my clipboard commands, I made another osax, Tanaka's Extra, that includes both commands.
Added "long format" opution to "MT TimeStamp" and "MT Convert Date"
MT Timestamp with long format
--> "20000203180146"
Added "MT Read Head" commands. This reads top of files you specify (accepts List of files as parameter).
Made "MT Replace" to accept list of strings as 'search' and 'replace" parameters. Now you can combine successive replacements into one line.
Before...
set myData to MT Replace myData search A replace X
set myData to MT Replace myData search B replace Y
set myData to MT Replace myData search C replace Z
Now
set myData to MT Replace myData search {A, B, C} replace {X, Y, Z}
*Tips
You can give list of strings to "MT replace" as the direct parameter. So you can combine plural replacements with the same search/replace parameters into one.
set myData1 to MT Replace myData1 search {A, B, C} replace {X, Y, Z}
set myData2 to MT Replace myData2 search {A, B, C} replace {X, Y, Z}
--> set {myData1, myData2} to MT Replace {myData1, myData2} search {A, B, C} replace {X, Y, Z}
Solved the conflict between "Akua Sweets" and "MT Convert w code".
Improved HTML conversion of "MT Convert W code" (Thanks to Bret Barker!)
Add "MT Count Folders"
Add "MT Swap characters" (Swap chars of search list to chars of replace list)
MT Swap characters "Motoyuki Tanaka" search list {"o", "a"} replace list {"a", "O"}
--> "Matayuki TOnOkO" (o -> a, a -> O)
Add "MT Zap Custom Icon" (Zap File's custom icon)
Fixed the memory leak when you use "of creator" parameter of "MT List Files"
Add "created in", "created before", "created after" parameters to "MT List Files"
Add "MT Encode MIME J" (convert JIS String to MIME Header string)
Not public released.
Bug Fix: MT Search Position
Fixed a bug of error handling
MT List Files was enhanced
Now you can specify file attributes to list up by "of attribute" parameter.
Available attributes are "visible", "locked", "alias", "stationery", "custom icon" and "busy".
Example:
MT List Files myFldr of attribute {visible:false} --- List Up invisible files
MT List Files myFldr of attribute {custom icon:true} --- List up files who has custom icon
MT List Files myFldr of attribute {locked:true, stationery:true} -- List up locked stationery files
As you can ignore invisible files using this param, "igonoring invisible" paramaeter was removed.
New Command: MT Count Files
Count number of files in a folder. You can specify what files to count by parameters (same as MT LIst Files)
Bug Fix: MT Read File
Minor bug fix
Enhancement: MT Zap Resource
MT Zap Resource now accepts list of files.
Enhancement: MT Convert Date
Now you can specify "string" as desired type. MT Convert Date will converts your direct parameter to short format string (as you set "Date&Time" control panerl).
MT Convert Date to string ---> "05/15/98 19:35:25"
Enhancement: MT Convert Date (2)
MT Convert Date now accepts Header string (RFC1123 or RFC850 style).
MT Convert Date "Friday, 15-May-98 19:37:50" to date
---> date "Friday, May 15, 1998 19:37:50"
New Commnads: MT Search Position
Search position (byte position) of search-string.
MT Search Position "There are many stops along the way" search "e"
---> {3, 5, 9, 30}
New Commnads: MT Extract String
Extract string.
MT Extract String "There are many stops along the way" from 11 to 20
---> "many stops"
MT Extract String "There are many stops along the way" from -14
---> " along the way"
MT Extract String "There are many stops along the way" from -14 with cut
---> "There are many stops"
Minor bug fix and improvement of "MT Parse CGI"
Fixed a bug of "MT Parse CGI" with minor improvement of auto-detection of Kanji-code.
New Commands: MT Store in Resource --- Store Data(object) in resource
Example: MT Store in Resource myList to file myFile ID 1000
--> myList will be saved 'list' resource in myFile. Resource type is class of object (data). Limitation: You can not store Record object.
New Commands: MT Load Resource -- Load resource as Data (Object)
Example: set myList to MT Load Resource myFile type "list" ID 1000
--> Load 'list' resource of myFile into myList. You can extract data that stored by "MT Store in Resource." Of cource, you can retrive any type of resource.
set myPict to MT Load Resource myPictureFile type "PICT"
this script loads "PICT" resource (usually Preview Picture).
Add "separation" parameter (option) to "MT Read File."
Now you can read list of files as list.
set {x,y} to MT Read File {File1, File2} with separation
---> a = contents of File1, b = contents of File2
change "returning FileSpec" to "return as" of "MT List Folders."
MT List Folders myFldr return as string returns list of Fullpath string of folders.
Latin1 <-> HTML Conversion of "MT Convert W code" was improved.
Add "untouch eight bits" parameter (option) to "MT Convert W code"
"MT Convert W code" and "MT Convert J code" now accepts list of strings
Fixed a bug of "MT Parse" (when 1st char both of item delimiter and line delimiter are the same, searching line delimiter fails).
Fixed a critical bug of "MT Replace"
Made "MT Replace" and "MT Unify LineBreaks" accept a list of string.
>
MT Replace {"It's my bug","It's my mistake"} search "my" replace "Tanaka's"
--> {"It's Tanaka's bug","It's Tanaka's mistake"}
Fixed a naming mistake of "only first hit" parameter of "MT Replace"
Add "MT Hex Dump"
MT Hex Dump (current date) --> {"00", "00", "00", "00", "B1", "67", "E4", "C2"}
Minor bug fix of "MT Pick Lines" (Error check enhanced)
Changed "MT Parse" to returns a list in list anytime
Changed "returning FileSpace" parameter of "MT List Files" to "return as".
Now you can spefify returned item type among 'string' (=fullpath), 'file specification' or 'alias'.
Fixed a bug of "MT List Files". "modified in" suppresses both "Modified after" and "modified before" certainly.
Fixed a bug of "MT Parse List" (coercision).
Changed "as" parameter of "MT Parse" to "return as" to avoid conflicts.
Fixed a bug of ISO8857 (HTML encode) lookup table of "MT Convert W code".
4 characters (that do not exits in Mac Roman standard caharcters) were removed from the table.
Changed class of parameter "to" of "MT Convert Date." Now you can spefify your desired type as class, not using enum, so you can use:
MT Convert Date {1998,4,23} to date
Fixed a minor bug of "MT List Files"
Initial release for beta testing
Preview version for comments(*)
(*) My Thanks to Joe Barwell, Walter Ian Kaye, Douglas West and Cal Simone for many helpful suggestions and critics. If people finds 2.0 is better than 1.x, I owe to you.