I can't seem to copy and paste and when I try to do it programatically I get an error message. Here is the script for a button that I think should do it:
Code: Select all
on mouseUp
if there is not a group "Menubar 1" on card 1 of stack "PM Contents" then
place group "Menubar 1" of card 1 of stack "Portfolio Manager" onto card 1 of stack "PM Contents"
end if
end mouseUp
In the Application Browser, I can clearly see MenuBar 1 in the single card of the stack Portfolio Manager. In the stack PM Contents I do NOT see the group. Also in the 'run' mode I see two completely different menus for those stacks.button "Button": execution error at line 3 (place: group is not in this stack or is already on this card), char 1
The following two scripts which check for the presence of those menus both answer with "Yes". Any ideas?
Code: Select all
on mouseUp
if there is not a group "Menubar 1" on card 1 of stack "PM Contents" then
answer "Yes"
end if
end mouseUp
Code: Select all
on mouseUp
if there is a group "Menubar 1" on card 1 of stack "Portfolio Manager" then
answer "Yes"
end if
end mouseUp
Larry