NTLK pkg problems - sorry deleted thread

From: Tim Palmer (tcpalmer@netvision.net.il)
Date: Fri Feb 18 2000 - 14:04:54 EST


Here's an earlier post from Bill that may solve your problems and which
confirms that packtype is one (easy) solution:

"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"

******************************************
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 : Wed Mar 01 2000 - 00:00:07 EST