Adobe 12040118 Using Help - Page 70
File seek() method, File type attribute, Returns, See also, Description, Parameters
UPC - 718659361808
View all Adobe 12040118 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 70 highlights
Help Using Help Reference Back 70 select (Mac OS) On Mac OS, the optional second argument is a callback function. This function takes one argument, which is a File object. When the dialog is set up, it calls this callback function for each file that is about to be displayed. If the function returns anything else than true, the file is not displayed. This is true only for the openDialog() method; the saveDialog() method ignores this callback method. Returns File object, or null if the user cancels the dialog. See also "filePutDialog() global function" on page 24 File seek() method File(path).seek(pos, mode) Description The File seek() method seeks to a certain position in the file. This method does not permit seeking to positions less than 0 or greater than the current file size. Parameters pos mode the new current position inside the file as an offset in bytes (an integer), dependent on the seek mode the seek mode (0 = seek to absolute position, 1 = seek relative to the current position, 2 = seek backwards from the end of the file) Returns Boolean; true if the position was changed. File tell() method File(path).tell() Description The File tell() method returns the current position in the file as an offset in bytes. Parameters None. Returns Integer. File type attribute File(path).type Description The File type attribute holds the Macintosh file type as a four-character string. Using Help Back 70