ScriptSpot

Forum topic · General Scripting

Missing: <script name>

By kuroiei · 2011-06-24

Description

Hi. This one drives me nuts. After making a plugin, along with a macroscript, after Max restarts, the button is greyed out and its name is changed to "Missing: MyScrip". It seems that every time Max is restarted it forgets that I installed this script.

Here's the macroscript:


macroScript MyScript
 	category:"FT"
 	toolTip:"This script cures cancer!"
	buttonText:"Press Me"

(
	on execute do
	filein   @"$scripts\FT\MyScript.ms"
)

The other stuff: the macroscript is in "...enu\UI\usermacros" while the script itself is in "...Scripts\FT". I did once fixed that, my other script works, but I just can't replicate / remember what I did.

Any ideas?

Comments (1)

$syntax is for zip-packs

Anubis · 2011-06-25

The syntax

$scripts

is for Zip-file script packages (used inside "mzp.run" file).
Use

GetDir #scripts

, i.e.:

on execute do fileIn (GetDir #scripts + @"\FT\MyScript.ms")