Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!udel!oscar.ccm.udel.edu!johnston From: johnston@oscar.ccm.udel.edu (Bill Johnston) Newsgroups: comp.sys.mac.hypercard Subject: XFCN to change file type and creator? Message-ID: <49373@nigel.ee.udel.edu> Date: 30 Mar 91 21:34:13 GMT Sender: usenet@ee.udel.edu Lines: 28 Nntp-Posting-Host: oscar.ccm.udel.edu Hyperpeople! I am looking for an external that can set the file and creator attributes of a file. I have tried using Larry Wolfarth's "ChangeFileType" xfcn from the "Developer Stack v.1.3", but am having trouble getting it to work from within a script. This works when typed into the message box: ChangeFileType("HD40:TempFolder:foo.txt", TEXT, ALFA) "NoError: File TYPE/Creator changed" is put into the message box, and the file type and creator are properly set. If the same thing is put into a button script: on mouseUp ChangeFileType("HD40:TempFolder:foo.txt", TEXT, ALFA) end mouseUp the script fails with "Expected ")" but found ",". What am I doing wrong? Is there another external that will do the job? I am trying to create a stack that will do batch operations on text files -- everything else works except this! If the topic is of interest to others, I'll summarize. -- Bill Johnston (johnston@oscar.ccm.udel.edu) -- 38 Chambers St.; Newark, DE 19711; (302)368-1949