Re: Packages
Re: Packages
- Subject: Re: Packages
- From: Paul Berkowitz <email@hidden>
- Date: Fri, 17 May 2002 21:35:19 -0700
On 5/17/02 4:56 PM, "garbanzito" <email@hidden> wrote:
>
at 2002 05 17, 14:29 -0700, they whom i call Paul Berkowitz wrote:
>
> How are packages made - or unmade? Only by a Cocoa IDE or can AppleScript
>
> participate?
>
>
i think bundle is the current term, though it seems Mac OS 9
>
"packages" are a type of bundle.
>
>
i believe all that is needed to make or unmake a bundle is
>
to add or delete an extension (yick) that the system knows
>
to mark bundles. for instance if i rename INBOX.mbox to just
>
INBOX, Finder treats it as a folder and i can see the
>
contents. (there may be a lag before Finder figures this
>
out.) and the process can be reversed.
Bill Fancher wrote me back privately and told me how to do it. What follows
is totally scriptable by a few lines in the Finder:
>
> and, more particularly, whether you can do the
>
> opposite: convert a regular MBOX file to one of these
>
> table_of_contents-containing ".mbox:" packages and import it into Mail.app
>
> that way? If i merely copy a regular Entourage-made MBOX file into Mail's
>
> Mailboxes folder here: ~/Library/Mail/Mailboxes/ and even give it a Mail
>
> creator in "Open with Application", nothing new shows up in my Personal
>
> Folders when I open Mail.
>
>
If the Entourage file is "some.mbox", make a folder called "temp" in
>
~/Library/Mail/Mailboxes/, and then copy some.mbox to temp. Rename the
>
copy "mbox" and then rename the folder "some.mbox" (Finder won't let you
>
copy into a .mbox). Mail will automatically build the other files next
>
time you start it up.
tell application "Finder"
set newpackage to make new folder at pathToMailboxes with properties
{name:"temp"}
set realName to name of theMbox
set newMbox to duplicate theMbox to newpackage
set name of newMbox to "mbox"
set name of newpackage to realName
end tell
You don't even have to set the creator type: it does it for you.
--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.