Platforms to show: All Mac Windows Linux Cross-Platform

Back to DRFileMBS class.

DRFileMBS.DRLinkTypeFinderAlias as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method DiscRecording MBS MacControls Plugin 10.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The constant used with linkWithLinkType to create a Finder alias.

DRFileMBS.DRLinkTypeHardLink as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method DiscRecording MBS MacControls Plugin 10.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The constant used with linkWithLinkType to create a hard link.

DRFileMBS.DRLinkTypeSymbolicLink as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method DiscRecording MBS MacControls Plugin 10.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The constant used with linkWithLinkType to create a symbolic link.

DRFileMBS.fileWithPath(path as folderitem) as DRFileMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method DiscRecording MBS MacControls Plugin 7.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Creates a "real" file object.
Example
dim file as FolderItem = GetFolderItem("/System/Library/Fonts/Helvetica.dfont", FolderItem.PathTypeShell)
dim f as DRFileMBS = DRFileMBS.fileWithPath(file)

MsgBox f.baseName

This type of DRFile reads in data from an existing file located at path and burns that data to disc.

See also:

DRFileMBS.fileWithPath(path as string) as DRFileMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method DiscRecording MBS MacControls Plugin 7.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Creates a "real" file object.
Example
dim f as DRFileMBS = DRFileMBS.fileWithPath("/System/Library/Fonts/Helvetica.dfont")

MsgBox f.baseName

This type of DRFile reads in data from an existing file located at path and burns that data to disc.

See also:

DRFileMBS.finderAliasPointingTo(original as DRFSObjectMBS, filesystem as string) as DRFileMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method DiscRecording MBS MacControls Plugin 7.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Creates a Finder alias to another file on the output disc.

original: The file to point he hard link to
filesystem: The filesystem this link will exist on.

As with Mac OS X 10.6.4 this method seems to create an empty file only (no alias).

DRFileMBS.hardLinkPointingTo(original as DRFileMBS, filesystem as string) as DRFileMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method DiscRecording MBS MacControls Plugin 7.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Creates a hard link to another file on the output disc.

original: The file to point he hard link to
filesystem: The filesystem this link will exist on.

As with Mac OS X 10.6.4 this method seems to crash always.

DRFileMBS.linkWithLinkType(linkType as string, original as DRFSObjectMBS, filesystem as string) as DRFileMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method DiscRecording MBS MacControls Plugin 7.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Initializes a file object to point to another file on the output disc.
Example
dim SomeFolder as new DRFolderMBS("Some new folder")

// Let's have a file to test

dim data as string = "Hello World" // file content
dim name as string = "test.txt" // file name
dim testfile as DRFileMBS = DRFileMBS.virtualFileWithName(name, data)

// and create a sym link for it
dim SymLink as DRFileMBS = DRFileMBS.linkWithLinkType(DRFileMBS.DRLinkTypeSymbolicLink, testfile, DRFileMBS.DRHFSPlus)
if SymLink = nil then
MsgBox "SymLink is nil!?"
else
SomeFolder.addChild SymLink
end if

linkType: The type of link that will be created.
original: The file to point he hard link to
filesystem: The filesystem this link will exist on.

DRFileMBS.symLinkPointingTo(original as DRFSObjectMBS, filesystem as string) as DRFileMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method DiscRecording MBS MacControls Plugin 7.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Creates a symbolic link to another file on the output disc.
Example
dim SomeFolder as new DRFolderMBS("Some new folder")

// Let's have a file to test

dim data as string = "Hello World" // file content
dim name as string = "test.txt" // file name
dim testfile as DRFileMBS = DRFileMBS.virtualFileWithName(name, data)

// and create a sym link for it
dim SymLink as DRFileMBS = DRFileMBS.symLinkPointingTo(testfile, DRFileMBS.DRHFSPlus)
if SymLink = nil then
MsgBox "SymLink is nil!?"
else
SomeFolder.addChild SymLink
end if

original: The file to point he hard link to
filesystem: The filesystem this link will exist on.

As with Mac OS X 10.6.4 this method seems to work just fine.

Some examples using this method:

DRFileMBS.virtualFileWithName(name as string, data as memoryblock) as DRFileMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method DiscRecording MBS MacControls Plugin 7.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Creates a "virtual" file object.
Example
dim data as string = "Hello World" // file content
dim name as string = "test.txt" // file name

dim f as DRFileMBS = DRFileMBS.virtualFileWithName(name, data)

MsgBox f.baseName

This type of DRFile burns the data passed in to disc, creating a file with the passed in name.

Some examples using this method:

The items on this page are in the following plugins: MBS MacControls Plugin.


The biggest plugin in space...