Platforms to show: All Mac Windows Linux Cross-Platform
Application.ApplicationCreatorCodeMBS as string
Function:
Returns the Creator Code of the application.
Example:
Only useful on Mac OS.
If you run your app inside the Xojo IDE it will return "RBv2" which is Xojo's Creator code sind Xojo 2.0.
Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |
method | Process | MBS Util Plugin | Yes | No | No | No | No |
Example:
msgbox "Hi. This application has the creator code "+app.ApplicationCreatorCodeMBS
This item is deprecated and should no longer be used.
Notes:
Only useful on Mac OS.
If you run your app inside the Xojo IDE it will return "RBv2" which is Xojo's Creator code sind Xojo 2.0.
Some examples using this method:
Application.ApplicationFileMBS as folderitem
Function:
Gives a folderitem to the applications file.
Example:
Inside Xojo points to the Xojo application.
This item may go in the future. Please use app.executablefile in new Xojo versions.
Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |
method | Process | MBS Util Plugin | Yes | Yes | No | No | No |
Example:
msgbox "Hi. The file of this application is named "+app.ApplicationFileMBS.name
This item is deprecated and should no longer be used.
You can use ExecutableFile instead.
Notes:
Inside Xojo points to the Xojo application.
This item may go in the future. Please use app.executablefile in new Xojo versions.
Some examples using this method:
Application.ApplicationNameMBS as string
Function:
Returns the name of the application.
Example:
Notes:
This may not be the exact same name than the filename.
Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |
method | Process | MBS Util Plugin | Yes | No | No | No | No |
Example:
msgbox "Hi. This application is named "+app.ApplicationNameMBS
Some examples using this method:
Application.ArgumentsMBS as String()
Function:
Queries arguments of process.
Notes:
Returns nil in case of any error (low memory).
First entry in result is path to current app.
Other entries are parameters, without any quotes.
Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |
method | Process | MBS Util Plugin | 15.2 | Yes | Yes | Yes | No | No |
Notes:
Returns nil in case of any error (low memory).
First entry in result is path to current app.
Other entries are parameters, without any quotes.
Some examples using this method:
Application.FrontmostMBS as boolean
Function:
Returns true if the application is frontmost.
Example:
Notes:
This property is for read and write. Writing to it brings the app to front.
Setting this property to false does nothing.
If you need to make some other application frontmost, you can use app.HideMeMBS or use the ProcessMBS class.
Implemented for Windows in version 19.2. When querying, we check if the front window belongs to our application. When setting the plugin builds a list of all FileMaker windows. Than we activate the top most of them and move all other windows in z order behind.
(Read and Write computed property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |
property | Process | MBS Util Plugin | Yes | Yes | No | No | No |
Example:
app.frontmostmbs=True 'bring app to front
This property is for read and write. Writing to it brings the app to front.
Setting this property to false does nothing.
If you need to make some other application frontmost, you can use app.HideMeMBS or use the ProcessMBS class.
Implemented for Windows in version 19.2. When querying, we check if the front window belongs to our application. When setting the plugin builds a list of all FileMaker windows. Than we activate the top most of them and move all other windows in z order behind.
(Read and Write computed property)
Some examples using this property:
Application.HideMeMBS as boolean
Function:
Hides the current application.
Notes:
Returns true if the current application was hidden.
Returns false on Carbon running on Mac OS 9 or Windows.
Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |
method | Process | MBS Util Plugin | 3.2 | Yes | No | No | No | No |
Notes:
Returns true if the current application was hidden.
Returns false on Carbon running on Mac OS 9 or Windows.
Some examples using this method:
Application.HideOthersMBS as boolean
Function:
Hides all applications except the current one.
Notes:
Returns true if the other applications were hidden.
Returns false on Carbon running on Mac OS 9 of Windows.
Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |
method | Process | MBS Util Plugin | 3.2 | Yes | No | No | No | No |
Notes:
Returns true if the other applications were hidden.
Returns false on Carbon running on Mac OS 9 of Windows.
Some examples using this method:
Application.LaunchTimeMBS as Double
Function:
Returns the the ticks value at launch time.
Example:
Notes:
This value must be converted to the secondsvalue like in the example.
-1 on Windows.
For Mac OS X see the DarwinResourceUsageMBS class.
Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |
method | Process | MBS Util Plugin | Yes | No | No | No | No |
Example:
dim d as date
d=new date
d.totalSeconds=d.totalSeconds-(ticks-app.launchTimeMBS)/60
msgbox d.longdate+" "+d.longtime
This value must be converted to the secondsvalue like in the example.
-1 on Windows.
For Mac OS X see the DarwinResourceUsageMBS class.
Application.ProcessTimeMBS as Double
Function:
Returns the current CPU time for the process.
Example:
Notes:
On Mac OS X, the OS counts how much CPU time in given to the current process.
On Mac OS 9 you can get this information for any process using the ProcessMBS class.
Returns -1 in case of an error.
You can do this function yourself if you like:
dim s as SoftDeclareMBS
s=new SoftDeclareMBS
if s.LoadLibrary("System.Framework") then
if s.LoadFunction("clock") then
if s.Call(0,nil) then
MsgBox "clock: "+str(s.Result)+chr(13)+"app.ProcessTime: "+str(app.ProcessTime)
end if
end if
end if
You may need to add Error Checking code.
Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |
method | Process | MBS Util Plugin | Yes | No | No | No | No |
Example:
msgbox "I got "+format(app.ProcessTimeMBS/100,"0.00")+" seconds CPU time till now."
On Mac OS X, the OS counts how much CPU time in given to the current process.
On Mac OS 9 you can get this information for any process using the ProcessMBS class.
Returns -1 in case of an error.
You can do this function yourself if you like:
dim s as SoftDeclareMBS
s=new SoftDeclareMBS
if s.LoadLibrary("System.Framework") then
if s.LoadFunction("clock") then
if s.Call(0,nil) then
MsgBox "clock: "+str(s.Result)+chr(13)+"app.ProcessTime: "+str(app.ProcessTime)
end if
end if
end if
You may need to add Error Checking code.
Some examples using this method:
The items on this page are in the following plugins: MBS Util Plugin.

Links
MBS Xojo PDF Plugins