Re: [NTLK] Re - PackType

From: James Elliott (rootbeeraddict_at_yahoo.com)
Date: Sat Oct 13 2001 - 17:07:19 EDT


Robert Benschop <rbenschop_at_mac.com> wrote:
>Actually, no, this script was from Bill Davis, but it dates from quite a
>while back so it couldn't have anything to do with OSX, unless Bill had
>advance inside knowledge ;-)
>
>So what is your script ?

Mine is very simple. It goes like this:
on open (theList)
        tell application "Finder"
                repeat with x in theList
                        copy file type obsolete of x to FileTypeOfDroppedDoc
                        set creator type of x to "1NCU"
                        set file type of x to "pkg "
                end repeat
        end tell
end open

Yes, very simple. As you can probably tell my earlier question, my
AppleScript knowledge is rudimentary.

-James

The James Elliott Newton Site:
http://www.geocities.com/rootbeeraddict/newton.html
Is that a Newton in your pocket, or are you happy to see me?

--
This is the Newtontalk mailinglist - http://www.newtontalk.net
To unsubscribe or manage: visit the above link or
	mailto:newtontalk-request_at_newtontalk.net?Subject=unsubscribe



This archive was generated by hypermail 2.1.2 : Thu Nov 01 2001 - 10:02:02 EST