Message 1 of 3
Source command problem
Not applicable
08-25-2008
08:08 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Ok, I have a list of mel script names in an array called $list and I am trying to do the following:
for ($item in $list)
{
button -label $item -c "source $item";
}
But when I run the script it tells me I have a syntax error on the button line. I have tried a number of different punctuations and nothing works. Does anyone know what is wrong?
for ($item in $list)
{
button -label $item -c "source $item";
}
But when I run the script it tells me I have a syntax error on the button line. I have tried a number of different punctuations and nothing works. Does anyone know what is wrong?