Home Download Buy Blog Forum Support

Variables in command menus

Variables in command menus

Postby notanumber on Tue Apr 05, 2011 11:09 pm

Do plugin menus have the ability to take environment variables? I see the `open_dir` command does, but is this exposed to plugin writer?

eg. Can I do something like this: `"args": {"dir": "$file_path", "file": "$file_name"}`?

I'd really like to be able to accept the file name, if possible. As it stands, in order to mimic this somewhat, I have two layers of text commands; the first simply calls the second, passing the file name as argument. Ultimately, I'd like to be able to do away with this abstraction.
notanumber
 
Posts: 5
Joined: Thu Mar 24, 2011 5:17 pm

Re: Variables in command menus

Postby notanumber on Tue Apr 12, 2011 4:24 pm

I'm not sure if my question is unclear, if no one has any ideas on how this can be done.

Thoughts? Anyone?
notanumber
 
Posts: 5
Joined: Thu Mar 24, 2011 5:17 pm


Return to Plugin Development

Who is online

Users browsing this forum: No registered users and 9 guests