Way to retrieve creator-type of OS X files?
Robert Brenstein
rjb at rz.uni-potsdam.de
Thu Sep 16 10:21:36 EDT 2004
Yes, AppleScript will work but if you need to do it repeatedly for a
large number of files, this will be way slow.
Robert
>Can this be done through AppleScript? It is platform-specific anyway...
>
>On Sep 16, 2004, at 6:19 AM, Robert Brenstein wrote:
>
>>>I've seen lots of documentation on how to SET creator-types in Mac
>>>OS X for new files that are being downloaded by Revolution, but
>>>I'm having trouble finding the command that will tell you the
>>>file/creator code of a pre-existing file on a Mac OS X hard-drive.
>>>Can anyone tell me what that command is?
>>>For instance, if I've got a Rev app that uploads a series of jpg,
>>>gifs, psd,
>>>illustrator files, etc to a server, I'd like to preserve all those
>>>filetypes
>>>when they get downloaded again with Revolution. I'd like a means of
>>>automating this so I don't have a giant if-then statement of extensions and
>>>creator-codes.
>>
>>As far as I know, there is no way to get finder information for a
>>single file within Rev. You can use the detailed files to get this
>>for the whole folder but it is really not optimal if one needs such
>>an info for just a single file in a folder full of hundreds of
>>images.
>>
>>Also, if you are concerned about retaining file/creator codes, you
>>could/should retain also other finder info like file labels.
>>Unfortunately, there is no way to get/set them from within
>>Revolution as far as I know.
>>
>>Theoretically, you should be able to use Rinaldi's externals
>>GetFInfo and SetFInfo. I say theoretically because GetFInfo causes
>>a hard crash and both Frederic and RunRev folks blame the other
>>(see bug 855). Furthermore, there are no OSX versions of those
>>externals.
>>
>>IMHO it would be reasonable to support platform-specific features
>>like these through an external.
>>
>>Robert Brenstein
>>_______________________________________________
>>use-revolution mailing list
>>use-revolution at lists.runrev.com
>>http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>-----------------------------------------------------------
>Frank D. Engel, Jr. <fde101 at fjrhome.net>
>
>
>
>___________________________________________________________
>$0 Web Hosting with up to 120MB web space, 1000 MB Transfer
>10 Personalized POP and Web E-mail Accounts, and much more.
>Signup at www.doteasy.com
>
>_______________________________________________
>use-revolution mailing list
>use-revolution at lists.runrev.com
>http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list