Update of /cvsroot/frontierkernel/odbs/frontierRoot/system/verbs/apps/Safari In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27094 Added Files: save doJavascript delete print open count close openDocument make duplicate exists launch emailContents set move isRunning quit examples id bringToFront objectHierarchy get printDocument Log Message: Safari apps Table item --- NEW FILE: set --- FrontierVcsFile:1:scpt:system.verbs.apps.Safari.set on set (obj, setTo) { // Set an object's data. return (appleEvent (Safari.appInfo.id, 'core', 'setd', '----', objspec (obj), 'data', setTo))} --- NEW FILE: exists --- FrontierVcsFile:1:scpt:system.verbs.apps.Safari.exists on exists (obj) { // Verify if an object exists. return (appleEvent (Safari.appInfo.id, 'core', 'doex', '----', objspec (obj)))} --- NEW FILE: move --- FrontierVcsFile:1:scpt:system.verbs.apps.Safari.move on move (obj, moveTo) { // Move object(s) to a new location. return (appleEvent (Safari.appInfo.id, 'core', 'move', '----', objspec (obj), 'insh', moveTo))} --- NEW FILE: examples --- FrontierVcsFile:1:tabl:system.verbs.apps.Safari.examples --- NEW FILE: close --- FrontierVcsFile:1:scpt:system.verbs.apps.Safari.close on close (obj, saving = nil, savingIn = nil) { // Close an object. return (appleEvent (Safari.appInfo.id, 'core', 'clos', '----', objspec (obj), 'savo', enum (saving), 'kfil', alias (savingIn)))} --- NEW FILE: printDocument --- FrontierVcsFile:1:scpt:system.verbs.apps.Safari.printDocument on printDocument (file) { return (required.printDocument (Safari.appInfo.id, file))} --- NEW FILE: open --- FrontierVcsFile:1:scpt:system.verbs.apps.Safari.open on open (file) { // Open an object. return (appleEvent (Safari.appInfo.id, 'aevt', 'odoc', '----', alias (file)))} --- NEW FILE: id --- FrontierVcsFile:1:type:system.verbs.apps.Safari.id sfri --- NEW FILE: quit --- FrontierVcsFile:1:scpt:system.verbs.apps.Safari.quit on quit (obj, saving = nil) { // Quit an application. return (appleEvent (Safari.appInfo.id, 'aevt', 'quit', '----', objspec (obj), 'savo', enum (saving)))} --- NEW FILE: make --- FrontierVcsFile:1:scpt:system.verbs.apps.Safari.make on make (new, at = nil, withData = nil, withProperties = nil) { // Make a new object. return (appleEvent (Safari.appInfo.id, 'core', 'crel', 'kocl', string4 (new), 'insh', at, 'data', withData, 'prdt', withProperties))} --- NEW FILE: objectHierarchy --- FrontierVcsFile:1:optx:system.verbs.apps.Safari.objectHierarchy application -- An application's top level scripting object. Properties: all properties of item -- All of the properties of the superclass. frontmost -- Is this the frontmost (active) application? name -- The name of the application. version -- The version of the application. Elements: all elements of item document window attachment -- Represents an inline text attachment. This class is used mainly for make commands. Properties: all properties of text -- All of the properties of the superclass. fileName -- The path to the file for the attachment Elements: all elements of text atts* catr* character paragraph word attributeRun -- This subdivides the text into chunks that all have the same attributes. Properties: all properties of item -- All of the properties of the superclass. color -- The color of the first character. font -- The name of the font of the first character. size -- The size in points of the first character. Elements: all elements of item atts* catr* character paragraph word character -- This subdivides the text into characters. Properties: all properties of item -- All of the properties of the superclass. color -- The color of the first character. font -- The name of the font of the first character. size -- The size in points of the first character. Elements: all elements of item atts* catr* character paragraph word color -- A color. Properties: all properties of item -- All of the properties of the superclass. Elements: all elements of item document -- A document. Properties: all properties of item -- All of the properties of the superclass. modified -- Has the document been modified since the last save? name -- The document's name. path -- The document's path. Elements: all elements of item document -- A Safari document. Properties: all properties of document -- All of the properties of the superclass. source -- The HTML source of the document. text -- Text of the document. A copy. Modifications to text aren't reflected on the web page. url -- The current URL of the document Elements: all elements of document item -- A scriptable object. Properties: class -- The class of the object. properties -- All of the object's properties. paragraph -- This subdivides the text into paragraphs. Properties: all properties of item -- All of the properties of the superclass. color -- The color of the first character. font -- The name of the font of the first character. size -- The size in points of the first character. Elements: all elements of item atts* catr* character paragraph word printSettings -- Properties: copies -- the number of copies of a document to be printed collating -- Should printed copies be collated? startingPage -- the first page of the document to be printed endingPage -- the last page of the document to be printed pagesAcross -- number of logical pages laid across a physical page pagesDown -- number of logical pages laid out down a physical page errorHandling -- how errors are handled faxNumber -- for fax number targetPrinter -- for target printer text -- Rich (styled) text Properties: all properties of item -- All of the properties of the superclass. color -- The color of the first character. font -- The name of the font of the first character. size -- The size in points of the first character. Elements: all elements of item atts* catr* character paragraph word window -- A window. Properties: all properties of item -- All of the properties of the superclass. bounds -- The bounding rectangle of the window. closeable -- Whether the window has a close box. document -- The document whose contents are being displayed in the window. floating -- Whether the window floats. id -- The unique identifier of the window. index -- The index of the window, ordered front to back. miniaturizable -- Whether the window can be miniaturized. miniaturized -- Whether the window is currently miniaturized. modal -- Whether the window is the application's current modal window. name -- The full title of the window. resizable -- Whether the window can be resized. titled -- Whether the window has a title bar. visible -- Whether the window is currently visible. zoomable -- Whether the window can be zoomed. zoomed -- Whether the window is currently zoomed. Elements: all elements of item word -- This subdivides the text into words. Properties: all properties of item -- All of the properties of the superclass. color -- The color of the first character. font -- The name of the font of the first character. size -- The size in points of the first character. Elements: all elements of item atts* catr* character paragraph word --- NEW FILE: duplicate --- FrontierVcsFile:1:scpt:system.verbs.apps.Safari.duplicate on duplicate (obj, duplicateTo, withProperties = nil) { // Copy object(s) and put the copies at a new location. return (appleEvent (Safari.appInfo.id, 'core', 'clon', '----', objspec (obj), 'insh', duplicateTo, 'prdt', withProperties))} --- NEW FILE: doJavascript --- FrontierVcsFile:1:scpt:system.verbs.apps.Safari.doJavascript on doJavascript (obj, doJavascriptIn) { // Applies a string of JavaScript code to a document. return (appleEvent (Safari.appInfo.id, 'sfri', 'dojs', '----', objspec (obj), 'dcnm', doJavascriptIn))} --- NEW FILE: print --- FrontierVcsFile:1:scpt:system.verbs.apps.Safari.print on print (file, printDialog = nil, withProperties = nil) { // Print an object. return (appleEvent (Safari.appInfo.id, 'aevt', 'pdoc', '----', alias (file), 'pdlg', boolean (printDialog), 'prdt', withProperties))} --- NEW FILE: save --- FrontierVcsFile:1:scpt:system.verbs.apps.Safari.save on save (obj, as = nil, saveIn = nil) { // Save an object. return (appleEvent (Safari.appInfo.id, 'core', 'save', '----', objspec (obj), 'fltp', as, 'kfil', alias (saveIn)))} --- NEW FILE: get --- FrontierVcsFile:1:scpt:system.verbs.apps.Safari.get on get (obj) { // Get the data for an object. return (appleEvent (Safari.appInfo.id, 'core', 'getd', '----', objspec (obj)))} --- NEW FILE: emailContents --- FrontierVcsFile:1:scpt:system.verbs.apps.Safari.emailContents on emailContents (obj, of) { // Emails the contents of a document. (Available in Mac OS X v10.4 and later.) return (appleEvent (Safari.appInfo.id, 'sfri', 'mlct', '----', objspec (obj), 'dcnm', of))} --- NEW FILE: isRunning --- FrontierVcsFile:1:scpt:system.verbs.apps.Safari.isRunning on isRunning () { return (sys.appIsRunning (Safari.appInfo.id))} --- NEW FILE: count --- FrontierVcsFile:1:scpt:system.verbs.apps.Safari.count on count (obj, each = nil) { // Return the number of elements of a particular class within an object. return (appleEvent (Safari.appInfo.id, 'core', 'cnte', '----', objspec (obj), 'kocl', string4 (each)))} --- NEW FILE: bringToFront --- FrontierVcsFile:1:scpt:system.verbs.apps.Safari.bringToFront on bringToFront () { if not app.start ("Safari") { return (false)}; return (sys.bringAppToFront (Safari.appInfo.id))} --- NEW FILE: launch --- FrontierVcsFile:1:scpt:system.verbs.apps.Safari.launch on launch () { return (app.start ("Safari"))} --- NEW FILE: openDocument --- FrontierVcsFile:1:scpt:system.verbs.apps.Safari.openDocument on openDocument (file) { return (required.openDocument (Safari.appInfo.id, file))} --- NEW FILE: delete --- FrontierVcsFile:1:scpt:system.verbs.apps.Safari.delete on delete (obj) { // Delete an object. return (appleEvent (Safari.appInfo.id, 'core', 'delo', '----', objspec (obj)))} |