Re: NTLK Converting/Fixing unrecognized packages

From: J. van de Griek (Joost_van_de_Griek@nl.yachtgroup.com)
Date: Mon Jul 10 2000 - 04:54:03 CDT


David 'willi' Wilhelm wrote:

> Hello,

Hi!

> I have downloaded some packages for my newton that somehow lost their
> filetype attributes along the way -- my Mac see's them as documents just
> like some other packages (only 1 package I have is actually recognized
> by my Mac as such and has an icon) and the Newton will not see them and
> thus cannot install them via NCU.
>
> I would like to write an AppleScript or simple app where you could drag
> and drop files on a folder/application utility and have it automatically
> convert it to not only a readable package for the Newt, but also have it
> recognized and assigned a Newton Package icon on the Mac.

Here's the script you want:

-- Begin AppleScript code
on open (theList)
  tell application "Finder"
    repeat with theFile in theList
      set creator type of theFile to "1NCU" -- Creator code of NCU
      set file type of theFile to "pkg " -- Note the space after "pkg "!
    end repeat
  end tell
end open
-- End AppleScript code

Save the script as a classic applet, and when you drop one or more files
onto it, their type and creator will be set so that they will be recognized
as NCU packages.

,xtG
..tsooJ

***************************************
NewtonTalk brought to you by:

EVOTE.COM -- the ESPN of politics on the Internet! All the players, all the news, and the hottest analysis and features (plus 'toons!) anywhere.... visit http://www.evote.com today!

***************************************
Need Subscribe/Unsubscribe info?

Visit the NewtonTalk section at http://www.planetnewton.com



This archive was generated by hypermail 2b29 : Tue Aug 01 2000 - 06:50:08 CDT