LXFree

Introduction
Overview
Tools
Inspector
Main Plot Window
Menus

Preferences
File Menu
Edit Menu
Format Menu
Setup Menu
View Menu
Script Menu

Report Window
Help Index

Copyright © 2018-2020
Claude Heintz Design

Script Menu

The script menu contains a list of AppleScript files that can extend the capabilities of LXFree. AppleScripts are small programs that can automate repetitive tasks and be used to share information between applications. Mac OS X comes with Script Editor which lets you create and compile scripts.

By using simple commands, a script can access the properties of objects in an LXFree plot in the same way that the Inspector window does. This may not seem like a big deal. Why not just use the Inspector instead of a script? The difference is that a script allows you to get a property, make a decision about it, and the set another property based on the result. Most importantly, it allows you to repeat this for every light in a plot.

By putting together a few simple commands, a script can perform a variety of useful things such as setting a lights' use property based on it's color. There are endless possibilities for such operations. LXFree's scripting support allows you to add custom functions that improve your workflow.

Script files are stored in the "com.claudeheintzdesign.lxseries" folder inside the "~/Library/Application Support" directory. When LXFree starts up and when you click on the scripts menu, this directory (~/Library/Application Support/com.claudeheintzdesign.lxseries/scripts/LXFree) is scanned for files with the ".scpt" extension. These scripts appear in the script menu and can be executed from within LXFree. Scripts can also be run from the Script Editor or other applications.

More technical details about scripting LXFree can be found here.

The scripts included with LXFree can serve as examples to help you create your own. For instance, the ReplaceColor script can be easily modified so that instead of replacing a color, it sets the use property for all lights with that color (or the other way around--sets the color based on the use).

To be able to open and modify the built-in scripts, use the LXFree->Install Extras->Copy Scripts to Desktop command.