Platforms to show: All Mac Windows Linux Cross-Platform
CreateApplicationSupportFolderMBS(domain as Integer) as folderitem Deprecated
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
global method | Special Folders | MBS Util Plugin | ✅ Yes | ✅ Yes | ❌ No | ✅ Yes | All |
This item is deprecated and should no longer be used.
You can use SpecialFolder module instead.
Returns a folderitem to this folder if it exists on that system.
If this folder is supported by the operation system version, the folder is created and returned. If the folder could not be created or is not supported, nil is returned. If the folder allready exists, it is just returned.
Note that not every folder exists on every Mac OS Version!
The codes for domain are (The Demo includes a module for these):
-32768 | On System Disk |
-32767 | On Appropriate Disk |
-32766 | System Domain, on Mac OS X mostly inside the folder /System. |
-32765 | Local Domain (on Netbooting for example) |
-32764 | Network Domain (on Netbooting for example) |
-32763 | User Domain, on Mac OS X mostly inside the users folder. |
-32762 | Classic Domain, the current used Classic System folder. |
Xojo ApplicationSupport function points to "/Library/Application Support" while ApplicationSupportFolderMBS points to different locations on my test system depending on the domain code:
-32768 -> "/Library/Application Support"
-32767 -> "/Library/Application Support"
-32766 -> nil
-32765 -> "/Library/Application Support"
-32764 -> nil
-32763 -> "/Users/cs/Library/Application Support"
-32762 -> "/Volumes/Mac OS 9/Systemordner/Application Support"
0 -> "/Library/Application Support"
At last it is your decision to use the correct one!
Some examples using this global method:
Some FAQ entries about this method:
The items on this page are in the following plugins: MBS Util Plugin.