Setting Mac OS File Type & Creator

Scott Rossi scott at tactilemedia.com
Mon Aug 15 15:06:38 EDT 2005


Recently, Dan Shafer  wrote:

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

If PDFToOpen is a property of your stack, try:

  put the PDFToOpen of this stack into URL "binfile:myFile.pdf"

...or the appropriate variation of the above.  Even if PDFToOpen is a
complete container reference, you might try using the actual container
reference to see if doing so makes a difference.

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
-----
E: scott at tactilemedia.com
W: http://www.tactilemedia.com




More information about the use-livecode mailing list