Media_CreateAlias ( targetItem ; alias )
Media_CreateAlias creates an alias (on Mac) or shortcut (on Windows) that points to the target item.
Parameter | Description |
---|---|
Result | An optional target field to receive any error. Will be left empty when there is no error. |
targetItem | Path to the alias target. The target must exist. |
alias | Path to an alias name. This must not exist |
Examples
To create an alias named “Start.fmp12” in the default folder that points to a file named “Master.fmp12” in the application folder and store any potential error in the MyTable::Response field
:
Set Field [ MyTable::Response ;
Media_CreateAlias (
“cartwheel.mov” ;
“.D/movie alias.mov” ) ]
To create an alias named “Start.fmp12” in the default folder that points to a file named “Master.fmp12” in the application folder:
Set Field [ MyTable::Response ;
Media_CreateAlias (
“.A/Master.fmp12” ;
“Start.fmp12” ) ]