File Tools

The Files Tools patch includes several patches for File Input and Output, as well as structure loading and saving.

Versions

File Tools v0.0.20080220   21.4 KB i386 · ppc

The Files Tools patch includes several patches for File Input and Output, as well as structure loading and saving. * File Info - provides information about a file, such as its size, type, and creation date. * File Type - Provides the UTI of a specified file. * String With File - Reads a file's contents into a String. * String With URL - Reads a URL's contents into a String. * Structure From File - Reads a QCStructure from a plist file. * Structure To File - Saves a structure to a plist. * Text File Writer - Saves a string to a file.

Instructions

  1. Download most recent file using above link
  2. Extract content (you will see single *.plugin file)
  3. Copy this file to:
    • ~/Library/Graphics/Quartz Composer Plug-Ins (~ sign stands for home directory, so it is /Users/YOUR_USERNAME/Library/Graphics/Quartz Composer Plug-Ins)
    • or, for system wide installation (for all users) you can copy this plugin to /Library/Graphics/Quartz Composer Plug-Ins

Patches

The following patches are defined in File Tools plugin:

This patch returns some information about the zeroth Cocoa NSDocument.

http://kineme.net/

Copyright © 2006 Steve Mokris

This patch provides the Uniform Type Identifier (UTI) of the specified file. For example, if the path to a QuickTime movie is specified, File Type outputs “com.apple.quicktime-movie”.

Type can be one of the following:

  • NSFileTypeDirectory — Directory/Folder
  • NSFileTypeRegular — Regular File
  • NSFileTypeSymbolicLink — Symbolic Link
  • NSFileTypeSocket — Socket
  • NSFileTypeCharacterSpecial — Character Device
  • NSFileTypeBlockSpecial — Block Device
  • NSFileTypeUnknown — Unknown

http://kineme.net/

This patch provides the Uniform Type Identifier (UTI) of the specified file. For example, if the path to a QuickTime movie is specified, File Type outputs “com.apple.quicktime-movie”.

http://kineme.net/

Copyright © 2006 Steve Mokris

This patch reads a file into a string.

http://kineme.net/

Copyright © 2006 Steve Mokris

This patch retrieves a URL into a string.

http://kineme.net/

Copyright © 2006 Steve Mokris

This patch loads a structure from a binary plist file.

http://kineme.net/

Copyright © 2007 Christopher Wright

This patch saves an input structure to a binary plist file.

http://kineme.net/

Copyright © 2007 Christopher Wright

This patch saves an input string to a text file.

http://kineme.net/

Copyright © 2007 Christopher Wright