Pasteboard Class Reference
Overview
The Pasteboard class defines methods that allow you to query the services pasteboard for its content, as well as put data back onto it. You can also target the Clipboard by its symbolic name (NSGeneralPboard) if you wish to read and write data to and from the clipboard.
Pasteboard Data Types
The following global variables are automatically available to your F-Script and are used to identify the various types of pasteboard data. You can use these symbolic names instead of creating new strings. For more information on the meaning of these types, see the Apple developer documentation for the NSPasteboard class.
NSStringPboardType
NSTabularTextPboardType
NSFilenamesPboardType
NSFileContentsPboardType
NSRTFPboardType
NSRTFDPboardType
NSPostScriptPboardType
NSPDFPboardType
NSHTMLPboardType
NSURLPboardType
NSTIFFPboardType
NSPICTPboardType
NSColorPboardType
NSRulerPboardType
NSFontPboardType
NSVCardPboardType
Additionally, you can target the general clipboard by name using the NSGeneralPboard
constant.
Pasteboard Class Method List
The following methods are available in the Pasteboard class:
- + (NSArray *)typesForPasteboard:(NSString *)aPasteboard
- + (void)declareTypes:(NSArray *)aTypeList forPasteboard:(NSString *)aPasteboard
- + (NSData *)readDataOfType:(NSString *)aType forPasteboard:(NSString *)aPasteboard
- + (void)writeData:(NSData *)aData ofType:(NSString *)aType forPasteboard:(NSString *)aPasteboard
- + (NSString *)readStringOfType:(NSString *)aType forPasteboard:(NSString *)aPasteboard
- + (void)writeString:(NSString *)aString ofType:(NSString *)aType forPasteboard:(NSString *)aPasteboard
- + (NSArray *)readArrayOfType:(NSString *)aType forPasteboard:(NSString *)aPasteboard
- + (void)writeArray:(NSArray *)anArray ofType:(NSString *)aType forPasteboard:(NSString *)aPasteboard
- + (NSDictionary *)readDictionaryOfType:(NSString *)aType forPasteboard:(NSString *)aPasteboard
- + (void)writeDictionary:(NSDictionary *)aDictionary ofType:(NSString *)aType forPasteboard:(NSString *)aPasteboard
Pasteboard Class Method Descriptions