Re: [NTLK] Packager 1.2 for Mac OS X -> Applescript solution

From: John Charlton (johncharlton_at_mac.com)
Date: Tue Apr 09 2002 - 12:46:21 EDT


Here's an easy way to convert type and creator codes of files to Newton
packages. Stick this into the Applescript Editor, then drag and drop onto
the scriptlet:

>>
property chgCreator : "pkgX"
property chgType : "pkg "

on open currList
        tell application "Finder"
                set currListCount to count of items in currList
                set currItem to 0
                repeat currListCount times
                        set currItem to currItem + 1
                        set creator type of item currItem of currList to chgCreator
                        set file type of item currItem of currList to chgType
                end repeat
        end tell
end open
<<

Note the trailing space in "pkg "
Credit to Greg Strange at www.citizenstrange.com who wrote 'typeXchanger'

Hope this helps,

jc

-- 
Read the List FAQ/Etiquette: http://www.newtontalk.net/faq.html
Read the Newton FAQ: http://www.guns-media.com/mirrors/newton/faq/
This is the NewtonTalk mailing list - http://www.newtontalk.net



This archive was generated by hypermail 2.1.2 : Sun May 05 2002 - 14:03:13 EDT