Bellhop F-Script Class Reference

 

Overview

The Bellhop F-Script Execution Context plug-in uses a self contained version of the F-Script interpreter that loads three additional custom classes that are automatically made available to your F-Script services: Pasteboard, Panel and Finder. You do not have to do anything special to use these classes, as they are made available to your services automatically.

 

The Pasteboard Class

The Pasteboard class defines methods that allow you to query the services pasteboard for its contents, as well as put data back onto it. It mimics the methods of NSPasteboard class in the Cocoa frameworks, with some differences. The most notable difference is that all methods in the module take the name of the pasteboard that is to be queried or altered. All of the global constants that are used to define pasteboard types are available to your F-Script scripts using the same symbolic names as defined in the Cocoa frameworks (e.g. NSStringPboardType).

 

The Panel Class

The Panel class defines methods that you can use to interact with users. You can choose from prompt panels, alert panels, list panels and file open/save panels. Some of the methods return symbolic constants that mimic those defined in the Cocoa frameworks (e.g. NSAlertDefaultReturn).

 

The Finder Class

The Finder class defines methods that you can use to interact with the Finder in a limited fashion. It defines methods to select files, launch applications, open documents and URLs, and move/copy files.