How to to ell if a stack is loaded as a plugin
ambassador at fourthworld.com
Thu Jun 2 15:36:33 EDT 2011
Todd Geist wrote:
> I am looking for a good way to determine an open stack is a plugin. Right
> now I am just checking to see if the folder the Stack is in is called
> plugin. This sort of works, but If a stack happens to be in a folder that
> is named plugins, but I opened normally (ie not through the plugin menu)
> then this test would be wrong.
> In fact I think any test based on the directory wouldn't be so good. There
> would always be the chance that you opened through the file browser.
> Is there a function that returns the list of plugins currently opened?
A plugin is just a stack that can be conveniently opened by placing it
in the Plugins folder.
If you take it out of the folder, that distinction is lost.
LiveCode training and consulting: http://www.fourthworld.com
Webzine for LiveCode developers: http://www.LiveCodeJournal.com
LiveCode Journal blog: http://LiveCodejournal.com/blog.irv
More information about the Use-livecode