Undo a change *to* the object library stack

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
acidjazz
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 93
Joined: Mon Feb 16, 2009 2:37 am

Undo a change *to* the object library stack

Post by acidjazz » Sun Jan 29, 2012 5:41 am

Here's one I didn't think possible. I had saved a button in the object library plugin, and wanted to place it in a card. I clicked on "Place object" but didn't realize that I didn't actually have any stacks open -- EXCEPT for the object library stack. So, it placed my button alright -- right smack in the middle of the object library stack! Now I can't remove it, can't select it, and can't access it in the application browser because the object library stack is password protected. How the heck do I undo this?? Admittedly, I'm slightly amused that it happened, but my minor touch of OCD will drive me crazy having that silly button right in the middle of the object library.

Mark

acidjazz
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 93
Joined: Mon Feb 16, 2009 2:37 am

Re: Undo a change *to* the object library stack

Post by acidjazz » Sun Jan 29, 2012 5:57 am

Okay, problem solved.

I used the find command to search all open stack files for the name of the button. Fortunately, it was not a common one. Double clicked on the result and the script window opened. I then copied the full id of the button (from the top of the script window) and then, in the message window, typed this:

Code: Select all

delete button id 1567 of card id 1150 of stack "/Applications/LiveCode 4.6.4.app/contents/Tools/Toolset/revimagelibrary.rev" 
I'm still surprised Livecode let me add a button TO the object library in the first place, but at least now it's removed.

Mark

Post Reply