Setting Mac OS File Type & Creator
MisterX
b.xavier at internet.lu
Tue Aug 16 12:13:21 EDT 2005
now i know what you need...
run a disk first aid first - common ailing of OS9's
Then rebuild the desktop... (before teh finder arrives, press
command-option)
Then it should work momentarily better until you need to redo that op...
One of the reasons i quit the mac was this - just was one more reason - and
i found it back in win95... grrr...
Today, i think the PC file type world is a mess... But it is easier to
manage than on any mac i've seen... No hidden props, extra programs, special
editors, etc...
cheers
Xavier
> -----Original Message-----
> From: use-revolution-bounces at lists.runrev.com
> [mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of
> Dan Shafer
> Sent: Monday, August 15, 2005 20:31
> To: Revolution List
> Subject: Setting Mac OS File Type & Creator
>
> This ought to be duck soup. But it's turned into alligator
> stew with a live alligator.
>
> I have a custom property set to a file. I want to write this
> file out to an OS 9 system so that it shows up in Finder as a
> PDF file. From all I can gather, I have a two-line problem:
>
> set the fileType to "CAROPDF "
> put PDFToOpen into URL "binfile:myFile.pdf"
>
> But alas, this does not work. The file type and creator come
> up empty. If I use ResEdit to set the file type and creator
> as in the command above, the file becomes a PDF file that
> Acrobat Reader recognizes. So I know I have the creator and
> file type correct. Am I perhaps doing this in the wrong place?
>
> A clue: ResEdit tells me the file I'm writing has no resource
> fork. I was under the impression that using "binfile" solved
> that problem?
>
> I gather then that this has something to do with resfile:
> types but I can't find anything in the docs about creating a
> resource fork, only about copying them. But when I do a
> getResources on an OS9 file, as far as I can tell, the type
> and creator aren't stored in the resource fork (at least not
> as identifiable resources), so I'm basically lost and under
> very tight deadline.
>
>
>
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Dan Shafer, Revolution Consultant and Author
> http://www.shafermedia.com Get my book, "Revolution: Software
> at the Speed of Thought"
> From http://www.revolutionpros.com, Click "My Stuff"
>
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage
> your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
More information about the use-livecode
mailing list