Re: NTLK pkg

From: Bill Davis (newton@ecity.net)
Date: Thu Jan 27 2000 - 02:34:29 EST


On 1/26/2000 1:44 PM, negatetime@earthlink.net
[mailto:negatetime@earthlink.net] wrote:

>hello guys
>
>here is the eguipment i am using:
>
>G4 pci version
>Newton 2000
>MacOS 8.6
>EI 4.5
>
>i am having a problem with the pkgs i have been down loading to my
>desktop. the newton docks fine and i have even installed pkg before but
>lately when i down load a pkg to the desktop the NCU does not see the
>pkg on the desktop. any ideas? also shouldnt the pkg icon look like a
>package with a bow?....mine look like peice of paper with the top right
>corner folded
>
>thanks
>Omri

No, .pkg files downloaded via Web or FTP won't automatically become owned
by NCU, unless you set up your web browser or FTP program, or the
"Internet" control panel's File Mapping (under the "Advanced" tab) to do
so.

It's also a good idea to make sure that the "File Exchange" control panel
has similar mapping so if you copy files from a PC diskette or PC CD-ROM
or whatever that they get set to be owned by Newton Connection Utilities.
 

You have to set this up, otherwise your icons will look like the default
"unknown document" icon on the Mac, which is a blank piece of paper with
the corner turned.

The "MIME type" under Advanced Options in the file mapping editing dialog
should be "application/x-newton-compatible-pkg". Have it map incoming
and outgoing. It's "binary" data. Have it "handle" by "Saving to file".

The type and creator code should be type: "pkg " (note the space after
pkg) and creator "1NCU" (the character before NCU there is the digit "1")

You MAY find that the .pkg file type is already set to be owned by the
(really old) AppleLink program. AppleLink has been down for years, so
you can safely change it to be owned by NCU.

Note that if the Newton file you download doesn't HAVE the ".pkg"
extension then you'll have to edit the Type and creator codes for that
file with ResEdit, DiskTop or somethign similar (there's a ZILLION
utilities for that out there) or use something like PackType or this
little AppleScript:

on open (flist)
        tell application "Finder"
                repeat with theFile in flist
                        if kind of theFile is not "folder" then
                                set file type of file theFile to "pkg "
                                set creator type of file theFile to "1NCU"
                        end if
                end repeat
        end tell
end open

Paste this into the AppleScript Script Editor and save it as an
application. Then you can drag and drop the downloaded packages onto the
file and it'll set the type and creator codes of ANY file dropped on it
to have the file be a Newton package owned by Newton Connection
Utilities. (This doesn't change the file itself or convert anything --
it just sets the type/creator codes in the file's directory entry to "pkg
"/"1NCU". If the contents of the file aren't already a proper package,
this won't make it one.)

 - Bill

_____________________________________________________________________
 \\ /, "Ink Different" at Info-Newt, the site for Newton PDAs
`( Info-Newt Newton news & info web site: http://www.info-newt.com/
  \ Newton FTP Software archive: ftp://ftp.info-newt.com/
   = Newton Community FAQ: http://www.info-newt.com/faq/
             

******************************************
This month's NewtonTalk brought to you by:

EVOTE.COM, the ultimate Political Junkie site on the 'Net.

The Clinton Administration, the George Bush
2000 Campaign, and almost every other major
U.S. politician has said something nasty
about us at some time. Find out why at:
http://www.evote.com

******************************************

Need Subscribe/Unsubscribe info?
Visit http://www.planetnewton.com



This archive was generated by hypermail 2b29 : Tue Feb 01 2000 - 00:01:28 EST