AppleScript: adding a menu into Address Book - menu

I wrote an Apple Script which allows easy adding a iCal's todo, associated to a contact from Address Book. The script is working as expected when I'm launching it from the AppleScript Editor.
In order this script becomes useful for me, I need to be able to launch it from Address Book directly. Do you know how can I do that ?
Idealy, I would like to add a menu entry into the contextual menu displayed clicking with the right button into the contacts list.
Thank you very much for your help

I would use something like FastScripts or the built in Scripts menu (Applescript Editor -> Prefs -> Show Scripts in Menu Bar).

Related

Sublime Text plugin development: modifying the Quick Panel to add a custom text title or label?

I'm developing a Sublime Text 3 plugin which uses the quick panel a.k.a. the command palette.
I would like to add a textual title/label at the top of the quick panel when the user opens my plugin's quick panel menu, because my plugin runs in various modes and I want to make it clear which mode is currently running (Test, Pre-Live, Live, etc.)
Is this possible, and how?
This a mockup of what I want to achieve:
This is not possible in a quick panel, no. The only thing you can provide to the quick panel display-wise is the list of items that you want the user to choose from. Each item in the list can contain multiple lines of data however (with the restriction that every row has to contain the same number of lines):
Something like that could potentially be used to provide context on the items in the list that allows the user to know what mode you're in.
The Command Palette and the quick panel aren't the same thing (although they are visually similar); the command palette only displays commands that you can choose. By using an input handler, you can customize the display somewhat:
In this sample, View Package File is the selected command, but the command has control over what that text says (it's just the command name by default). You also have the power to provide a "preview" (basically any extra information that you want) about the currently selected item:
So given that, depending on your use case your command could present its interface in the command palette to give this kind of contextual clue.

Ultimate Special Offers. How to set a place for the table?

I have a question about Ultimate Special Offers plugin. Has anybody used it?
The problem is that this plugin sets the table with discounts in a special place where it wants. In my case, it shows up under the "add to cart" button. But I want it to appear above the button. How can I regulate the place where the table shows up?
You have two choices. One is to dig into your theme and move the table yourself. If you right-click the element displaying the table while having your browser console open, you will spot where it is in the HTML that makes up your page. Now click the Add to cart button, and see where it is. Memorize the name of the button, and now look for that in your product.liquid page. Chances are, the plugin itself has some liquid, so you can cut it out of the page, and move it the before the add to cart button in the liquid.
If all that seems like a mountain to climb, just ask the makers of the plugin to do it for you. It is a simple task for them, and should take them a minute to do. If they choose to ignore you, I would call them out as unreliable, and try a different plugin, from a company that will help you with your simple task.

How to Use gvNIX Menu Addon

I have an application where a lot of the Menu items rendered are for administrative functions, so rather than having many links in my menu as it is now, I would like to move them into one Menu Item titled (Administration). I think that gvNIX menu add on may help me achieve this, but I have no idea what the steps and syntax would be to do this, and I cannot find documentation on this.
Any help appreciated
gvNIX/Roo console provides help for every command. You can view all commands typing help in the console. Moreover, if you type help + command, console shows info about that command like allowed parameters and short descriptions. In addition, pressing tab you can see suggestions for completing a Roo/gvNIX command.
That said, for achieve what you want you could use:
menu tree for seeing the actual menu structure, with menu items id's.
menu entry add ... for adding administration category in menu.
menu entry move ... for moving desired menu entries to new category.
Hope that helps.

Remove Redirect on Main Menu Drupal 7

It's hard to explain by words, so I'll just provide a screen shot for it.
Is there any other way to disregard the path on main menu on drupal?
So when I just click it, it won't happen anything, just a # sign.
Hope you understand, any help would be appreciated.
Use Special Menu Items module. Drupal will not allow you to use a special character like #,?,. etc by default in menu links.
If you know the exact page you want it to lead to, you can enter the full html e.g. html://www.yourdomain.com/my_page
But, I don't understand why you would be adding a link to a menu if you don't want it to be a link?
If you want to disable menu links (e.g. "home"), go to "/admin/structure/menu/manage/main-menu" and just disable them using the check boxes next to the menu entry.

in Applescript, can you add an item to the left menu bar if you’re creating an app?

Hello I’m Tate and I have a Question.In applescript, can you create an item for the left menu (application menu) on mac that is not already there by default? if you know the answer, please tell me.
I don't know of a way to add menu items to the application menu bar, but you might check into FastScripts, which offers the ability to customize a script menu with whatever order of scripts you like and with keyboard shortcuts. It's free for any number of scripts and up to 10 keyboard shortcuts.
Also, although I've never used it, ThisService apparently allows you to use AppleScript to add items to the Services menu in the application menu. You might check it out also.
Automator can save Applescripts so that they show up in the Services menu in each Application menu. Just run Automator, create and Applescript workflow and save it as a service. You can assign a command key to it as well.

Resources