-
Notifications
You must be signed in to change notification settings - Fork 1
Functions
dansmith65 edited this page Jul 4, 2011
·
2 revisions
Return a comma delimited list of all errors this plug-in can return.
- comma-delimited list of errors
- filePath
- 1 if no error occurred
- 104 Cannot write to file
- 105 Cannot delete file
-
path
path to directory
- 1 if no error occurred
- 2.02 Invalid parameter: could not be converted to a path
- 103 Directory already exists
- 104 Cannot write to file
-
path
path to directory
- 1 if no error occurred
- 2.02 Invalid parameter: could not be converted to a path
- 101 Directory does not exist
- 2.05 Invalid parameter: must be a directory
- 105 Cannot delete file
-
path
path to directory
- 1 if no error occurred
- 2.02 Invalid parameter: could not be converted to a path
- 101 Directory does not exist
- 2.05 Invalid parameter: must be a directory
- 105 Cannot delete file
- Path to desktop
-
path
path to directory -
options
Options to configure how this function will operate. Accepts the following options formatted as a value list of option=value pairs. The default values are shown.
fullpath=false boolean. Whether or not to return full paths.
type=all all, file, or directory. Limit the list to a specific type.
regex= regular expression. If specified, only file/directory names that match this expression will be returned.
uses Java style pattern: http://download.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html
regex examples/hints:
- everything to the right of: (?i) will be case insensitive
- to find all pdf files, use this string: ^(?i).*.pdf$
- list of file/directory names
- 2.02 Invalid parameter: could not be converted to a path
- 101 Directory does not exist
- 2.05 Invalid parameter: must be a directory
- 2.06 Invalid parameter: option
-
path
path to directory
- 1 if no error occurred
- 2.02 Invalid parameter: could not be converted to a path
- 101 Directory does not exist
- 3 Operation not supported
-
containerFieldAsText
container field name; use GetFieldName() function, rather than passing field name as hard-coded text -
path
Folder to save file to. If includes a file extension, will be saved as specified file name. If ends with a period, the file extension will be taken from the original file. Otherwise, will assume this parameter is a directory, and will append the original file name to it.
If directory does not exist, it will be created. -
options
Options to configure how this function will operate. Accepts the following options formatted as a value list of option=value pairs. The default values are shown.
overwrite=false Whether or not to replace existing file with exported file, if a file with the same name already exists.
- 1 if no error occurred
- 2.02 Invalid parameter: could not be converted to a path
- 103 Directory already exists
- 104 Cannot write to file
- 102 File already exists
- 300 Container field is empty
- 300.01 Could not get data from container (make sure container field name is passed as text)
-
path
path to file
- 1 if no error occurred
- 2.02 Invalid parameter: could not be converted to a path
- 100 File does not exist
- 105 Cannot delete file
-
path
path to file or directory
- 1 if file exists
- 0 if file does not exist
- text description of last error
- detailed error information for last error
- last error number
- short/user-friendly description of last error
-
path
path to file or directory
- path to a directory, with trailing separator
- 2.02 Invalid parameter: could not be converted to a path
-
path
path to file
- file name, if parameter was a path to a file
- empty string, if parameter was a path to a directory
- 2.02 Invalid parameter: could not be converted to a path
-
path
path to file or directory
- path formatted as a URI
- 2.02 Invalid parameter: could not be converted to a path
-
path
path to file or directory
- 1 if path is a directory
- 0 if path is not a directory
- 2.02 Invalid parameter: could not be converted to a path
-
path
path to file or directory
- 1 if path is a file
- 0 if path is not a file
- 2.02 Invalid parameter: could not be converted to a path
-
scriptName
name of script to run -
parameter
script parameter -
schedule
UNIX crontab-like pattern.
View this website for more details: http://www.sauronsoftware.it/projects/cron4j/manual.php#p02 -
options
Options to configure how this function will operate. Accepts the following options formatted as a value list of option=value pairs. The default values are shown.
file=(current file) name of file to perform script in
name=(file::name) name of task. if the name already exists, it will be replaced
priority=(value set by ScriptCronPrioritySet, or default) priority for this task
autostart=true automatically start the cron scheduler after adding this task
- task name
- 2 Invalid parameter
-
taskName
name of task, as returned by either oosm_ScriptCronAdd or oosm_ScriptCronList
- 1 if task was deleted
- 2 Invalid parameter
- 4 Invalid state
- 1 if no error occurred
- 1 if cron is running
- 0 if cron is NOT running
- list of scheduled tasks
- qty
- list of tasks and their scheduled execution times
- current thread priority
-
integer
in the range: 1-10
- 1 if no error occurred
- 1 if no error occurred
- 1 if no error occurred
-
schedule
UNIX crontab-like pattern.
View this website for more details: http://www.sauronsoftware.it/projects/cron4j/manual.php#p02 - qty
- list of execution times
- scriptName
- parameter
- fileName
-
sql
SQL statement to execute -
columnDelimiter
Character to use between field(column) values. If left blank, will default to "|". Can only contain 1 character. -
rowDelimiter
Character to use between records(rows). If left blank, will default to "¶". Can only contain 1 character.
- result of SQL statement
- 2 Invalid parameter
- 1000 SQL Error
-
sql
SQL statement to execute
- 1 if no error occurred
- 1000 SQL Error
- number of columns
- 1000.01 SQL Error: must call SQLArray before any other SQLArray... functions
- number of rows
- 1000.01 SQL Error: must call SQLArray before any other SQLArray... functions
- columnNum
- rowNum
- value at specified location in array
- 2.04 Invalid parameter: must be an integer
- 1000.01 SQL Error: must call SQLArray before any other SQLArray... functions
- 1000.02 SQL Error: value not in array
- split time in fractions of a seconds
- 200 TimerStart must be called first
- arbitrary time in fractions of a seconds
- elapsed time in fractions of a seconds
- 200 TimerStart must be called first
-
fileToCompress
FileMaker container field name, path to file, or path to directory to compress. To rename the item in the zip file, include a tab character, then the name as you want it to appear in the zip file. If the path is a directory, then rename option will place the directory in the specified subdirectory. Examples are below
FILE TO COMPRESS RENAME NAME IN ZIP FILE
D:\test\file.ext file.ext
D:\test\file.ext apple. apple.ext
D:\test\file.ext apple\ apple\file.ext
D:\test\file.ext apple\bannana.txt apple\bannana.txt
(below assumes that D:\test\ directory only has a single file.ext in it)
D:\test\ file.ext
D:\test\ apple\ apple\file.ext -
outputFile
path (including file name) of zip file to create. ".zip" extension will be added if this path does not end with ".zip". -
options
Options to configure how this function will operate. Accepts the following options formatted as a value list of option=value pairs. The default values are shown.
overwrite=false overwrite outputFile
level=6 compression level
buffer=1024 buffer size to use when reading/writing to file
- 1 if no error occurred
- 2 Invalid parameter
- 100 File does not exist
- 102 File already exists
- 106 Cannot read file
- 300 Container field is empty
- 300.01 Could not get data from container (make sure container field name is passed as text)
this page was generated by Documentation.fp7 file, which is available in the downloads section