Re: Modify file type/creator from AS?
Re: Modify file type/creator from AS?
- Subject: Re: Modify file type/creator from AS?
- From: "Mark J. Reed" <email@hidden>
- Date: Thu, 8 May 2008 00:43:06 -0400
On Thu, May 8, 2008 at 12:07 AM, Tim Mansour <email@hidden> wrote:
> tell application "System Events" to set file type of file blah to "FFIL"
Thanks! Any other tips for reconstructing a file from separate
data/resource forks? The info and creator are in the resource fork,
but copying it to filename/rsrc doesn't set them, unfortunately.
Doesn't look like ditto will do what I"m looking for. Ironically,
there's a Linux utility that will do the trick but it doesn't seem to
be available for OS X, at least not via fink or macports.
(I've got some old ZIP discs formatted for PC and written from OS 9; I
was apalled to find out that OS X doesn't understand OS 9's way of
splitting forks on FAT filesystems. So I'm going through and matching
RESOURCE.FRK/FILENA~1 files to their corresponding full filenames
(stored as null-terminated strings starting at byte 49 in the resource
files, apparently), copying to .../filename/rsrc, and setting the info
to match...)
--
Mark J. Reed <email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden