Launch app from MacOSX system bar
Hi, It's posible to launch one app from the system bar like, for example DropBox, Evernote... Any experience? I remember read something in some post but I don't found... Salut, Josep M -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Launch-app-from-MacOSX-system-bar-tp2952429p2952429.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Launch app from MacOSX system bar
Josep, That's not really what's happening. Whenever you choose an item from the menus in the top-right, the menu item selection is handled by a programme (e.g. a Rev standalone). This programme can launch another programme. Do you have a problem creating a menu icon in the top-right or do you have a problem launching another programme? -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker plugin for Runtime Revolution at http://qurl.tk/ce Create installers for Mac and Windows on *every* Rev-compatible platform. No additional software needed. On 2 okt 2010, at 15:40, JosepM wrote: Hi, It's posible to launch one app from the system bar like, for example DropBox, Evernote... Any experience? I remember read something in some post but I don't found... Salut, Josep M ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Launch app from MacOSX system bar
Hi Mark, I want create a custom icon that launch my standalone. I see that I must create a menulets, isn't? Salut, Josep -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Launch-app-from-MacOSX-system-bar-tp2952429p2952451.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Launch app from MacOSX system bar
Hi Josep, You need to create an statusIcon (according o the release notes). For example: on preOpenStack set statusIcon to 23001 set the statusIconMenu to Open Programme|openStandalone end preOpenStack and you need a script that handles the menu selection: on iconMenuPick theItem switch theItem case openStandalone launch path/to/your/standalone break case somethingElse -- do something else here break case quit quit break end switch end iconMenuPick Keep these scripts in a separate standalone, which runs all the time. Whenever the menu item Open Standalone is selected, the iconMenuPick handler runs and opens your main standalone. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker plugin for Runtime Revolution at http://qurl.tk/ce Create installers for Mac and Windows on *every* Rev-compatible platform. No additional software needed. On 2 okt 2010, at 15:51, JosepM wrote: Hi Mark, I want create a custom icon that launch my standalone. I see that I must create a menulets, isn't? Salut, Josep ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Launch app from MacOSX system bar
Hi Mark, And how I put the standalone into de status bar as status item? As NSStatusItem? Maybe I don't explain myself or I don't understand you..., I refer to put the item to the status bar as Airport icon, Monitor icon, the time, the spotlight, and clicking from this show options and one of them was launch the standalone... Salut, Josep -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Launch-app-from-MacOSX-system-bar-tp2952429p2952511.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Launch app from MacOSX system bar
Josep, Apparently, you don't know that you can do this with RR 4.5 now. No need for NSStatusItems. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker plugin for Runtime Revolution at http://qurl.tk/ce Create installers for Mac and Windows on *every* Rev-compatible platform. No additional software needed. On 2 okt 2010, at 17:22, JosepM wrote: Hi Mark, And how I put the standalone into de status bar as status item? As NSStatusItem? Maybe I don't explain myself or I don't understand you..., I refer to put the item to the status bar as Airport icon, Monitor icon, the time, the spotlight, and clicking from this show options and one of them was launch the standalone... Salut, Josep ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Launch app from MacOSX system bar
Hi Josep and Marc, according to the 4.5 Release Notes (page 10-11) this feature is 1. experimental, which is better than unsupported :-) BUT 2. currently only implemented into the Windows version! Am 02.10.2010 um 17:36 schrieb Mark Schonewille: Josep, Apparently, you don't know that you can do this with RR 4.5 now. No need for NSStatusItems. -- Best regards, Mark Schonewille On 2 okt 2010, at 17:22, JosepM wrote: Hi Mark, And how I put the standalone into de status bar as status item? As NSStatusItem? Maybe I don't explain myself or I don't understand you..., I refer to put the item to the status bar as Airport icon, Monitor icon, the time, the spotlight, and clicking from this show options and one of them was launch the standalone... Salut, Josep Best Klaus -- Klaus Major http://www.major-k.de kl...@major.on-rev.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Launch app from MacOSX system bar
From the v4.5 release notes: Status icon support (experimental) Windows, Linux and Mac OS X all have an area where so-called 'status icons' can be displayed. On Windows this is the system tray on the bottom right of the start bar, on Linux this is typically the right of the panel at the top of the screen, and on Mac OS X this is on the menubar. The engine has support for adding a single status icon, and it can be configured using the statusIcon, the statusIconTooltip and the statusIconMenu: set the statusIcon to imageId set the statusIconMenu to iconMenuSpec set the statusIconToolTip to toolTip Here imageId is the id of the image you wish to use as the icon. It will be scaled down automatically to the appropriate size for the platform and then set. The toolTip specifies what message appears when the user hovers over the status icon. The iconMenuSpec allows you to configure a menu that will appear when the user does a 'menu' click on the icon. This string uses a subset of the standard engine menu specification: [ tab * ] [ '(' ] label [ '|' tag ] Here the number of tabs determines the depth of the menu (i.e. use this to create sub-menus). The optional tag is used when calling the statusIconMenuPick message. Before the engine displays the status icon menu, it will send a statusIconMenuOpening menu to the current card of the defaultStack. You can use this opportunity to change the icon menu before it is displayed, this is an analog to handling mouseDown in a menu button. When the user selects an item from the dock menu, the engine will send an statusIconMenuPick message to the current card of the default stack: iconMenuPick which Here which will be a list of labels or tags (if specified) separated by '|' which determines which item was selected. In addition, the engine will send the following message in response to clicks on the icon: statusIconMenuClick button statusIconMenuDoubleClick button You can use these to perform an appropriate action. Note: If you wish to display a menu from the status icon you must use the statusIconMenu property, attempting to open a normal popup menu in response to one of the click messages is not guaranteed to work. Note: This syntax is only implemented on Windows at the moment and replaces the previously unsupported use of the icon and the iconMenu for this purpose. The properties specified above will have no effect on Mac OS X and Linux at this time. Important: This feature is currently experimental. This means that it may not be complete, or may fail in some circumstances that you would expect it to work. Please do not be afraid to try it out as we need feedback to develop it further. -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Launch app from MacOSX system bar
Hi, So, Menulets power!, well, now I have compiled my Xcode project that put one awesome icon into the menubar :) Now the question (I'm newbie) how call my standalone from the IBAction? If anyone want the xcode project to play with sendme a email. Salut, Josep M -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Launch-app-from-MacOSX-system-bar-tp2952429p2952776.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Launch app from MacOSX system bar
use-revolution-requ...@lists.runrev.com wrote on Sat, 2 Oct 2010 09:09:47 -0500: Date: Sat, 2 Oct 2010 06:40:06 -0700 (PDT) From: JosepM jmye...@mac.com Subject: Launch app from MacOSX system bar To: use-revolution@lists.runrev.com Message-ID: 1286026806787-2952429.p...@n4.nabble.com Content-Type: text/plain; charset=us-ascii Hi, It's posible to launch one app from the system bar like, for example DropBox, Evernote... Any experience? I remember read something in some post but I don't found... Salut, Josep M I see Josep has crafted a solution, but an easy way to make a simple app- launcher for the OS X menubar is an application called Tapir. http:// www.sveinbjorn.org/tapir Feed it the shell command open -a + the path to your app. Cheers, Warren ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution